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: mar...@freebsd.org CC: freebsd-am...@freebsd.org CC: freebsd-am...@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. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"