* hard hang through qdisc
@ 2008-01-31 12:21 Andi Kleen
2008-01-31 12:34 ` jamal
2008-01-31 12:43 ` hard hang through qdisc II Andi Kleen
0 siblings, 2 replies; 10+ messages in thread
From: Andi Kleen @ 2008-01-31 12:21 UTC (permalink / raw)
To: netdev
I just managed to hang a 2.6.24 (+ some non network patches) kernel
with the following (non sensical) command
tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
No oops or anything just hangs. While I understand root can
do bad things just hanging like this seems a little extreme.
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 12:21 hard hang through qdisc Andi Kleen
@ 2008-01-31 12:34 ` jamal
2008-01-31 13:28 ` Andi Kleen
2008-01-31 12:43 ` hard hang through qdisc II Andi Kleen
1 sibling, 1 reply; 10+ messages in thread
From: jamal @ 2008-01-31 12:34 UTC (permalink / raw)
To: Andi Kleen; +Cc: netdev
On Thu, 2008-31-01 at 13:21 +0100, Andi Kleen wrote:
>
> I just managed to hang a 2.6.24 (+ some non network patches) kernel
> with the following (non sensical) command
>
> tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
>
> No oops or anything just hangs. While I understand root can
> do bad things just hanging like this seems a little extreme.
>
---------
lilsol:~# tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
lilsol:~# uname -a
Linux lilsol 2.6.24 #1 PREEMPT Sun Jan 27 09:22:00 EST 2008 i686
GNU/Linux
lilsol:~# tc qdisc ls dev eth0
qdisc tbf 8001: root rate 1000bit burst 10b lat 737.3ms
lilsol:~#
-------
What do your patches do?
cheers,
jamal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc II
2008-01-31 12:21 hard hang through qdisc Andi Kleen
2008-01-31 12:34 ` jamal
@ 2008-01-31 12:43 ` Andi Kleen
1 sibling, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2008-01-31 12:43 UTC (permalink / raw)
To: netdev
On Thursday 31 January 2008 13:21:00 Andi Kleen wrote:
>
> I just managed to hang a 2.6.24 (+ some non network patches) kernel
> with the following (non sensical) command
Correction: the kernel was actually a git linus kernel with David's
recent merge included.
I found it's pretty easy to hang the kernel with various tbf parameters.
-Andi
> tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
>
> No oops or anything just hangs. While I understand root can
> do bad things just hanging like this seems a little extreme.
>
> -Andi
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 12:34 ` jamal
@ 2008-01-31 13:28 ` Andi Kleen
2008-01-31 13:29 ` Patrick McHardy
0 siblings, 1 reply; 10+ messages in thread
From: Andi Kleen @ 2008-01-31 13:28 UTC (permalink / raw)
To: hadi; +Cc: netdev
> ---------
> lilsol:~# tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
> lilsol:~# uname -a
> Linux lilsol 2.6.24 #1 PREEMPT Sun Jan 27 09:22:00 EST 2008 i686
Can you try it again with current git mainline?
> GNU/Linux
> lilsol:~# tc qdisc ls dev eth0
> qdisc tbf 8001: root rate 1000bit burst 10b lat 737.3ms
> lilsol:~#
> -------
>
> What do your patches do?
Nothing really related to qdiscs. I suspect it came from the git mainline patch
I had (but forgot to mention in the first email)
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 13:28 ` Andi Kleen
@ 2008-01-31 13:29 ` Patrick McHardy
2008-01-31 14:02 ` Patrick McHardy
0 siblings, 1 reply; 10+ messages in thread
From: Patrick McHardy @ 2008-01-31 13:29 UTC (permalink / raw)
To: Andi Kleen; +Cc: hadi, netdev
Andi Kleen wrote:
>> ---------
>> lilsol:~# tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
>> lilsol:~# uname -a
>> Linux lilsol 2.6.24 #1 PREEMPT Sun Jan 27 09:22:00 EST 2008 i686
>
> Can you try it again with current git mainline?
I'll look into it.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 13:29 ` Patrick McHardy
@ 2008-01-31 14:02 ` Patrick McHardy
2008-01-31 15:04 ` Andi Kleen
0 siblings, 1 reply; 10+ messages in thread
From: Patrick McHardy @ 2008-01-31 14:02 UTC (permalink / raw)
To: Andi Kleen; +Cc: hadi, netdev
Patrick McHardy wrote:
> Andi Kleen wrote:
>>> ---------
>>> lilsol:~# tc qdisc add dev eth0 root tbf rate 1000 burst 10 limit 100
>>> lilsol:~# uname -a
>>> Linux lilsol 2.6.24 #1 PREEMPT Sun Jan 27 09:22:00 EST 2008 i686
>>
>> Can you try it again with current git mainline?
>
>
> I'll look into it.
Works for me:
qdisc tbf 8001: root rate 1000bit burst 10b/8 mpu 0b lat 720.0ms
Sent 0 bytes 0 pkt (dropped 9, overlimits 0 requeues 0)
rate 0bit 0pps backlog 0b 0p requeues 0
Packets are dropped as expected.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 14:02 ` Patrick McHardy
@ 2008-01-31 15:04 ` Andi Kleen
2008-01-31 15:12 ` Patrick McHardy
0 siblings, 1 reply; 10+ messages in thread
From: Andi Kleen @ 2008-01-31 15:04 UTC (permalink / raw)
To: Patrick McHardy; +Cc: hadi, netdev
> Works for me:
>
> qdisc tbf 8001: root rate 1000bit burst 10b/8 mpu 0b lat 720.0ms
> Sent 0 bytes 0 pkt (dropped 9, overlimits 0 requeues 0)
> rate 0bit 0pps backlog 0b 0p requeues 0
>
> Packets are dropped as expected.
I can still reproduce it on 64bit with http://halobates.de/config-qdisc
(all qdiscs etc. compiled in for testing)
with latest git tip (8af03e782cae1e0a0f530ddd22301cdd12cf9dc0)
The command line above causes an instant hang. Also tried it with
newer iproute2 (the original one was quite old), but it didn't make
a difference.
Perhaps it's related to what qdiscs are enabled? Can you please
try with the above config?
If everything fails I can do a bisect later.
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 15:04 ` Andi Kleen
@ 2008-01-31 15:12 ` Patrick McHardy
2008-01-31 18:46 ` Patrick McHardy
0 siblings, 1 reply; 10+ messages in thread
From: Patrick McHardy @ 2008-01-31 15:12 UTC (permalink / raw)
To: Andi Kleen; +Cc: hadi, netdev
Andi Kleen wrote:
>> Works for me:
>>
>> qdisc tbf 8001: root rate 1000bit burst 10b/8 mpu 0b lat 720.0ms
>> Sent 0 bytes 0 pkt (dropped 9, overlimits 0 requeues 0)
>> rate 0bit 0pps backlog 0b 0p requeues 0
>>
>> Packets are dropped as expected.
>
> I can still reproduce it on 64bit with http://halobates.de/config-qdisc
> (all qdiscs etc. compiled in for testing)
> with latest git tip (8af03e782cae1e0a0f530ddd22301cdd12cf9dc0)
>
> The command line above causes an instant hang. Also tried it with
> newer iproute2 (the original one was quite old), but it didn't make
> a difference.
>
> Perhaps it's related to what qdiscs are enabled?
I'm also testing on 64 bit, with all qdiscs enabled as modules.
> Can you please try with the above config?
I'll give it a try later.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 15:12 ` Patrick McHardy
@ 2008-01-31 18:46 ` Patrick McHardy
2008-01-31 18:55 ` Andi Kleen
0 siblings, 1 reply; 10+ messages in thread
From: Patrick McHardy @ 2008-01-31 18:46 UTC (permalink / raw)
To: Andi Kleen; +Cc: hadi, netdev
Patrick McHardy wrote:
> Andi Kleen wrote:
>
>> Can you please try with the above config?
>
>
> I'll give it a try later.
I took all options from that config that seemed possibly
related (qdiscs, no hrtimers, no nohz, slab, ...), but
still can't reproduce it.
Does it also crash if you use more reasonable parameters?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: hard hang through qdisc
2008-01-31 18:46 ` Patrick McHardy
@ 2008-01-31 18:55 ` Andi Kleen
0 siblings, 0 replies; 10+ messages in thread
From: Andi Kleen @ 2008-01-31 18:55 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Andi Kleen, hadi, netdev
On Thu, Jan 31, 2008 at 07:46:02PM +0100, Patrick McHardy wrote:
> Patrick McHardy wrote:
>> Andi Kleen wrote:
>>
>>> Can you please try with the above config?
>> I'll give it a try later.
>
>
> I took all options from that config that seemed possibly
> related (qdiscs, no hrtimers, no nohz, slab, ...), but
> still can't reproduce it.
Ok I'll do bisect then later (not today anymore likely)
> Does it also crash if you use more reasonable parameters?
I managed to make it crash with different parameters too,
but with good parameters it did set a qdisc successfully
and appeared to work.
-Andi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-01-31 18:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31 12:21 hard hang through qdisc Andi Kleen
2008-01-31 12:34 ` jamal
2008-01-31 13:28 ` Andi Kleen
2008-01-31 13:29 ` Patrick McHardy
2008-01-31 14:02 ` Patrick McHardy
2008-01-31 15:04 ` Andi Kleen
2008-01-31 15:12 ` Patrick McHardy
2008-01-31 18:46 ` Patrick McHardy
2008-01-31 18:55 ` Andi Kleen
2008-01-31 12:43 ` hard hang through qdisc II Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).