From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 06:32:41 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 574E316A4CE for ; Tue, 6 Jan 2004 06:32:41 -0800 (PST) Received: from mail.business.allstream.net (tor-vs11.business.allstream.net [207.181.89.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id D661043D31 for ; Tue, 6 Jan 2004 06:32:38 -0800 (PST) (envelope-from derek@cpainc.ca) Received: from derek ([66.46.154.210])i06EWbUA019913 for ; Tue, 6 Jan 2004 09:32:37 -0500 (EST) Message-ID: <000201c3d461$eea71770$0301a8c0@office.cpainc.net> From: "Derek Marcotte" To: Date: Tue, 6 Jan 2004 09:27:29 -0500 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0014_01C3D437.4E5F8B00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: 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 14:32:41 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C3D437.4E5F8B00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi Everyone, I'm having difficulty getting my SCSI hard disks to preform well. I don't know what tools are available to help me diagnose this issue, or if there are specific tweaks that I need to make. Attached is the output from dmesg. The reason why I say that performance is slow is that when I run the following: # dd if=/dev/zero of=/dev/da0 count=200 bs=128k 200+0 records in 200+0 records out 26214400 bytes transferred in 5.100589 secs (5139485 bytes/sec) You can see that it doesn't transfer very fast. If I do the whole drive, I still get the same throughput. It strikes me as odd that an older ATA disk preforms better than the newer SCSI disk. I am under the impression that a standard run-of-the mill ATA drive will do anywhere from 10-15 MB/s sequential transfer, which is what I get when writing to an actual filesystem (with no soft-updates): # mount /dev/ad0s1a on / (ufs, local) /dev/ad0s1f on /tmp (ufs, local, soft-updates) /dev/ad0s1g on /usr (ufs, local, soft-updates) /dev/ad0s1e on /var (ufs, local, soft-updates) procfs on /proc (procfs, local) # dd if=/dev/zero of=/temp.234233 count=200 bs=128k 200+0 records in 200+0 records out 26214400 bytes transferred in 2.437368 secs (10755208 bytes/sec) And with soft-updates: # dd if=/dev/zero of=/usr/temp.234233 count=200 bs=128k 200+0 records in 200+0 records out 26214400 bytes transferred in 2.759680 secs (9499072 bytes/sec) I also had (meaning it is not currently attached) a different SCSI drive attached on the bus, with the same results. Has anyone any tips for this from a FreeBSD point of view? TIA, Derek ------=_NextPart_000_0014_01C3D437.4E5F8B00 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dmesg.txt" Copyright (c) 1992-2003 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 root@freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (298.54-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0x660 Stepping =3D 0 = Features=3D0x183f9ff real memory =3D 134217728 (131072K bytes) avail memory =3D 125378560 (122440K bytes) Preloaded elf kernel "kernel" at 0xc051d000. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00ede10 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem = 0x44000000-0x47ffffff at device 0.0 on pci0 pcib1: at device 1.0 on = pci0 pci1: on pcib1 pci1: at 0.0 irq 11 fxp0: port 0x2400-0x241f mem = 0x40100000-0x401fffff,0x42000000-0x42000fff irq 11 at device 15.0 on = pci0 fxp0: Ethernet address 00:08:c7:89:c4:28 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0x2000-0x20ff mem = 0x40200000-0x40200fff irq 11 at device 16.0 on pci0 aic7880: Ultra Wide Channel A, SCSI Id=3D7, 16/253 SCBs isab0: at device 20.0 on pci0 isa0: on isab0 atapci0: port 0x2440-0x244f at device = 20.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x2420-0x243f irq = 11 at device 20.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered chip0: port 0xfc00-0xfc0f at = device 20.3 on pci0 orm0: