From owner-freebsd-current@FreeBSD.ORG Thu Nov 24 06:01:59 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECF616A41F; Thu, 24 Nov 2005 06:01:59 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01A9743D5D; Thu, 24 Nov 2005 06:01:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 54C6C1A3C2C; Wed, 23 Nov 2005 22:01:45 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 401E7515B2; Thu, 24 Nov 2005 01:01:44 -0500 (EST) Date: Thu, 24 Nov 2005 01:01:44 -0500 From: Kris Kennaway To: David Xu Message-ID: <20051124060143.GA15395@xor.obsecurity.org> References: <20051123201837.GA4822@xor.obsecurity.org> <438500BE.3020507@freebsd.org> <20051124000824.GA11032@xor.obsecurity.org> <43850AB7.4000109@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Content-Disposition: inline In-Reply-To: <43850AB7.4000109@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: current@FreeBSD.org, Kris Kennaway Subject: Re: 4BSD process starvation during I/O X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2005 06:01:59 -0000 --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 24, 2005 at 08:35:03AM +0800, David Xu wrote: > Kris Kennaway wrote: >=20 > >On Thu, Nov 24, 2005 at 07:52:30AM +0800, David Xu wrote: > >=20 > > > >>Kris Kennaway wrote: > >> > >> =20 > >> > >>>Perhaps this can be tweaked. > >>> > >>>Kris > >>> > >>>P.S. Please, no responses about how maybe someone could write a new > >>>scheduler that doesn't have this property. > >>> > >>> > >>> > >>> > >>> =20 > >>> > >>Can you try it again with FULL_PREEMPTION is turned on ? > >> =20 > >> > > > >Didn't really make a difference: > > > >=20 > > > This might only can be fixed when msleep no longer explicitly fiddles > thread priority, let scheduler fully control it. ULE doesn't seem to suffer from the "variance" problem nearly as badly on the simultaneous dd writing test I detailed earlier: ULE 268435456 bytes transferred in 6.738002 secs (39839028 bytes/sec) 268435456 bytes transferred in 6.755917 secs (39733385 bytes/sec) 268435456 bytes transferred in 6.828591 secs (39310518 bytes/sec) 268435456 bytes transferred in 7.173220 secs (37421891 bytes/sec) 268435456 bytes transferred in 7.359424 secs (36475064 bytes/sec) 268435456 bytes transferred in 7.452125 secs (36021330 bytes/sec) 268435456 bytes transferred in 7.657969 secs (35053087 bytes/sec) 268435456 bytes transferred in 7.848142 secs (34203695 bytes/sec) 268435456 bytes transferred in 8.061658 secs (33297798 bytes/sec) 268435456 bytes transferred in 8.159963 secs (32896652 bytes/sec) 268435456 bytes transferred in 8.176940 secs (32828351 bytes/sec) 268435456 bytes transferred in 8.184902 secs (32796416 bytes/sec) 4BSD 268435456 bytes transferred in 1.860367 secs (144291681 bytes/sec) 268435456 bytes transferred in 1.885677 secs (142354961 bytes/sec) 268435456 bytes transferred in 1.983243 secs (135351757 bytes/sec) 268435456 bytes transferred in 3.409261 secs (78737139 bytes/sec) 268435456 bytes transferred in 3.762066 secs (71353204 bytes/sec) 268435456 bytes transferred in 3.910402 secs (68646510 bytes/sec) 268435456 bytes transferred in 5.086984 secs (52769079 bytes/sec) 268435456 bytes transferred in 5.566311 secs (48225018 bytes/sec) 268435456 bytes transferred in 5.816347 secs (46151897 bytes/sec) 268435456 bytes transferred in 6.818567 secs (39368309 bytes/sec) 268435456 bytes transferred in 7.375191 secs (36397085 bytes/sec) 268435456 bytes transferred in 7.568077 secs (35469440 bytes/sec) Performance is lower on ULE though. Kris --9jxsPFA5p3P2qPhR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDhVdHWry0BWjoQKURAm96AJ9J2uJCgnven7nCUyCWYVQIq7HljQCg2BVf GAVQcLK0aZvgD0185AiN5G8= =sYqT -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--