netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tool for sampling /proc/net/softnet_stat statistics
@ 2016-03-07 15:36 Jesper Dangaard Brouer
  2016-03-07 17:54 ` Willem de Bruijn
  2016-03-08 19:47 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: Jesper Dangaard Brouer @ 2016-03-07 15:36 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: Tom Herbert, linux-kernel@vger.kernel.org

Hi Google,

While playing with RPS, I needed to read stats from 
/proc/net/softnet_stat and the tools I could find [1] and [2] was not
very good.

I lack of better, I coded up my own tool softnet_stat.pl here:
 https://github.com/netoptimizer/network-testing/blob/master/bin/softnet_stat.pl

The output format/columns in /proc/net/softnet_stat is undocumented,
plus values are printed in hex.  E.g. to decode the columns you need to
read kernel function kernel softnet_seq_show() in
kernel/net/core/net-procfs.c.

To make things easier I wrote this small perl script for get
so human readable statistics from /proc/net/softnet_stat.

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  Author of http://www.iptv-analyzer.org
  LinkedIn: http://www.linkedin.com/in/brouer


[1] https://www.redhat.com/archives/rhl-list/2007-September/msg03735.html

[2] https://gist.github.com/SaveTheRbtz/172b2e2eb3cbd96b598d

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-05 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-07 15:36 Tool for sampling /proc/net/softnet_stat statistics Jesper Dangaard Brouer
2016-03-07 17:54 ` Willem de Bruijn
2016-03-08  9:50   ` Jesper Dangaard Brouer
2016-07-05 12:20     ` Jesper Dangaard Brouer
2016-03-08 19:47 ` David Miller

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).