While trying to understand the performance characteristics of snmpd agent,
noticed agent was trying to open /proc/stat, /proc/vmstat pretty often and
spend time processing it. This was observed even when no external
management requests were sent causing us wondering what could be triggering
these actions.
Is there a setting in the agent that can turn off processing these actions?

strace output of snmpd process:

open("/proc/net/dev", O_RDONLY)         = 10
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 14
fstat(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f7ffb603000
read(10, "Inter-|   Receive               "..., 1024) = 569
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 15
ioctl(15, SIOCGIFINDEX, {ifr_name="lo", ifr_index=1}) = 0
close(15)

open("/proc/stat", O_RDONLY)            = 10
read(10, "cpu  7549 54 8876 4137713 20417 "..., 4095) = 1368
close(10)                               = 0
open("/proc/vmstat", O_RDONLY)          = 10
read(10, "nr_free_pages 109769\nnr_inactive"..., 4095) = 1796
close(10)                               = 0

Any insight or pointers appreciated.
-pal
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to