From: Stephen Hemminger <shemminger@vyatta.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Flavio Leitner <fbl@redhat.com>, netdev <netdev@vger.kernel.org>,
Jiri Pirko <jiri@resnulli.us>
Subject: Re: [PATCH net-next] team: add ethtool support
Date: Thu, 10 Jan 2013 09:51:07 -0800 [thread overview]
Message-ID: <20130110095107.345b741e@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <1356834716.21409.6258.camel@edumazet-glaptop>
On Sat, 29 Dec 2012 18:31:56 -0800
Eric Dumazet <eric.dumazet@gmail.com> wrote:
> On Sat, 2012-12-29 at 23:44 -0200, Flavio Leitner wrote:
>
> > Speaking as a support engineer, it's a lot easier to grab ethtool -S and
> > see everything than grab two or more outputs.
> >
>
> I agree its very convenient.
>
> I have a patch to add GRO statistics at the core layer, in the ethtool
> -S stats.
>
> I was about to ask netdev guys what they think of this idea ?
>
>
> net-gro: Add GRO counters to ethtool -S
>
> In order to get an idea of how effective is GRO aggregation on a machine,
> we need appropriate counters. Preferably use "ethtool -S" to display them
> on a per device basis, or even per RX queue.
>
> In this implementation, I chose to not change NIC drivers.
>
> Core network stack adds the gro counters at the end of the counters
> each NIC driver provides for ethtool -S
>
> There are 5 counters per RX queue :
>
> gro_complete: number of time the NAPI handler did not consume its budget
> (This force a flush of all GRO packets in the GRO queue)
> gro_overflows: number of time a segment could not be stored in GRO queue
> because current number or messages is too high
> gro_nogro: number of time a segment was not stored in GRO queue.
> (Because its not a TCP packet, or it includes a
> SYN/FIN/RST/PSH flag)
> gro_msgs: number of GRO messages (might contain 1 to 17 segments)
> gro_segs: number of GRO segments
>
> Example:
>
> On receiver machine, with 8 RX queues :
>
> ethtool -S eth4 | tail -n 10
> gro_complete[7]: 56635
> gro_overflows[7]: 0
> gro_nogro[7]: 212
> gro_msgs[7]: 129410
> gro_segs[7]: 1434925
> gro_complete: 699479
> gro_overflows: 0
> gro_nogro: 2455
> gro_msgs: 1626470
> gro_segs: 17876794
>
> In this example, we can compute average number of segments per GRO message :
>
> 17876794/17876794 = 10.99
>
> Or more precisely : 17876794/(17876794+2455) = 10.97
>
>
> --
> 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
Ethtool is awkward because it is only available through ioctl, no netlink or /proc.
If you use ethtool for GRO, please make it a separate ioctl not an add-on to
existing device statistics. ethtool --gro ??
prev parent reply other threads:[~2013-01-10 17:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-30 1:19 [PATCH net-next] team: add ethtool support Flavio Leitner
2012-12-30 1:29 ` Stephen Hemminger
2012-12-30 1:35 ` David Miller
2012-12-30 1:44 ` Flavio Leitner
2012-12-30 2:09 ` David Miller
2012-12-30 2:30 ` Flavio Leitner
2012-12-30 2:31 ` Eric Dumazet
2013-01-10 16:27 ` Ben Hutchings
2013-01-10 17:51 ` Stephen Hemminger [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=20130110095107.345b741e@nehalam.linuxnetplumber.net \
--to=shemminger@vyatta.com \
--cc=eric.dumazet@gmail.com \
--cc=fbl@redhat.com \
--cc=jiri@resnulli.us \
--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;
as well as URLs for NNTP newsgroup(s).