From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jon Schipp <jonschipp@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: /proc/net/softnet_stat & NAPI
Date: Tue, 20 Nov 2012 10:25:43 -0800 [thread overview]
Message-ID: <1353435943.2590.25.camel@edumazet-glaptop> (raw)
In-Reply-To: <CAB15j_Dv8hQCDzAYxkTGs5yjz5uhETuhgRxfAvbVbt5mx-P33A@mail.gmail.com>
On Tue, 2012-11-20 at 13:06 -0500, Jon Schipp wrote:
> In relation to packet drops, assuming a new kernel, NAPI driver, and
> no use of receive packet steering,
> does /proc/net/softnet_stats provide any useful packet drop information?
>
no
> I know that on earlier 2.4 kernels one could grab the drops in the
> backlog queue from 2nd column in /proc/net/softnet_stats.
> In a modern systems that use NAPI, does softnet_stats serve a similar
> purpose e.g. display drops in a NAPI poll queue?
Second column is number of dropped packets because
one (percpu) queue reached netdev_max_backlog
But its only in the case packet must be queued in the first place.
With a NAPI driver and no RPS/RFS, packets wont be dropped here, as NAPI
netif_receive_skb() directly calls the network stack.
If frames are dropped, they should be dropped by the NIC itself.
Even with 2.4 kernels or non NAPI driver, you could have drops at NIC
level.
prev parent reply other threads:[~2012-11-20 18:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 18:06 /proc/net/softnet_stat & NAPI Jon Schipp
2012-11-20 18:25 ` Eric Dumazet [this message]
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=1353435943.2590.25.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=jonschipp@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