Date: Sat, 07 May 2016 20:22:03 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@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-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@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=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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209368-8>
