knockd uses too much CPU, especially on systems with slower or low-power CPUS (such as the Soekris net4501). The timeout argument to pcap_open_live (1 ms) seems unreasonably small. On a soekris box it uses 15% of CPU. Setting the timeout to 1 second reduces it to "0.00%". Fix: Patch attached with submission follows: How-To-Repeat: Install and configure on a system with ~133 MHz CPU. Check process CPU usage with 'top'.
Responsible Changed From-To: freebsd-ports-bugs->shaun Over to maintainer (via the GNATS Auto Assign Tool)
State Changed From-To: open->closed Committed, thanks!
shaun 2008-11-14 16:36:55 UTC FreeBSD ports repository Modified files: security/knock Makefile Added files: security/knock/files patch-src-knockd.c Log: Increase pcap read timeout to reduce gratuitous CPU burden. PR: ports/127313 Submitted by: Duane Wessels <wessels@life-gone-hazy.com> Revision Changes Path 1.4 +1 -0 ports/security/knock/Makefile 1.1 +11 -0 ports/security/knock/files/patch-src-knockd.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"