From owner-freebsd-net Thu Nov 29 6:52:53 2001 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id 12C7A37B41F for ; Thu, 29 Nov 2001 06:52:40 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 7E9F381D04; Thu, 29 Nov 2001 08:52:34 -0600 (CST) Date: Thu, 29 Nov 2001 08:52:34 -0600 From: Alfred Perlstein To: Tariq Rashid Cc: freebsd-net@freebsd.org Subject: Re: isakmpd hogs CPU: select()? Message-ID: <20011129085234.S46769@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from tariq@inty.net on Thu, Nov 29, 2001 at 02:05:42PM -0000 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Tariq Rashid [011129 08:04] wrote: > > as recognised in the ports bug report, the isakmpd port for freebsd soaks > up 99% CPU even when no connections have been established - even when in > completely passive-connection mode. > > i'm not an expert coder but i think the select() in the main loop (isakmpd.c > main()) is doing this. > > is there a difference between openbsd select() and freebsd 4.4R select()? > > i've ported over the latest isakmpd from openbsd and this is still the > case... > > anyone? truss(1) output might help, along with the code in question, along with what type of descriptors it's polling. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message