From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 11:42:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BEEA16A4CE for ; Tue, 6 Jan 2004 11:42:53 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E06943D49 for ; Tue, 6 Jan 2004 11:42:47 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i06Jgjmg023277; Tue, 6 Jan 2004 13:42:45 -0600 (CST) (envelope-from dan) Date: Tue, 6 Jan 2004 13:42:45 -0600 From: Dan Nelson To: Derek Marcotte Message-ID: <20040106194244.GJ38169@dan.emsphone.com> References: <000201c3d461$eea71770$0301a8c0@office.cpainc.net> <012d01c3d47d$40fe8b50$f4f0a8c0@pcmedx.com> <086401c3d481$d35e2ce0$0301a8c0@office.cpainc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <086401c3d481$d35e2ce0$0301a8c0@office.cpainc.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: questions@freebsd.org cc: Mike Maltese Subject: Re: Poor SCSI disk preformance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 19:42:53 -0000 In the last episode (Jan 06), Derek Marcotte said: > Actually, just for kicks: > > # dd if=/dev/da0 of=/dev/null bs=128k & > [1] 1839 > # iostat -K -w 1 da0 > tty da0 cpu > tin tout KB/t tps MB/s us ni sy in id > 1 42 64.00 607 37.92 1 0 1 0 98 > 0 43 64.00 222 13.87 0 0 2 0 98 > 0 43 64.00 223 13.92 0 0 0 2 98 > 0 42 64.00 224 13.98 0 0 2 0 98 > 0 43 64.00 222 13.86 0 0 3 0 97 > 0 43 64.00 223 13.92 0 0 1 2 98 > 0 43 64.00 223 13.92 0 0 2 1 97 > 0 42 64.00 223 13.92 0 0 3 0 97 > 0 43 64.00 223 13.92 0 0 1 0 99 > > Seems to give me the performance that I expect... Aha. Check the WCE bit to see if your write cache is enabled on the disk: # camcontrol mode da0 -m 8 | grep WCE If it's not set, that could be contributing to the speed difference between reads and writes. Set it by running "cmcontrol mode da0 -m 8 -e -P 2", and set "WCE: 1". -- Dan Nelson dnelson@allantgroup.com