From: Eric Dumazet <eric.dumazet@gmail.com>
To: Javier Domingo <javierdo1@gmail.com>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: Softirqs without captured packets
Date: Sun, 10 Feb 2013 00:16:28 -0800 [thread overview]
Message-ID: <1360484188.20362.11.camel@edumazet-glaptop> (raw)
In-Reply-To: <CALZVap=_x_nvnH55n7SGMxFGCR9XPKkNzSrt0J1dp41g-HUAqQ@mail.gmail.com>
Please do not top post on netdev
On Sun, 2013-02-10 at 04:02 +0100, Javier Domingo wrote:
> Well, that explains why the 0 :D. I was getting nut. Any way, does
> that happen in e1000e or tg3 drivers? If not, then there is still
> without explanation.
>
The answer is yes.
> Respecting the low numbers, I will do some futher stress tests, but
> this measures where done pinging the computer at 0.001 interval:
>
> ping -i 0.0001 <computer ip>
>
> And received packets where at much, 3 per softirq. Also, I tried
> opening an ftp download session but didn't get much high numbers
> (1Gbps link).
>
Machine is fast enough, thats all.
> When I tried this with the injection done by a dag (hardware injector)
> there were strange results because thought the 0s where explained, the
> were appearing thought the rest of softirqs where about 280+-50.
Have you read this part of net_rx_action() ?
unsigned long time_limit = jiffies + 2;
/* If softirq window is exhuasted then punt.
* Allow this to run for 2 jiffies since which will allow
* an average latency of 1.5/HZ.
*/
if (unlikely(budget <= 0 || time_after(jiffies, time_limit)))
goto softnet_break;
This means your machine handles 280+50 packets per 1.5/HZ
(Plus the hidden TX completions...)
next prev parent reply other threads:[~2013-02-10 8:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 19:41 Softirqs without captured packets Javier Domingo
2013-02-08 19:54 ` Javier Domingo
2013-02-08 19:57 ` David Miller
2013-02-08 20:02 ` Javier Domingo
2013-02-08 20:15 ` David Miller
2013-02-08 21:22 ` Javier Domingo
2013-02-09 20:27 ` Javier Domingo
2013-02-10 1:16 ` Eric Dumazet
2013-02-10 3:02 ` Javier Domingo
2013-02-10 8:16 ` Eric Dumazet [this message]
[not found] ` <CALZVapm1evE6rOgNkJapu9VboA6OojKGJ-UhRhZ26J0A+k4nmw@mail.gmail.com>
2013-02-22 9:32 ` Javier Domingo
2013-02-22 14:11 ` Eric Dumazet
2013-03-06 17:20 ` Javier Domingo
2013-03-06 19:40 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360484188.20362.11.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=javierdo1@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox