netdev
[Top] [All Lists]

Re: route cache DoS testing and softirqs

To: Andrea Arcangeli <andrea@xxxxxxx>
Subject: Re: route cache DoS testing and softirqs
From: Robert Olsson <Robert.Olsson@xxxxxxxxxxx>
Date: Thu, 1 Apr 2004 00:36:00 +0200
Cc: Dipankar Sarma <dipankar@xxxxxxxxxx>, Robert Olsson <Robert.Olsson@xxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>, kuznet@xxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, paulmck@xxxxxxxxxx, akpm@xxxxxxxx
In-reply-to: <20040331212817.GQ2143@xxxxxxxxxxxxxxxxx>
References: <20040329222926.GF3808@xxxxxxxxxxxxxxxxx> <200403302005.AAA00466@xxxxxxxxxxxxxxx> <20040330211450.GI3808@xxxxxxxxxxxxxxxxx> <20040330133000.098761e2.davem@xxxxxxxxxx> <20040330213742.GL3808@xxxxxxxxxxxxxxxxx> <20040331171023.GA4543@xxxxxxxxxx> <16491.4593.718724.277551@xxxxxxxxxxxx> <20040331203750.GB4543@xxxxxxxxxx> <20040331212817.GQ2143@xxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
Andrea Arcangeli writes:

 > Maybe the problem is simply that NAPI should be tuned more aggressively,
 > it may have to poll for a longer time before giving up.

 It cannot poll much more... 20 Million packets were injected in total
 there were 250 RX irq's. Most from my ssh sessions. There are some TX 
 interrupts... it's another story

 Packet flooding is just our way to generate load and kernel locking must 
 work with and without irq's. As far as I understand the real problem is 
 when do_softirq is run from irqexit etc.

 Some thoughts...

 If we tag the different do_softirq sources (look in my testpatch) we can 
 control the softirqs better. For example; do_softirq's from irqexit etc 
 could be given low a "max_restart" this to move processing to ksoftird 
 maybe even dynamic.

 Cheers.
                                                --ro

<Prev in Thread] Current Thread [Next in Thread>