Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 May 2016 20:22:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-amd64@FreeBSD.org
Subject:   [Bug 209368] [PATCH] bsnmpd: snmp_hostres: Only refresh devtree if devd event is a new or removed device
Message-ID:  <bug-209368-6@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: marcus@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org
                CC: freebsd-amd64@FreeBSD.org
          Keywords: patch

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

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

!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dcd0
serial=3D"10000000000000000001" cam_status=3D"0xcc" scsi_status=3D2 scsi_se=
nse=3D"70 02
3a 00" CDB=3D"00 00 00 00 00 00 "=20

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 devi=
ce
is added or removed.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



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