From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 13:11:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B557116A4B3 for ; Fri, 17 Oct 2003 13:11:47 -0700 (PDT) Received: from perrin.nxad.com (internal.nxad.com [69.1.70.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3289743FBF for ; Fri, 17 Oct 2003 13:11:47 -0700 (PDT) (envelope-from sean@nxad.com) Received: by perrin.nxad.com (Postfix, from userid 1001) id 8228C2105C; Fri, 17 Oct 2003 13:11:46 -0700 (PDT) Date: Fri, 17 Oct 2003 13:11:46 -0700 From: Sean Chittenden To: Craig Rodrigues Message-ID: <20031017201146.GA69411@perrin.nxad.com> References: <20031017185823.GA2151@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031017185823.GA2151@crodrigues.org> X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 3849 3760 1AFE 7B17 11A0 83A6 DD99 E31F BC84 B341 X-Web-Homepage: http://sean.chittenden.org/ User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Benchmarking kqueue() performance? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2003 20:11:47 -0000 > I sent a private e-mail to Jonathan Lemon about this, > but thought I would ask the larger FreeBSD community about > this as well. > > Does anyone have any sample code which can be used > to benchmark the performance of kqueue() vs. select()? > > I am interested in setting up a test which handles > a large number of events. I am interested in seeing > the scalability of kqueue() as the number of events > increases. > > I am also interested in looking at kqueue() performance > in multithreaded environments....maybe with the new > KSE implementation in CURRENT. Have you looked at libevent? http://www.monkey.org/~provos/libevent/ There are some spiffy benchmarks there (and pretty graphs). And a bit dated, but this page also has some good #'s for you: http://www.kegel.com/dkftpbench/Poller_bench.html -sc -- Sean Chittenden