[Bug 231732] net-mgmt/net-snmp: hrSWRunEntry, don't list kernel threads
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 26 11:04:11 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231732
Bug ID: 231732
Summary: net-mgmt/net-snmp: hrSWRunEntry, don't list kernel
threads
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: zi at FreeBSD.org
Reporter: ben.rubson at gmail.com
Flags: maintainer-feedback?(zi at FreeBSD.org)
Assignee: zi at FreeBSD.org
Hi,
When browsing hrSWRunEntry (1.3.6.1.2.1.25.4.2.1), many "kernel" processes are
returned.
I have servers with around 100 user processes, and 1000 kernel threads, making
hrSWRunEntry SNMP requests very slow.
KVM_GETPROCS(3) helped me to find the following solution :
find /usr/ports/net-mgmt/net-snmp -type f \
-exec grep -q KERN_PROC_ALL {} \; -ls \
-exec sed -i "" 's/KERN_PROC_ALL/KERN_PROC_PROC/g' {} \;
hrSWRunEntry requests now take around 0.5 second instead of sometimes more than
20 !
Could we then think about disabling kernel threads in hrSWRunEntry ?
I see no reason to keep them.
Thank you very much !
Ben
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list