Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2018 11:04:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 231732] net-mgmt/net-snmp: hrSWRunEntry, don't list kernel threads
Message-ID:  <bug-231732-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231732

            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@FreeBSD.org
          Reporter: ben.rubson@gmail.com
             Flags: maintainer-feedback?(zi@FreeBSD.org)
          Assignee: zi@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, mak=
ing
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231732-7788>