From owner-freebsd-arch@FreeBSD.ORG Mon Jul 9 02:53:31 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1835116A421 for ; Mon, 9 Jul 2007 02:53:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id C38D413C4AD for ; Mon, 9 Jul 2007 02:53:29 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l692E9jE006401; Mon, 9 Jul 2007 12:14:09 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l692E8JL006400; Mon, 9 Jul 2007 12:14:08 +1000 (EST) (envelope-from peter) Date: Mon, 9 Jul 2007 12:14:08 +1000 From: Peter Jeremy To: Diane Bruce Message-ID: <20070709021408.GK3434@turion.vk2pj.dyndns.org> References: <20070709004640.GA61639@night.db.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oTHb8nViIGeoXxdp" Content-Disposition: inline In-Reply-To: <20070709004640.GA61639@night.db.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-arch@freebsd.org Subject: Re: select timings X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2007 02:53:31 -0000 --oTHb8nViIGeoXxdp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Jul-08 20:46:40 -0400, Diane Bruce wrote: >It is a rather naive test program, close all fd's except >for 0,1,2 of course, then open /dev/null multiple times, then do >a select() on each descriptor. ~db/selt.c Thanks for the testing. Can you please feed the output through (eg) src/tools/tools/ministat. >I will be trying some other select tests. >I suspect with a sparse fd_set, jeffr's results will be better than stock. >We'll see. Having a very large number of selected FDs return ready is unrealistic - I can't think of any real-world situation where this would occur. A more realistic situation would look like a Poisson distribution with a small lambda (probably 1). Writing a test suite for this is probably significantly more effort than your selt.c --=20 Peter Jeremy --oTHb8nViIGeoXxdp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGkZnw/opHv/APuIcRApcsAKCB9Hlx9M2wYuSqQ/JOZxLJqZp/DQCffSjT QKdqq4F9mvEMFaSBvEHzUKo= =uBnv -----END PGP SIGNATURE----- --oTHb8nViIGeoXxdp--