From owner-freebsd-questions@FreeBSD.ORG Wed Jun 28 17:28:30 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 9B4EB16A408 for ; Wed, 28 Jun 2006 17:28:30 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BBFF44E04 for ; Wed, 28 Jun 2006 17:28:22 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from collaborativefusion.com (mx01.pub.collaborativefusion.com [206.210.89.201]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Wed, 28 Jun 2006 13:28:21 -0400 id 0005641B.44A2BC35.000039BB Received: from Internal Mail-Server (206.210.89.202) by mx01 (envelope-from wmoran@collaborativefusion.com) with AES256-SHA encrypted SMTP; 28 Jun 2006 13:18:50 -0400 Date: Wed, 28 Jun 2006 13:28:20 -0400 From: Bill Moran To: Garrett Cooper Message-Id: <20060628132820.e6133218.wmoran@collaborativefusion.com> In-Reply-To: <55A9FE08-614D-488F-B0F3-CE9FB6CBE26A@u.washington.edu> References: <20060628155129.2108C43D78@mx1.FreeBSD.org> <55A9FE08-614D-488F-B0F3-CE9FB6CBE26A@u.washington.edu> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.19; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: busy disks - a lot of write activities on / part 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: Wed, 28 Jun 2006 17:28:30 -0000 In response to Garrett Cooper : > On Jun 28, 2006, at 8:51 AM, Tamouh H. wrote: > > > > > I'm diagnosing a slow hard disk issues , trying to determine where > > the bottleneck in all of this. The system is FreeBSD 5.4 with SCSI > > U320 drives in RAID-5 on Adaptec 2130SLP Controller. > > > > I'm noticing the / boot partition has the most activities for > > writes/Busy and was wondering if anyone can shed some lights on > > this and what can possibly be done to speed up the drives. > > > > doing 'gstat' shows: > > > > dT: 0.510 flag_I 500000us sizeof 240 i -1 > > L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name > > 0 0 0 0 0.0 0 0 0.0 0.0| acd0 > > 1 141 6 259 6.6 135 1466 121.0 94.3| aacd0 > > 0 0 0 0 0.0 0 0 0.0 0.0| aacd1 > > 0 0 0 0 0.0 0 0 0.0 0.0| acd0t01 > > 1 141 6 259 6.7 135 1466 121.0 94.5| aacd0s1 > > 0 0 0 0 0.0 0 0 0.0 0.0| aacd1s1 > > 1 61 0 0 0.0 61 549 16.6 101.2| > > aacd0s1a > > 0 0 0 0 0.0 0 0 0.0 0.0| > > aacd0s1b > > 0 0 0 0 0.0 0 0 0.0 0.0| > > aacd0s1c > > 0 73 0 0 0.0 73 906 205.1 48.6| > > aacd0s1d > > 0 4 2 4 7.9 2 12 242.6 49.1| > > aacd0s1e > > 0 4 4 255 6.1 0 0 0.0 2.4| > > aacd0s1f > > 0 0 0 0 0.0 0 0 0.0 0.0| > > aacd1s1c > > 0 0 0 0 0.0 0 0 0.0 0.0| > > aacd1s1d > > 0 0 0 0 0.0 0 0 0.0 0.0| > > aacd1s1e > > > > This is df: > > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/aacd0s1a 809998 59430 685770 8% / > > devfs 1 1 0 100% /dev > > /dev/aacd1s1e 1722888 14892 1570166 1% /tmp > > /dev/aacd0s1f 209955742 62440662 130718622 32% /home > > /dev/aacd0s1d 35921132 6151076 26896366 19% /usr > > /dev/aacd0s1e 22270798 3480300 17008836 17% /var > > devfs 1 1 0 100% /var/named/dev > > procfs 4 4 0 100% /proc > > /dev/aacd1s1d 137099908 70149522 55982394 56% /backup > > > > Any info on matter of disks performance is much appreciated. > > > > Thx, > > > > Tamouh Hakmi > > Try compiling and installing lsof in ports. That may help in > determining what files are open so then you can trace the files back > to any given processes that may still have the files open, so then > you can determine the bottlenecks better. lsof is nice, but don't forget about fstat, which comes with FreeBSD. -- Bill Moran Collaborative Fusion Inc. **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. ****************************************************************