netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jamal <hadi@cyberus.ca>
To: Milan Kocian <milon@wq.cz>
Cc: Patrick McHardy <kaber@trash.net>, netdev@vger.kernel.org
Subject: Re: Difference between device statistics from ifconfig and ip -s l l
Date: Wed, 17 Oct 2007 08:01:38 -0400	[thread overview]
Message-ID: <1192622498.4460.25.camel@localhost> (raw)
In-Reply-To: <20071017112919.GC16356@wq.cz>

On Wed, 2007-17-10 at 13:29 +0200, Milan Kocian wrote:
> On Wed, Oct 17, 2007 at 12:35:43PM +0200, Patrick McHardy wrote:
> > Milan Kocian wrote:
> >> On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote:
> >>
> >>> ifconfig gets its data from /proc/net/dev, which adds up rx_errors
> >>> and rx_missed.
> >>>
> >> Adds up rx_errors and rx_missed and prints it as dropped ? Ok, ifconfig is
> >> a little old. But why I don't see missed packets from RX errors detailed 
> >> stats (ip -s -s l l) in non-detailed stats as errors and see zero ?
> >
> >
> > I meant to write "adds up rx_dropped and rx_missed".
> 
> ok.
> 
> One probably stupid question: Why is not done similar sum in output of 'ip -s l l' ?

"missed" is not really an error. It just means the driver was
overwhelmed and didnt even get the chance of seeing it whereas an error
is something the driver processed and saw a problem with it.

> Imagine me :), I do 'ifconfig' and see dropped packets and then I do 'ip -s l l'
> and see zeros. I stare on it like an idiot. Where is bug ? ifconfig ? ip ?
> (man page of ip and 'ip -s -s l l' with missed packets stats saved me :).
> 
> IMHO I think that comparable outputs of both programs should be still the same.

I think ifconfig sums them up so the output formatting looks nice, but
ip is more accurate. These stats are from standard SNMP mibs (off top of
my head RFC1213 if it hasnt been obsoleted by something) - look at
InIFxxxx stats.

cheers,
jamal



  reply	other threads:[~2007-10-17 12:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17  9:27 Difference between device statistics from ifconfig and ip -s l l Milan Kocian
2007-10-17  9:36 ` Patrick McHardy
2007-10-17 10:13   ` Milan Kocian
2007-10-17 10:35     ` Patrick McHardy
2007-10-17 11:29       ` Milan Kocian
2007-10-17 12:01         ` jamal [this message]
2007-10-17 13:42           ` Milan Kocian

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=1192622498.4460.25.camel@localhost \
    --to=hadi@cyberus.ca \
    --cc=kaber@trash.net \
    --cc=milon@wq.cz \
    --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).