hard disk performance issue
Hi, I have a Dell P3-500 Optiplex GX1. I was running FreeBSD 5.0 on an 8G drive. I recently upgraded to a Western Digital ATA100 40GB drive and loaded FreeBSD 5.1. I expected to get improved drive performance, however, my motherboard would only do UDMA-33. So, I picked up a Maxtor SATA/150 PCI Combo card. It's supposed to do ATA-100. My dmesg indicates that it is running UDMA-100, but my disk dump performance is still pathetic. Here's a dd sample: tigger# dd if=/dev/ad8s1d of=/home/chris/tmp.dat count=1 1+0 records in 1+0 records out 512 bytes transferred in 2.292473 secs (2233396 bytes/sec) ~ 2MB per second?? It was about 1.8MB per second before I upgraded. The only thing I can attribute the marginal speed-up to is the faster drive rotation speed (7400 RPM). Attached is my dmesg dump. The ad8...UDMA 100 statement is near the bottom. Can anyone provide any insight? Thanks in advance. Chris tigger# dmesg | more 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 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC Preloaded elf kernel /boot/kernel/kernel at 0xc0689000. Timecounter i8254 frequency 1193182 Hz Timecounter TSC frequency 498752220 Hz CPU: Pentium III/Pentium III Xeon/Celeron (498.75-MHz 686-class CPU) Origin = GenuineIntel Id = 0x673 Stepping = 3 Features=0x383f9ffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV, PAT,PSE36,MMX,FXSR,SSE real memory = 134217728 (128 MB) avail memory = 123326464 (117 MB) Pentium Pro MTRR support enabled npx0: math processor on motherboard npx0: INT 16 interface pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00fc670 pcib0: Intel 82443BX (440 BX) host to PCI bridge at pcibus 0 on motherboard pci0: PCI bus on pcib0 agp0: Intel 82443BX (440 BX) host to PCI bridge mem 0xf000-0xf3ff at device 0.0 on pci0 pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0 pci1: PCI bus on pcib1 pci1: display, VGA at device 0.0 (no driver attached) isab0: PCI-ISA bridge at device 7.0 on pci0 isa0: ISA bus on isab0 atapci0: Intel PIIX4 UDMA33 controller port 0xffa0-0xffaf at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: Intel 82371AB/EB (PIIX4) USB controller port 0xcce0-0xccff irq 14 at device 7.2 on pci0 usb0: Intel 82371AB/EB (PIIX4) USB controller 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 pci0: bridge, PCI-unknown at device 7.3 (no driver attached) pcib2: PCI-PCI bridge at device 15.0 on pci0 pci2: PCI bus on pcib2 atapci1: Promise PDC20375 SATA150 controller port 0xdc00-0xdc7f,0xdca0-0xdcaf,0xdcc0-0xdcff mem 0x fafc-0xfafd,0xfafff000-0xfaff irq 9 at device 9.0 on pci2 ata2: at 0xfafff000 on atapci1 ata3: at 0xfafff000 on atapci1 ata4: at 0xfafff000 on atapci1 xl0: 3Com 3c905B-TX Fast Etherlink XL port 0xcc00-0xcc7f mem 0xff00-0xff7f irq 14 at devic e 17.0 on pci0 xl0: Ethernet address: 00:b0:d0:19:58:5d miibus0: MII bus on xl0 xlphy0: 3Com internal media interface on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: Option ROMs at iomem 0xc8000-0xc,0xc-0xc7fff on isa0 pmtimer0 on isa0 atkbdc0: Keyboard controller (i8042) at port 0x64,0x60 on isa0 atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: PS/2 Mouse irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 fdc0: Enhanced floppy controller (i82077, NE72065 or clone) at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: 1440-KB 3.5 drive on fdc0 drive 0 ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: Parallel port bus on ppc0 plip0: PLIP network interface on ppbus0 lpt0: Printer on ppbus0 lpt0: Interrupt-driven port ppi0: Parallel I/O on ppbus0 sc0: System console at flags 0x100 on isa0 sc0: VGA 16 virtual consoles, flags=0x300 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0 unknown: PNP0401 can't assign resources (port) unknown: PNP0700 can't assign resources (port) unknown: PNP0f13 can't assign resources (irq) unknown: PNP can't assign resources (port) unknown: PNP0303 can't assign resources (port) Timecounters tick every 10.000 msec ad8: 38166MB WDC WD400BB-00DEA0 [77545/16/63] at ata4-master UDMA100 acd0: CDROM NEC CD-ROM DRIVE:288 at ata1-master PIO4Mounting root from ufs:/dev/ad8s1a Mounting root from ufs:/dev/ad8s1a --- Outgoing mail is certified Virus Free.
Re: hard disk performance issue
On Sun, Aug 24, 2003 at 06:16:11PM -0500, Chris Newman wrote: Hi, I have a Dell P3-500 Optiplex GX1. I was running FreeBSD 5.0 on an 8G drive. I recently upgraded to a Western Digital ATA100 40GB drive and loaded FreeBSD 5.1. I expected to get improved drive performance, however, my motherboard would only do UDMA-33. So, I picked up a Maxtor SATA/150 PCI Combo card. It's supposed to do ATA-100. My dmesg indicates that it is running UDMA-100, but my disk dump performance is still pathetic. Here's a dd sample: tigger# dd if=/dev/ad8s1d of=/home/chris/tmp.dat count=1 1+0 records in 1+0 records out 512 bytes transferred in 2.292473 secs (2233396 bytes/sec) ~ 2MB per second?? It was about 1.8MB per second before I upgraded. The only thing I can attribute the marginal speed-up to is the faster drive rotation speed (7400 RPM). What do you expect when you only transfer 512 bytes with each read/write? That is a lot of overhead, and will make the actual speed of the disk to have little effect on the numbers obtained. Try increasing the block size. I.e. try: dd if=/dev/ad8s1d of=/home/chris/tmp.dat bs=64k count=100 On my system that gives about a factor of 8 faster performance. To get a better idea on how fast the disk actually is (with less overhead from the filesystem, and with less seeking involved) (and also to get bigger numbers :-) ) try sending the output to /dev/null instead of an actual file. (I.e. use of=/dev/null instead of of=/home/chris/tmp.dat) -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: hard disk performance issue
Hmm... when I do what you suggest, here's what I get... tigger# dd if=/dev/ad8s1d of=/dev/null bs=64k count=100 100+0 records in 100+0 records out 6553600 bytes transferred in 0.147501 secs (44430888 bytes/sec) tigger# dd if=/dev/ad8s1d of=/dev/null bs=100k count=100 100+0 records in 100+0 records out 1024 bytes transferred in 0.230168 secs (44489246 bytes/sec) tigger# dd if=/dev/ad8s1d of=/dev/null bs=200k count=100 100+0 records in 100+0 records out 2048 bytes transferred in 0.429506 secs (47682693 bytes/sec) ~47MB ? huge difference I'm still not sure at this point what the best way is to evaluate whether I'm getting my money's worth out of this disk/controller. How do I do a good benchmark of the speed? Thanks, cn -Original Message- From: Erik Trulsson [mailto:[EMAIL PROTECTED] Sent: Sunday, August 24, 2003 7:32 PM To: Chris Newman Cc: [EMAIL PROTECTED] Subject: Re: hard disk performance issue On Sun, Aug 24, 2003 at 06:16:11PM -0500, Chris Newman wrote: Hi, I have a Dell P3-500 Optiplex GX1. I was running FreeBSD 5.0 on an 8G drive. I recently upgraded to a Western Digital ATA100 40GB drive and loaded FreeBSD 5.1. I expected to get improved drive performance, however, my motherboard would only do UDMA-33. So, I picked up a Maxtor SATA/150 PCI Combo card. It's supposed to do ATA-100. My dmesg indicates that it is running UDMA-100, but my disk dump performance is still pathetic. Here's a dd sample: tigger# dd if=/dev/ad8s1d of=/home/chris/tmp.dat count=1 1+0 records in 1+0 records out 512 bytes transferred in 2.292473 secs (2233396 bytes/sec) ~ 2MB per second?? It was about 1.8MB per second before I upgraded. The only thing I can attribute the marginal speed-up to is the faster drive rotation speed (7400 RPM). What do you expect when you only transfer 512 bytes with each read/write? That is a lot of overhead, and will make the actual speed of the disk to have little effect on the numbers obtained. Try increasing the block size. I.e. try: dd if=/dev/ad8s1d of=/home/chris/tmp.dat bs=64k count=100 On my system that gives about a factor of 8 faster performance. To get a better idea on how fast the disk actually is (with less overhead from the filesystem, and with less seeking involved) (and also to get bigger numbers :-) ) try sending the output to /dev/null instead of an actual file. (I.e. use of=/dev/null instead of of=/home/chris/tmp.dat) -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/2002 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hard disk performance issue
On Sun, Aug 24, 2003 at 10:18:05PM -0500, Chris Newman wrote: Hmm... when I do what you suggest, here's what I get... tigger# dd if=/dev/ad8s1d of=/dev/null bs=64k count=100 100+0 records in 100+0 records out 6553600 bytes transferred in 0.147501 secs (44430888 bytes/sec) tigger# dd if=/dev/ad8s1d of=/dev/null bs=100k count=100 100+0 records in 100+0 records out 1024 bytes transferred in 0.230168 secs (44489246 bytes/sec) tigger# dd if=/dev/ad8s1d of=/dev/null bs=200k count=100 100+0 records in 100+0 records out 2048 bytes transferred in 0.429506 secs (47682693 bytes/sec) ~47MB ? huge difference I'm still not sure at this point what the best way is to evaluate whether I'm getting my money's worth out of this disk/controller. How do I do a good benchmark of the speed? /usr/ports/benchmarks/bonnie++ with and without the new controller? Of course, that'll only tell you if it's faster. Value means that you're paying for extra speed that you actually /need/. The best way to measure this is to benchmark whatever you use this particular computer for and decide if any speed difference is worth the price of the controller. -T -- The supreme irony of life is that hardly anyone gets out alive. - Robert Heinlein ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]