Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Tuesday, June 17, 2008 - 12:26 am

* David Miller <davem@davemloft.net> wrote:


i triggered the net/sched/sch_generic.c:222 warning once more meanwhile 
(yesterday) with the full revert applied (which i think is the same as 
the patch below).

So i think it's either some unlucky coincidence or some timing 
relationship - perhaps the change impacts packet ordering for certain 
workload patterns? [but that same condition can occur without that patch 
too]

I also checked kerneloops.org and this warning seems to have been 
reported by others as well - although it's not triggering heavily. In 
some of those other reports the warning came together with a dead 
interface, while in my case it's just a warning with still working 
networking.

So since there's no clear bug pattern and no sure reproducability on my 
side i'd suggest we track this problem separately and "do nothing" right 
now. I've excluded this warning from my 'is the freshly booted kernel 
buggy' list of conditions of -tip testing so it's not holding me up.

and i can apply any test-patch if that would be helpful - if it does a 
WARN_ON() i'll notice it. (pure extra debug printks with no stack trace 
are much harder to notice in automated tests)

btw., it would be nice if there was some .config driven networking debug 
option that randomized packet ordering in the tx and rx queue. 
(transparently enabled, with zero-config on the userspace side)

I.e. it would have an (expensive, because O(1)) debug mechanism that 
randomized things - it would insert new packets into a random place 
within the queue where it gets queued. We could hit races and rarer 
codepaths much sooner that way - as especially in LAN based testing 
there's a strong natural ordering of packets so randomizing it 
artificially looks promising to me.

If you make that new option =y enable-able in the .config(dependent on 
DEBUG_KERNEL && default off, etc.), and as long as it does not have to 
be configured on the userspace side (i'm testing unmodified userspace 
images with default distro installs, etc.) the randconfig test will 
still be able to reach it in a percentage of the tests and i think we'll 
be able to hit a lot of exciting races much sooner than with the normal 
in-order/FIFO queueing methods.

it's basically massively parallel coverage testing. It doesnt matter how 
unbelievably slow packet ordering randomization might be, the coverage 
testing it would do would be worth gold i'm sure. (I'd love to test 
something like that in -tip, if it comes in form of some standalone 
patch against a mainline-ish tree.)

	Ingo
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TCP]: TCP_DEFER_ACCEPT causes leak sockets, Vitaliy Gusev, (Wed Jun 11, 5:58 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Alexey Kuznetsov, (Wed Jun 11, 6:57 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Wed Jun 11, 4:52 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Thu Jun 12, 4:32 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Thu Jun 12, 11:30 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Fri Jun 13, 2:32 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 4:09 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 4:47 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Fri Jun 13, 2:10 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Mon Jun 16, 4:59 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 12:26 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 12:38 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 1:09 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 1:32 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Vitaliy Gusev, (Tue Jun 17, 1:43 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 2:08 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 2:27 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, David Miller, (Tue Jun 17, 2:29 am)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Ingo Molnar, (Tue Jun 17, 2:39 am)
Re: [E1000-devel] [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Denys Fedoryshchenko, (Wed Jun 18, 2:41 pm)
Re: [E1000-devel] [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Denys Fedoryshchenko, (Wed Jun 18, 3:44 pm)
Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets, Jarek Poplawski, (Thu Jun 19, 12:06 am)