[Bug 209368] [PATCH] bsnmpd: snmp_hostres: Only refresh devtree if devd event is a new or removed device

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat May 7 20:22:04 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209368

            Bug ID: 209368
           Summary: [PATCH] bsnmpd: snmp_hostres: Only refresh devtree if
                    devd event is a new or removed device
           Product: Base System
           Version: 10.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: marcus at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org
          Keywords: patch

Created attachment 170101
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170101&action=edit
Only refresh device table on a device add or remove event

In a recent update of 10-STABLE, devd began spewing:

!system=CAM subsystem=periph type=error device=cd0
serial="10000000000000000001" cam_status="0xcc" scsi_status=2 scsi_sense="70 02
3a 00" CDB="00 00 00 00 00 00 " 

This caused bsnmpd to take up nearly 100% of the CPU refreshing the devtree
table every second.  Admittedly, this is an issue in the CAM driver, but why
refresh the whole tree each time a device is not either inserted or removed?

The attached patch corrects this by only refreshing the devtree when a device
is added or removed.

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


More information about the freebsd-bugs mailing list