pcp
[Top] [All Lists]

[Bug 1067] New: linux pmda does too much work for network.interface quer

To: pcp@xxxxxxxxxxx
Subject: [Bug 1067] New: linux pmda does too much work for network.interface queries
From: bugzilla-daemon@xxxxxxxxxxx
Date: Thu, 25 Sep 2014 01:26:55 +0000
Auto-submitted: auto-generated
Delivered-to: pcp@xxxxxxxxxxx
Bug ID 1067
Summary linux pmda does too much work for network.interface queries
Product pcp
Version unspecified
Hardware All
OS Linux
Status NEW
Severity major
Priority P5
Component pcp
Assignee pcp@kenj.com.au
Reporter fche@redhat.com
CC pcp@oss.sgi.com
Classification Unclassified

Created attachment 322 [details]
strace output

An strace of pmcd, for a query of only "pminfo -f network.interface.in.bytes"
indicates it's doing too much work.

% sudo strace  -T -tt -f -p $(pgrep pmcd) &

% pminfo -f network.interface.in.bytes

network.interface.in.bytes
    inst [0 or "lo"] value 29794011946
    inst [2 or "p2p1"] value 4606099151404

% kill [strace]

The strace log indicates multiple opens of /proc/net/dev, and a slew of
ioctl's and other /sys/class/net/FOO/... reads, all just to answer data
that's available in a single read from /proc/net/dev.  That extra work
should be avoided.


You are receiving this mail because:
  • You are on the CC list for the bug.
<Prev in Thread] Current Thread [Next in Thread>