From owner-freebsd-questions@FreeBSD.ORG Thu Nov 23 17:36:36 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD18C16A594 for ; Thu, 23 Nov 2006 17:36:35 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (pool-71-117-237-189.ptldor.fios.verizon.net [71.117.237.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C74943D53 for ; Thu, 23 Nov 2006 17:35:56 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (localhost.home.localnet [127.0.0.1]) by schitzo.solgatos.com (8.13.8/8.13.6) with ESMTP id kANHaWCt016263 for ; Thu, 23 Nov 2006 09:36:32 -0800 Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.13.8/8.13.4/Submit) with UUCP id kANHaWHj016260 for freebsd-questions@freebsd.org; Thu, 23 Nov 2006 09:36:32 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id RAA19097; Thu, 23 Nov 2006 17:35:08 GMT Message-Id: <200611231735.RAA19097@sopwith.solgatos.com> To: freebsd-questions@freebsd.org In-reply-to: Your message of "Thu, 23 Nov 2006 02:52:15 EST." <20061123075214.GA51991@xor.obsecurity.org> Date: Thu, 23 Nov 2006 09:35:08 +0000 From: Dieter Subject: Re: processes not getting fair share of available disk I/O (was: Re: TCP parameters and interpreting tcpdump output ) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2006 17:36:36 -0000 > > > > hw.ata.wc=3D3D0 > > > ^^^^^^^^^^^ > > > "Make my hard drive go reeeeally slow please (just in case I crash)" :) > >=20 > > Slower, yes, but not *that* slow. > >=20 > > Normal ls : 0.032 second. Two processes using same disk, multiply by two, > > so 0.064 second. Maybe the multiplier is more than 2, call it 10x, so > > 0.32 second. But I'm seeing a factor of over 9100x. > > Humour me and turn it back on, then see what happens. Where is the knob to turn the write cache on/off on a per-drive basis in FreeBSD? I can do this in NetBSD, but the only knob I can find in FreeBSD affects all drives, and requires a reboot. Humour me and read the Subject line. The ls does not get its fair share of disk I/O. Both times are with the disk's write cache in write-through mode. I'm not comparing times with the write cache in different modes. I'm comparing ls by itself against ls competing with cp.