Hi all,
so on my quest to replace all our (RH) internal scripts to collect
networking stats with PCP. I thought I'd check with the list before
putting more work into it, as a) someone else might be looking at the
same topics and b) maybe there are some suggestions one way or the other.
I am missing the following things:
1) tc -s class show dev $IFACE / tc -s qdisc show dev $IFACE
These commands spew out stuff like:
$ linux tc -s class show dev em1
class mq :1 root
Sent 546103985 bytes 4438169 pkt (dropped 0, overlimits 0 requeues 7)
backlog 0b 0p requeues 7
class mq :2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :3 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :4 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
class mq :5 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
$ tc -s qdisc show dev em1
qdisc mq 0: root
Sent 546796662 bytes 4447544 pkt (dropped 0, overlimits 0 requeues 7)
backlog 0b 0p requeues 7
qdisc pfifo_fast 0: parent :1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
Sent 546796662 bytes 4447544 pkt (dropped 0, overlimits 0 requeues 7)
backlog 0b 0p requeues 7
I was thinking of creating a separate PMDA for this. I still need to think a bit
how the namespace will look like. I'll probably prefer using NETLINK and fetch
the info in the PMDA directly and not fork tc and parse the output. Hopefully
it is not too much work.
2) /proc/softirqs
This should be trivial. Would it be ok to fold this into the Linux PMDA?
3) /proc/net/softnet_stat
Should also be fairly simple. Unsure where to squeeze it in though? Maybe
a new PMDA linux-networking which holds 1) 3) and 4) ?
4) ethtool -S
I have a prototype ready in python. It crashes when an interface is removed
and readded (due to the python-pcp limits with dynamic metrics issue).
Anyhow I will port it to C so we won't be dependant on a too recent
python-ethtool
version. Here too, I am unsure if I should put it in a linux-networking PMDA or
an ethtool PMDA or somewhere else completely
Thanks for any suggestion,
Michele
--
Michele Baldessari <michele@xxxxxxxxxx>
C2A5 9DA3 9961 4FFB E01B D0BC DDD4 DCCB 7515 5C6D
|