From owner-freebsd-stable@FreeBSD.ORG Sat Feb 12 00:03:48 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5ACDC16A4CE for ; Sat, 12 Feb 2005 00:03:48 +0000 (GMT) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 52E9443D2D for ; Sat, 12 Feb 2005 00:03:47 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 16150 invoked from network); 11 Feb 2005 23:59:07 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 11 Feb 2005 23:59:07 -0000 Received: (qmail 31360 invoked by uid 89); 12 Feb 2005 00:07:17 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 12 Feb 2005 00:07:17 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 27F63114CD; Sat, 12 Feb 2005 02:03:45 +0200 (EET) Date: Sat, 12 Feb 2005 02:03:44 +0200 From: Ion-Mihai Tetcu To: Ion-Mihai Tetcu Message-ID: <20050212020344.2ef589c5@it.buh.tecnik93.com> In-Reply-To: <20050212014727.39fc2d14@it.buh.tecnik93.com> References: <200502081333.08964.michaelnottebrock@gmx.net> <4253.213.222.48.10.1107866717.squirrel@mailgw.icon.bg> <20050208155822.29df9373@it.buh.tecnik93.com> <20050208163915.GC43054@xor.obsecurity.org> <20050212014727.39fc2d14@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 1.0.0 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: v0rbiz@icon.bg cc: freebsd-stable@freebsd.org cc: Kris Kennaway Subject: Re: ULE status X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Feb 2005 00:03:48 -0000 On Sat, 12 Feb 2005 01:47:27 +0200 Ion-Mihai Tetcu wrote: > On Tue, 8 Feb 2005 08:39:15 -0800 > Kris Kennaway wrote: > > > On Tue, Feb 08, 2005 at 03:58:22PM +0200, Ion-Mihai Tetcu wrote: > > > On Tue, 8 Feb 2005 14:45:17 +0200 (EET) > > > "Viktor Ivanov" wrote: > > > > > [ ... ] > > > > > On the other hand, using SCHED_ULE improves sound quality and general > > > > system 'response' concerning GUI... don't know 'bout performance. > > > > > > By any chance does it help with copying from ata disks on different > > > controllers ? For me on large files this brings up "swap_pager: > > > indefinite wait buffer" with 4BSD. > > > > That doesn't sound like a scheduler problem, rather a hardware or ata > > driver problem. Did you try sos' new driver yet? > > Well, I'm running my desktop with an ULE kernel now, snippets bellow: > options SCHED_ULE # ULE scheduler > options ADAPTIVE_GIANT # Giant mutex is adaptive. > options HZ=1200 > options INVARIANTS # Enable calls of extra sanity checking > options INVARIANT_SUPPORT # Extra sanity checks of internal structures, > # required by INVARIANTS > options WITNESS # Enable checks to detect deadlocks and cycles > options WITNESS_SKIPSPIN # Don't run witness on spinlocks for speed > > and > # sysctl debug.witness > debug.witness.skipspin: 1 > debug.witness.trace: 1 > debug.witness.kdb: 0 > debug.witness.watch: 0 > > > And while I don't see may improvements in general operation, at least > this problem is gone. I still get a few seconds pauses in sound and > switching between app in X is sluggish while copying large files, but at > least I don't get swap pager complains and I'd say there's a 3x > responsiveness improvement. > > > I didn't test ata patches yet, just to take one step at the time. But the problem is seems there somewhere, at least `vmstat -i 1` show 98-103% busy ad0 when copying from ad2 to ad0 and the system doesn't swap or look loaded. Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 326880 32656 522764 64152 34144 count All 481012 36440 3327348 73980 pages Interrupts Proc:r p d s w Csw Trp Sys Int Sof Flt cow 1931 total 1 2 6102 5661 305 7295 3128 429 56 105476 wire 1: atkb 335032 act 3: sio1 10.1%Sys 2.3%Intr 5.4%User 0.0%Nice 82.2%Idl 30768 inact 4: sio0 | | | | | | | | | | 12072 cache 6: fdc0 =====+>>> 22072 free 128 8: rtc daefr 159 12: psm Namei Name-cache Dir-cache prcfr 13: npx Calls hits % hits % react 57 14: ata 1686 1686 100 pdwak 51 15: ata 26 zfod pdpgs 143 16: xl0 Disks ad0 ad2 26 ofod intrn 189 22: pcm KB/t 128 128 %slo-z 61472 buf 1204 0: clk tps 28 26 12 tfree 41 dirtybuf MB/s 3.46 3.21 35666 desiredvnodes % busy 98 9 8916 numvnodes 7269 freevnodes -- IOnut Unregistered ;) FreeBSD "user"