--- On Thu, 4/23/09, Thomas Pfaff <tpf...@tp76.info> wrote:

> From: Thomas
Pfaff <tpf...@tp76.info>
> Subject: Problem with slow disk I/O
> To:
misc@openbsd.org
> Received: Thursday, April 23, 2009, 9:27 AM
> I'm getting
horrible disk performance
> compared to Ubuntu on my system.
> 
> I noticed
this when extracting ports.tar.gz on the same
> machine with
> different OSs
(this is something I did a while back to
> check for
> a possible hardware
problem when OpenBSD crashed upon
> extracting
> ports.tar.gz).
> 
> OpenBSD
(ffs):
> 
>   $ time tar -zxf ports.tar.gz     
> 0m59.90s real     0m1.00s
user 
>    0m6.95s system
> 
> Ubuntu (ext3):
> 
>   $ time tar -zxf
ports.tar.gz
>   real    0m18.440s
>   user    0m1.212s
>   sys    0m2.596s
>
> 1 minute on OpenBSD and 18.5 seconds on Ubuntu, doing the
> exact same
>
thing on the exact same hardware!  Why the huge
> difference?  Both are
>
default installations, except softdep is turned on.
> 
> Thanks for any
pointers or advice.
> 
> Thomas
> 
> OpenBSD 4.5-current (GENERIC.MP) #13: Thu
Apr 23 13:00:36
> CEST 2009
>    
tpf...@ws.tp76.info:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem =
3152609280 (3006MB)
> avail mem = 3045097472 (2904MB)
> mainbus0 at root
>
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf06b0 (76 entries)
> bios0: vendor
American Megatrends Inc. version "1704" date
> 11/27/2007
> bios0: ASUSTeK
Computer INC. P5B-E
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC
MCFG OEMB HPET
> acpi0: wakeup devices P0P2(S4) P0P1(S4) UAR1(S4) PS2K(S4)
>
PS2M(S4) EUSB(S4) USBE(S4) P0P4(S4) P0P5(S4) P0P6(S4)
> P0P7(S4) P0P8(S4)
P0P9(S4) USB0(S4) USB1(S4) USB2(S4)
> USB3(S4) USB4(S4) USB5(S4)
> acpitimer0
at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT
compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM)2
CPU 6400 @ 2.13GHz, 2135.29 MHz
> cpu0:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR,NXE,LONG
> cpu0: 2MB 64b/line 8-way L2 cache
> cpu0: apic clock running
at 266MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R)
Core(TM)2 CPU 6400 @ 2.13GHz, 2135.04 MHz
> cpu1:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,
xTPR,NXE,LONG
> cpu1: 2MB 64b/line 8-way L2 cache
> ioapic0 at mainbus0 apid 2
pa 0xfec00000, version 20, 24
> pins
> acpihpet0 at acpi0: 14318179 Hz
>
acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P2)
> acpiprt2
at acpi0: bus 5 (P0P1)
> acpiprt3 at acpi0: bus 4 (P0P4)
> acpiprt4 at acpi0:
bus -1 (P0P5)
> acpiprt5 at acpi0: bus -1 (P0P6)
> acpiprt6 at acpi0: bus 3
(P0P7)
> acpiprt7 at acpi0: bus 2 (P0P8)
> acpicpu0 at acpi0
> acpicpu1 at
acpi0
> acpibtn0 at acpi0: PWRB
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0
function 0 "Intel 82G965 Host" rev
> 0x02
> ppb0 at pci0 dev 1 function 0
"Intel 82G965 PCIE" rev 0x02:
> apic 2 int 16 (irq 11)
> pci1 at ppb0 bus 1
>
mem address conflict 0xc0000000/0x10000000
> vga1 at pci1 dev 0 function 0
"NVIDIA GeForce 7600 GT" rev
> 0xa1
> wsdisplay0 at vga1 mux 1: console
(80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100
emulation)
> uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev
> 0x02:
apic 2 int 16 (irq 11)
> uhci1 at pci0 dev 26 function 1 "Intel 82801H USB"
rev
> 0x02: apic 2 int 17 (irq 5)
> ehci0 at pci0 dev 26 function 7 "Intel
82801H USB" rev
> 0x02: apic 2 int 18 (irq 15)
> usb0 at ehci0: USB revision
2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> azalia0 at
pci0 dev 27 function 0 "Intel 82801H HD Audio"
> rev 0x02: apic 2 int 22 (irq
3)
> azalia0: codecs: Analog Devices AD1988A
> audio0 at azalia0
> ppb1 at
pci0 dev 28 function 0 "Intel 82801H PCIE" rev
> 0x02: apic 2 int 16 (irq 11)
> pci2 at ppb1 bus 4
> ppb2 at pci0 dev 28 function 3 "Intel 82801H PCIE" rev
> 0x02: apic 2 int 19 (irq 10)
> pci3 at ppb2 bus 3
> age0 at pci3 dev 0
function 0 "Attansic Technology L1" rev
> 0xb0: apic 2 int 19 (irq 10),
address 00:18:f3:9d:7d:04
> atphy0 at age0 phy 0: F1 10/100/1000 PHY, rev. 5
>
ppb3 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev
> 0x02: apic 2 int 16
(irq 11)
> pci4 at ppb3 bus 2
> jmb0 at pci4 dev 0 function 0 "JMicron JMB363
IDE/SATA" rev
> 0x02
> ahci0 at jmb0: apic 2 int 16 (irq 11), AHCI 1.0
>
scsibus0 at ahci0: 32 targets
> pciide0 at jmb0: DMA, channel 0 wired to
native-PCI,
> channel 1 wired to native-PCI
> pciide0: using apic 2 int 16
(irq 11) for native-PCI
> interrupt
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus1 at atapiscsi0: 2 targets
> cd0 at scsibus1 targ 0 lun 0: <PLEXTOR,
DVDR PX-740A,
> 1.00> ATAPI 5/cdrom removable
> cd0(pciide0:0:0): using PIO
mode 4, Ultra-DMA mode 2
> pciide0: channel 1 disabled (no drives)
> uhci2 at
pci0 dev 29 function 0 "Intel 82801H USB" rev
> 0x02: apic 2 int 23 (irq 7)
>
uhci3 at pci0 dev 29 function 1 "Intel 82801H USB" rev
> 0x02: apic 2 int 19
(irq 10)
> uhci4 at pci0 dev 29 function 2 "Intel 82801H USB" rev
> 0x02: apic
2 int 18 (irq 15)
> ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev
>
0x02: apic 2 int 23 (irq 7)
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1
"Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 30 function 0
"Intel 82801BA Hub-to-PCI"
> rev 0xf2
> pci5 at ppb4 bus 5
> re0 at pci5 dev 2
function 0 "D-Link Systems DGE-528T" rev
> 0x10: RTL8169/8110SB (0x1000), apic
2 int 23 (irq 7),
> address 00:21:91:12:15:03
> rgephy0 at re0 phy 7:
RTL8169S/8110S PHY, rev. 3
> pcib0 at pci0 dev 31 function 0 "Intel 82801H
LPC" rev
> 0x02
> pciide1 at pci0 dev 31 function 2 "Intel 82801H SATA" rev
>
0x02: DMA, channel 0 configured to native-PCI, channel 1
> configured to
native-PCI
> pciide1: using apic 2 int 19 (irq 10) for native-PCI
> interrupt
> wd0 at pciide1 channel 0 drive 0: <SAMSUNG HD321KJ>
> wd0: 16-sector PIO,
LBA48, 305245MB, 625142448 sectors
> wd0(pciide1:0:0): using PIO mode 4,
Ultra-DMA mode 5
> ichiic0 at pci0 dev 31 function 3 "Intel 82801H SMBus" rev
> 0x02: apic 2 int 18 (irq 10)
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50:
1GB DDR2 SDRAM non-parity
> PC2-5300CL5
> spdmem1 at iic0 addr 0x51: 1GB DDR2
SDRAM non-parity
> PC2-5300CL5
> spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM
non-parity
> PC2-5300CL5
> spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM
non-parity
> PC2-5300CL5
> pciide2 at pci0 dev 31 function 5 "Intel 82801H
SATA" rev
> 0x02: DMA, channel 0 wired to native-PCI, channel 1 wired to
>
native-PCI
> pciide2: using apic 2 int 19 (irq 10) for native-PCI
> interrupt
> usb2 at uhci0: USB revision 1.0
> uhub2 at usb2 "Intel UHCI root hub" rev
1.00/1.00 addr 1
> usb3 at uhci1: USB revision 1.0
> uhub3 at usb3 "Intel UHCI
root hub" rev 1.00/1.00 addr 1
> usb4 at uhci2: USB revision 1.0
> uhub4 at
usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb5 at uhci3: USB revision
1.0
> uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> usb6 at
uhci4: USB revision 1.0
> uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00
addr 1
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0
at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0:
console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> midi0 at
pcppi0: <PC speaker>
> spkr0 at pcppi0
> wbsio0 at isa0 port 0x2e/2: W83627DHG
rev 0x23
> lm1 at wbsio0 port 0x290/8: W83627DHG
> mtrr: Pentium Pro MTRR
support
> uhidev0 at uhub6 port 2 configuration 1 interface 0
> "Logitech
USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
> uhidev0: iclass 3/1
> ums0 at
uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> ugen0 at uhub5 port 2
"American Power Conversion Back-UPS
> CS 500 FW:808.q8.I USB FW:q8" rev
1.10/0.06 addr 2
> uscanner0 at uhub2 port 1 configuration 1 interface 0 "AGFA
> SNAPSCAN 1212U" rev 1.00/1.20 addr 2
> softraid0 at root
> root on wd0a swap
on wd0b dump on wd0b

I assure you that this is only pointing towards the
layout of the EXT3 file system in comparison to UFS/FFS and the aggressive
buffer cache on the GNU/Linux system which softdep cannot compete with.

On
OpenBSD you are just seeing a closer representation of the actual disk I/O
bottlenecks.  The UBC question was interesting and I'm hoping to get an answer
to it. ;)

---
James A. Peltier     james_a_pelt...@yahoo.ca
__________________________________________________________________
Make your
browsing faster, safer, and easier with the new Internet Explorer. 8.
Optimized for Yahoo! Get it Now for Free! at
http://downloads.yahoo.com/ca/internetexplorer/

Reply via email to