Problem with slow disk I/O

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Problem with slow disk I/O

Thomas Pfaff-5
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
    [hidden email]:/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,CFLUSH,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,CFLUSH,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

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Tobias Ulmer
On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:

> 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.
>
Try: time tar -zxf ports.tar.gz && sync

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Otto Moerbeek
On Thu, Apr 23, 2009 at 02:02:06PM +0200, Tobias Ulmer wrote:

> On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
> > 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.
> >
> Try: time tar -zxf ports.tar.gz && sync

And include the output of mount and show the place where you are untarring.

        -Otto

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Christoph Leser
In reply to this post by Tobias Ulmer
> -----Urspr|ngliche Nachricht-----
> Von: [hidden email] [mailto:[hidden email]]
> Im Auftrag von Tobias Ulmer
> Gesendet: Donnerstag, 23. April 2009 14:02
> An: Thomas Pfaff
> Cc: [hidden email]
> Betreff: Re: Problem with slow disk I/O
>
>
> On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
> > 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.
> >
> Try: time tar -zxf ports.tar.gz && sync
>
>

better use parenthesis:

time ( tar -zxf ports.tar.gz && sync )

Compare

# time  sleep 1 && sleep 5
    0m1.01s real     0m0.00s user     0m0.01s system

to

# time ( sleep 1 && sleep 5 )
    0m6.01s real     0m0.00s user     0m0.03s system




Christoph

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by Otto Moerbeek
On Thu, 23 Apr 2009 14:13:18 +0200
Otto Moerbeek <[hidden email]> wrote:

> On Thu, Apr 23, 2009 at 02:02:06PM +0200, Tobias Ulmer wrote:
>
> > On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
> > > 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.
> > >
> > Try: time tar -zxf ports.tar.gz && sync
>
> And include the output of mount and show the place where you are untarring.
>

$ mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)

$ pwd
/home/tpfaff

$ time tar -zxf ports.tar.gz && sync   # (... && sync) ~same result
    1m2.66s real     0m1.09s user     0m6.85s system
$ time rm -rf ports
    0m15.20s real     0m0.15s user     0m1.42s system

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Tobias Ulmer
On Thu, Apr 23, 2009 at 05:19:34PM +0200, Thomas Pfaff wrote:

> On Thu, 23 Apr 2009 14:13:18 +0200
> Otto Moerbeek <[hidden email]> wrote:
>
> > On Thu, Apr 23, 2009 at 02:02:06PM +0200, Tobias Ulmer wrote:
> >
> > > On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
> > > > 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.
> > > >
> > > Try: time tar -zxf ports.tar.gz && sync
> >
> > And include the output of mount and show the place where you are untarring.
> >
>
> $ mount
> /dev/wd0a on / type ffs (local, softdep)
> /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
>
> $ pwd
> /home/tpfaff
>
> $ time tar -zxf ports.tar.gz && sync   # (... && sync) ~same result
>     1m2.66s real     0m1.09s user     0m6.85s system
> $ time rm -rf ports
>     0m15.20s real     0m0.15s user     0m1.42s system

and on linux?




[ remembered the () thing the very second i hit 'y' ;). I figured you're
clever enough... ]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by Thomas Pfaff-5
On Thu, 23 Apr 2009 15:27:42 +0200
Thomas Pfaff <[hidden email]> wrote:
> 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).

This is on different hardware now, BTW (not the one that crashed).

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

gjones5555
Thomas Pfaff wrote:

> On Thu, 23 Apr 2009 15:27:42 +0200
> Thomas Pfaff <[hidden email]> wrote:
>  
>> 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).
>>    
>
> This is on different hardware now, BTW (not the one that crashed).
>
>  
Is your chipset revision recognized by OpenBSD?  I had a similar problem
with a new motherboard and upgrading to the latest snapshot resolved
it.  A dmesg would be helpful.

Regards,

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by Tobias Ulmer
On Thu, 23 Apr 2009 15:31:58 +0200
Tobias Ulmer <[hidden email]> wrote:
[...]

> > > > Try: time tar -zxf ports.tar.gz && sync
> > >
> > > And include the output of mount and show the place where you are untarring.
> > >
> >
> > $ mount
> > /dev/wd0a on / type ffs (local, softdep)
> > /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> > fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
> >
> > $ pwd
> > /home/tpfaff
> >
> > $ time tar -zxf ports.tar.gz && sync   # (... && sync) ~same result
> >     1m2.66s real     0m1.09s user     0m6.85s system
> > $ time rm -rf ports
> >     0m15.20s real     0m0.15s user     0m1.42s system
>
> and on linux?

First on Ubuntu:

Script started on Thu 23 Apr 2009 03:50:27 PM CEST
~$ time (tar -zxf ports.tar.gz && sync)
real 0m47.784s
user 0m1.576s
sys 0m5.024s
~$ time (rm -rf ports && sync)
real 0m1.883s
user 0m0.076s
sys 0m1.664s
time (tar -zxf ports.tar.gz && sync)
real 0m20.652s
user 0m1.240s
sys 0m2.592s
~$ time (rm -rf && sync)
real 0m0.003s
user 0m0.004s
sys 0m0.004s
~$ time tar -zxf ports.tar.gz
real 0m11.513s
user 0m1.268s
sys 0m2.772s
~$ time rm -rf ports
real 0m1.752s
user 0m0.100s
sys 0m1.648s
~$ time tar -zxf ports.tar.gz
real 0m14.400s
user 0m1.352s
sys 0m2.560s
~$ time rm -rf ports
real 0m1.756s
user 0m0.076s
sys 0m1.684s
~$ mount # watch your eyes!
/dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
gvfs-fuse-daemon on /home/tpfaff/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=tpfaff)
~$ pwd
/home/tpfaff
~$ exit
Script done on Thu 23 Apr 2009 03:53:20 PM CEST

Then the same commands on OpenBSD:

Script started on Thu Apr 23 17:55:53 2009
$ time (tar -zxf ports.tar.gz && sync)
    1m2.62s real     0m1.15s user     0m7.15s system
$ time (rm -rf ports && sync)
    0m14.24s real     0m0.14s user     0m1.53s system
$ time (tar -zxf ports.tar.gz && sync)
    1m1.37s real     0m1.31s user     0m7.18s system
$ time (rm -rf ports && sync)
    0m14.72s real     0m0.12s user     0m1.82s system
$ time tar -zxf ports.tar.gz
    1m3.39s real     0m1.08s user     0m6.69s system
$ time rm -rf ports
    0m15.41s real     0m0.12s user     0m1.38s system
$ time tar -zxf ports.tar.gz
    1m2.62s real     0m1.19s user     0m6.80s system
$ time rm -rf ports
    0m15.63s real     0m0.10s user     0m1.79s system
$ mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
$ pwd
/home/tpfaff
$ exit
Script done on Thu Apr 23 18:02:13 2009

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by gjones5555
On Thu, 23 Apr 2009 09:54:15 -0400
gjones <[hidden email]> wrote:
> Thomas Pfaff wrote:
> > On Thu, 23 Apr 2009 15:27:42 +0200
> > This is on different hardware now, BTW (not the one that crashed).
> >  
> Is your chipset revision recognized by OpenBSD?  I had a similar problem
> with a new motherboard and upgrading to the latest snapshot resolved
> it.  A dmesg would be helpful.

I provided that in my first post ;-)

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Vijay Sankar
In reply to this post by Thomas Pfaff-5
Thomas Pfaff wrote:

> On Thu, 23 Apr 2009 14:13:18 +0200
> Otto Moerbeek <[hidden email]> wrote:
>
>  
>> On Thu, Apr 23, 2009 at 02:02:06PM +0200, Tobias Ulmer wrote:
>>
>>    
>>> On Thu, Apr 23, 2009 at 03:27:42PM +0200, Thomas Pfaff wrote:
>>>      
>>>> 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.
>>>>
>>>>        
>>> Try: time tar -zxf ports.tar.gz && sync
>>>      
>> And include the output of mount and show the place where you are untarring.
>>
>>    
>
> $ mount
> /dev/wd0a on / type ffs (local, softdep)
> /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
>
> $ pwd
> /home/tpfaff
>
> $ time tar -zxf ports.tar.gz && sync   # (... && sync) ~same result
>     1m2.66s real     0m1.09s user     0m6.85s system
> $ time rm -rf ports
>     0m15.20s real     0m0.15s user     0m1.42s system
>
>  
Sorry for the long message. I tried your test commands on three
different servers -- two Dell servers and a generic box with Gigabyte
motherboard. If there are any other tests I can run to help with this
problem please let me know.

Server1 has OpenBSD 4.4 -stable, GENERIC.MP, Dell 2950, PERC/6i, 15K SAS
drives, two 146GB drives as RAID1 and another two 450GB drives as RAID1

On either RAID1 array, I get results similar to the following:

server1$ time tar xzf ports.tar.gz
    0m55.28s real     0m1.57s user     0m6.40s system
server1$ time rm -rf ports
    0m36.24s real     0m0.19s user     0m2.57s system

Server2 has OpenBSD 4.5 GENERIC.MP#46 i386 (snapshot from April 12, 2009
or so), two 450GB drives as RAID1 and six 450GB drives as RAID6

On RAID1 array

server2$ time tar xzf ports.tar.gz
    0m56.95s real     0m1.47s user     0m6.08s system
server2$ time rm -rf ports
    0m32.44s real     0m0.19s user     0m2.50s system

On RAID6 array

server2$ time tar xzf ../ports.tar.gz
    1m9.15s real     0m1.11s user     0m6.44s system
server2$ time rm -rf ports
    0m30.71s real     0m0.14s user     0m2.90s system


On a new server (OpenBSD 4.4-stable, 320GB SATA drives), AHCI,

test$ time tar xzf ports.tar.gz
    5m12.78s real     0m1.39s user     0m5.04s system
test# time rm -rf ports
    2m34.91s real     0m0.15s user     0m2.59s system

Because of the 103095897 bytes/sec transfer rate on the test box I
thought that the test box would have faster writes but it seems to have
taken 5 minutes compared to the Dell server which had a transfer rate of
75528478 bytes/sec.

On Dell PE2950 servers with 15K RPM SAS drives I get

$ dd if=/dev/arandom of=test.dat bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes transferred in 0.135 secs (75528478 bytes/sec)

Here is the output of mount on server1 and server2

server1# mount
/dev/sd0a on / type ffs (local)
/dev/sd0h on /home type ffs (local, nodev, nosuid)
/dev/sd0g on /tmp type ffs (local, nodev, nosuid)
/dev/sd0d on /usr type ffs (local, nodev)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd0f on /var/www type ffs (local, nodev, nosuid)
/dev/sd1a on /apps type ffs (local, nodev, nosuid)
/dev/sd1b on /source type ffs (local, nodev, nosuid)
/dev/sd1d on /products type ffs (local, nodev, nosuid)
/dev/sd1e on /storage type ffs (local, nodev, nosuid)

server2# mount
/dev/sd0a on / type ffs (local)
/dev/sd0k on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid)
/dev/sd0f on /usr type ffs (local, nodev)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev)
/dev/sd0h on /usr/local type ffs (local, nodev)
/dev/sd0j on /usr/obj type ffs (local, nodev, nosuid)
/dev/sd0i on /usr/src type ffs (local, nodev, nosuid)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd1f on /mnt type ffs (local)

On a generic box (gigabyte motherboard, 320GB 7K RPM SAS drives etc.) I get

test$ dd if=/dev/arandom of=test.dat bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes transferred in 0.099 secs (103095897 bytes/sec)

Output of mount on test$

test$ mount
/dev/sd0a on / type ffs (local)
/dev/sd0h on /home type ffs (local, nodev, nosuid)
/dev/sd0g on /tmp type ffs (local, nodev, nosuid)
/dev/sd0d on /usr type ffs (local, nodev)
/dev/sd0e on /var type ffs (local, nodev, nosuid)
/dev/sd0f on /var/www type ffs (local, nodev, nosuid)

ports.tar.gz was in /home/vsankar on each of the RAID1 arrays and the
output from tar went to /home/vsankar/ports. The RAID6 array on SERVER2
was mounted /mnt and I copied ports.tar.gz to /mnt/vsankar and output
from tar went to /mnt/vsankar/ports for that test.

dmesg for SERVER1

OpenBSD 4.4-stable (GENERIC.NPS.MP) #1: Wed Dec  3 15:47:29 CST 2008
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.NPS.MP
cpu0: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
real mem  = 3484319744 (3322MB)
avail mem = 3380072448 (3223MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/12/08, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.5 @ 0xcfb9c000 (67 entries)
bios0: vendor Dell Inc. version "2.5.0" date 09/12/2008
bios0: Dell Inc. PowerEdge 2900
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST BERT
EINJ TCPA
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
ioapic1 at mainbus0: apid 5 pa 0xfec80000, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 5
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (PEX2)
acpiprt2 at acpi0: bus 5 (UPST)
acpiprt3 at acpi0: bus 6 (DWN1)
acpiprt4 at acpi0: bus 8 (DWN2)
acpiprt5 at acpi0: bus 9 (PE2X)
acpiprt6 at acpi0: bus 10 (PEX3)
acpiprt7 at acpi0: bus 11 (PEX4)
acpiprt8 at acpi0: bus 1 (PEX5)
acpiprt9 at acpi0: bus 0 (PE2P)
acpiprt9: no apic found for irq 128
acpiprt9: no apic found for irq 129
acpiprt9: no apic found for irq 142
acpiprt10 at acpi0: bus 12 (PEX6)
acpiprt11 at acpi0: bus 2 (SBEX)
acpiprt12 at acpi0: bus 14 (COMP)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpicpu2 at acpi0: C3
acpicpu3 at acpi0: C3
bios0: ROM list: 0xc0000/0x9000! 0xc9000/0x1000 0xca000/0x1e00
0xcc000/0x6200 0xec000/0x4000!
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 5000X Host" rev 0x12
ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0x12
pci1 at ppb0 bus 4
ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci2 at ppb1 bus 5
ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci3 at ppb2 bus 6
ppb3 at pci3 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci4 at ppb3 bus 7
bnx0 at pci4 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int 16
(irq 10)
ppb4 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01: apic 4 int
16 (irq 0)
pci5 at ppb4 bus 8
ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
pci6 at ppb5 bus 9
ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0x12: apic 4 int 16
(irq 0)
pci7 at ppb6 bus 10
ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE" rev 0x12: apic 4 int 16
(irq 0)
pci8 at ppb7 bus 11
ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0x12
pci9 at ppb8 bus 1
mfi0 at pci9 dev 0 function 0 "Symbios Logic SAS1078" rev 0x04: apic 4
int 16 (irq 10), Dell PERC 6/i integrated
mfi0: logical drives 2, version 6.1.1-0047, 256MB RAM
scsibus0 at mfi0: 2 targets, initiator 64
sd0 at scsibus0 targ 0 lun 0: <DELL, PERC 6/i, 1.21> SCSI3 0/direct fixed
sd0: 139392MB, 17769 cyl, 255 head, 63 sec, 512 bytes/sec, 285474816 sec
total
sd1 at scsibus0 targ 1 lun 0: <DELL, PERC 6/i, 1.21> SCSI3 0/direct fixed
sd1: 428672MB, 54648 cyl, 255 head, 63 sec, 512 bytes/sec, 877920256 sec
total
ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0x12: apic 4 int
16 (irq 0)
pci10 at ppb9 bus 12
ppb10 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0x12
pci11 at ppb10 bus 13
pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0x12
pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0x12
pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0x12
pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0x12
pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0x12
pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0x12
pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0x12
ppb11 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
pci12 at ppb11 bus 2
ppb12 at pci12 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci13 at ppb12 bus 3
bnx1 at pci13 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int
16 (irq 10)
uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: apic 4 int
20 (irq 14)
uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: apic 4 int
20 (irq 14)
ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb13 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
pci14 at ppb13 bus 14
vga1 at pci14 dev 13 function 0 "ATI ES1000" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
drm at vga1 unsupported
ichpcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 6321ESB SATA" rev 0x09: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 4 int 23 (irq 11) for native-PCI interrupt
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus1 targ 0 lun 0: <TSSTcorp, CDRWDVD TS-H493B, D300> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uhub5 at uhub0 port 1 "Dell product 0xa001" rev 2.00/0.00 addr 2
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 1 configuration 1 interface 1 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1
ums0: X report 0x0002 not supported
uhub6 at uhub0 port 7 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b addr 4
uhub7 at uhub2 port 2 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2
ugen0 at uhub3 port 2 "American Power Conversion Back-UPS LS 700
FW:19.b6 .D USB FW:b6" rev 1.10/1.06 addr 2
uhidev2 at uhub7 port 1 configuration 1 interface 0 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev2: iclass 3/1
ukbd1 at uhidev2: 8 modifier keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev3 at uhub7 port 1 configuration 1 interface 1 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev3: iclass 3/0, 3 report ids
uhid0 at uhidev3 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev3 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev3 reportid 3: input=3, output=0, feature=8
uhidev4 at uhub7 port 2 configuration 1 interface 0 "Logitech USB-PS/2
Optical Mouse" rev 2.00/20.00 addr 4
uhidev4: iclass 3/1
ums1 at uhidev4: 3 buttons, Z dir
wsmouse0 at ums1 mux 0
uhidev5 at uhub7 port 3 configuration 1 interface 0 "No brand 4 Port
KVMSwicther" rev 1.10/1.00 addr 5
uhidev5: iclass 3/0
ukbd2 at uhidev5: 8 modifier keys, 6 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
uhidev6 at uhub7 port 3 configuration 1 interface 1 "No brand 4 Port
KVMSwicther" rev 1.10/1.00 addr 5
uhidev6: no input interrupt endpoint
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
bnx1: address 00:22:19:84:6f:be
brgphy0 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
bnx0: address 00:22:19:84:6f:c0
brgphy1 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6



dmesg for SERVER2

OpenBSD 4.5-current (GENERIC.MP) #46: Sun Apr 12 12:20:37 MDT 2009
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
real mem  = 3484319744 (3322MB)
avail mem = 3380256768 (3223MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/12/08, BIOS32 rev. 0 @ 0xffe90,
SMBIOS rev. 2.5 @ 0xcfb9c000 (67 entries)
bios0: vendor Dell Inc. version "2.5.0" date 09/12/2008
bios0: Dell Inc. PowerEdge 2900
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST BERT
EINJ TCPA
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 332MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu2:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz ("GenuineIntel" 686-class) 2 GHz
cpu3:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,CX16,xTPR
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 4
ioapic1 at mainbus0: apid 5 pa 0xfec80000, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 5
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 4 (PEX2)
acpiprt2 at acpi0: bus 5 (UPST)
acpiprt3 at acpi0: bus 6 (DWN1)
acpiprt4 at acpi0: bus 8 (DWN2)
acpiprt5 at acpi0: bus 9 (PE2X)
acpiprt6 at acpi0: bus 10 (PEX3)
acpiprt7 at acpi0: bus 11 (PEX4)
acpiprt8 at acpi0: bus 1 (PEX5)
acpiprt9 at acpi0: bus 0 (PE2P)
acpiprt9: no apic found for irq 128
acpiprt9: no apic found for irq 129
acpiprt9: no apic found for irq 142
acpiprt10 at acpi0: bus 12 (PEX6)
acpiprt11 at acpi0: bus 2 (SBEX)
acpiprt12 at acpi0: bus 14 (COMP)
acpicpu0 at acpi0: C3
acpicpu1 at acpi0: C3
acpicpu2 at acpi0: C3
acpicpu3 at acpi0: C3
bios0: ROM list: 0xc0000/0x9000! 0xc9000/0x1000 0xca000/0x1e00
0xcc000/0x6200 0xec000/0x4000!
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
extent `pciio' (0x0 - 0xffff), flags=0
     0xbc40 - 0xbc4f
     0xbc58 - 0xbc5b
     0xbc60 - 0xbc67
     0xbc70 - 0xbc73
     0xbc78 - 0xbcff
     0xc000 - 0xefff
extent `pcimem' (0x0 - 0xffffffff), flags=0
     0x0 - 0x9ffff
     0x100000 - 0xcfffffff
     0xd8000000 - 0xefffffff
     0xf2000000 - 0xfbffffff
     0xfc100000 - 0xfc7007ff
     0xfe000000 - 0xffffffff
pchb0 at pci0 dev 0 function 0 "Intel 5000X Host" rev 0x12
ppb0 at pci0 dev 2 function 0 "Intel 5000 PCIE" rev 0x12
pci1 at ppb0 bus 4
ppb1 at pci1 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci2 at ppb1 bus 5
ppb2 at pci2 dev 0 function 0 "Intel 6321ESB PCIE" rev 0x01
pci3 at ppb2 bus 6
ppb3 at pci3 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci4 at ppb3 bus 7
bnx0 at pci4 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int 16
(irq 10)
ppb4 at pci2 dev 1 function 0 "Intel 6321ESB PCIE" rev 0x01: apic 4 int
16 (irq 0)
pci5 at ppb4 bus 8
ppb5 at pci1 dev 0 function 3 "Intel 6321ESB PCIE-PCIX" rev 0x01
pci6 at ppb5 bus 9
ppb6 at pci0 dev 3 function 0 "Intel 5000 PCIE" rev 0x12: apic 4 int 16
(irq 0)
pci7 at ppb6 bus 10
ppb7 at pci0 dev 4 function 0 "Intel 5000 PCIE" rev 0x12: apic 4 int 16
(irq 0)
pci8 at ppb7 bus 11
em0 at pci8 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev 0x06:
apic 4 int 16 (irq 10), address 00:15:17:a5:c9:16
ppb8 at pci0 dev 5 function 0 "Intel 5000 PCIE" rev 0x12
pci9 at ppb8 bus 1
mfi0 at pci9 dev 0 function 0 "Symbios Logic SAS1078" rev 0x04: apic 4
int 16 (irq 10), Dell PERC 6/i integrated
mfi0: logical drives 2, version 6.1.1-0047, 256MB RAM
scsibus0 at mfi0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <DELL, PERC 6/i, 1.21> SCSI3 0/direct fixed
sd0: 428672MB, 512 bytes/sec, 877920256 sec total
sd1 at scsibus0 targ 1 lun 0: <DELL, PERC 6/i, 1.21> SCSI3 0/direct fixed
sd1: 1714688MB, 512 bytes/sec, 3511681024 sec total
ppb9 at pci0 dev 6 function 0 "Intel 5000 PCIE x8" rev 0x12: apic 4 int
16 (irq 0)
pci10 at ppb9 bus 12
ppb10 at pci0 dev 7 function 0 "Intel 5000 PCIE" rev 0x12
pci11 at ppb10 bus 13
pchb1 at pci0 dev 16 function 0 "Intel 5000 Error Reporting" rev 0x12
pchb2 at pci0 dev 16 function 1 "Intel 5000 Error Reporting" rev 0x12
pchb3 at pci0 dev 16 function 2 "Intel 5000 Error Reporting" rev 0x12
pchb4 at pci0 dev 17 function 0 "Intel 5000 Reserved" rev 0x12
pchb5 at pci0 dev 19 function 0 "Intel 5000 Reserved" rev 0x12
pchb6 at pci0 dev 21 function 0 "Intel 5000 FBD" rev 0x12
pchb7 at pci0 dev 22 function 0 "Intel 5000 FBD" rev 0x12
ppb11 at pci0 dev 28 function 0 "Intel 6321ESB PCIE" rev 0x09
pci12 at ppb11 bus 2
ppb12 at pci12 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xc3
pci13 at ppb12 bus 3
bnx1 at pci13 dev 0 function 0 "Broadcom BCM5708" rev 0x12: apic 4 int
16 (irq 10)
uhci0 at pci0 dev 29 function 0 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
uhci1 at pci0 dev 29 function 1 "Intel 6321ESB USB" rev 0x09: apic 4 int
20 (irq 14)
uhci2 at pci0 dev 29 function 2 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
uhci3 at pci0 dev 29 function 3 "Intel 6321ESB USB" rev 0x09: apic 4 int
20 (irq 14)
ehci0 at pci0 dev 29 function 7 "Intel 6321ESB USB" rev 0x09: apic 4 int
21 (irq 15)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb13 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xd9
pci14 at ppb13 bus 14
vga1 at pci14 dev 13 function 0 "ATI ES1000" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 4 int 19 (irq 6)
drm0 at radeondrm0
ichpcib0 at pci0 dev 31 function 0 "Intel 6321ESB LPC" rev 0x09: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 6321ESB SATA" rev 0x09: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 4 int 23 (irq 11) for native-PCI interrupt
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TSSTcorp, CDRWDVD TS-H493B, D200> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uhub5 at uhub0 port 1 "Dell product 0xa001" rev 2.00/0.00 addr 2
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 1 configuration 1 interface 1 "Dell DRAC5" rev
1.10/0.00 addr 3
uhidev1: iclass 3/1
ums0 at uhidev1
ums0: X report 0x0002 not supported
uhub6 at uhub0 port 7 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b addr 4
uhub7 at uhub3 port 1 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2
uhidev2 at uhub7 port 1 configuration 1 interface 0 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev2: iclass 3/1
ukbd1 at uhidev2: 8 modifier keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev3 at uhub7 port 1 configuration 1 interface 1 "BTC USB Multimedia
Keyboard" rev 1.10/1.00 addr 3
uhidev3: iclass 3/0, 3 report ids
uhid0 at uhidev3 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev3 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev3 reportid 3: input=3, output=0, feature=8
uhidev4 at uhub7 port 2 configuration 1 interface 0 "Logitech USB-PS/2
Optical Mouse" rev 2.00/20.00 addr 4
uhidev4: iclass 3/1
ums1 at uhidev4: 3 buttons, Z dir
wsmouse0 at ums1 mux 0
uhidev5 at uhub7 port 3 configuration 1 interface 0 "No brand 4 Port
KVMSwicther" rev 1.10/1.00 addr 5
uhidev5: iclass 3/0
ukbd2 at uhidev5: 8 modifier keys, 6 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
uhidev6 at uhub7 port 3 configuration 1 interface 1 "No brand 4 Port
KVMSwicther" rev 1.10/1.00 addr 5
uhidev6: no input interrupt endpoint
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
bnx0: address 00:22:19:a8:c4:51
brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6
bnx1: address 00:22:19:a8:c4:4f
brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 6


dmesg for server "test"

OpenBSD 4.4-stable (GENERIC.NPS.MP) #1: Wed Dec  3 15:47:29 CST 2008
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC.NPS.MP
cpu0: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz ("GenuineIntel"
686-class) 3 GH
z
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,C
X16,xTPR
real mem  = 3487850496 (3326MB)
avail mem = 3383545856 (3226MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/24/09, BIOS32 rev. 0 @ 0xfb9b0,
SMBIOS
rev. 2.4 @ 0xf0100 (38 entries)
bios0: vendor Award Software International, Inc. version "F8" date
02/24/2009
bios0: Gigabyte Technology Co., Ltd. EP45-UD3P
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP EUDS HPET MCFG APIC SSDT
acpi0: wakeup devices PEX0(S5) PEX1(S5) PEX2(S5) PEX3(S5) PEX4(S5)
PEX5(S5) HUB0
(S5) UAR1(S3) IGBE(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3)
USB5(S3) USB
E(S3) USE2(S3) AZAL(S5) PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown i686 EBL_CR_POWERON value 3 (0x420c0000)
cpu0: apic clock running at 333MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz ("GenuineIntel"
686-class) 3 GH
z
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,C
X16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (PEX0)
acpiprt2 at acpi0: bus -1 (PEX1)
acpiprt3 at acpi0: bus -1 (PEX2)
acpiprt4 at acpi0: bus 3 (PEX3)
acpiprt5 at acpi0: bus 4 (PEX4)
acpiprt6 at acpi0: bus 5 (PEX5)
acpiprt7 at acpi0: bus 6 (HUB0)
acpicpu0 at acpi0: C3, C2
acpicpu1 at acpi0: C3, C2
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xf200 0xd0000/0x1000 0xd1000/0x2000!
cpu0: EST: unknown system bus clock
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x2e20
rev 0x03
ppb0 at pci0 dev 1 function 0 vendor "Intel", unknown product 0x2e21 rev
0x03: a
pic 2 int 16 (irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 vendor "ATI", unknown product 0x954f rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
drm at vga1 unsupported
azalia0 at pci1 dev 0 function 1 vendor "ATI", unknown product 0xaa38
rev 0x00:
apic 2 int 17 (irq 14)
azalia0: /usr/src/sys/dev/pci/azalia.c/1348 invalid PCM format: 0x00000000
azalia0: No codecs found
uhci0 at pci0 dev 26 function 0 vendor "Intel", unknown product 0x3a37
rev 0x00:
 apic 2 int 16 (irq 11)
uhci1 at pci0 dev 26 function 1 vendor "Intel", unknown product 0x3a38
rev 0x00:
 apic 2 int 21 (irq 9)
uhci2 at pci0 dev 26 function 2 vendor "Intel", unknown product 0x3a39
rev 0x00:
 apic 2 int 18 (irq 3)
ehci0 at pci0 dev 26 function 7 vendor "Intel", unknown product 0x3a3c
rev 0x00:
 apic 2 int 18 (irq 3)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb1 at pci0 dev 28 function 0 vendor "Intel", unknown product 0x3a40
rev 0x00:
apic 2 int 16 (irq 11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 vendor "Intel", unknown product 0x3a46
rev 0x00:
apic 2 int 19 (irq 15)
pci3 at ppb2 bus 3
jmb0 at pci3 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x02
ahci0 at jmb0: apic 2 int 19 (irq 15), AHCI 1.0
scsibus0 at ahci0: 32 targets, initiator 32
pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired to
native-P
CI
pciide0: using apic 2 int 19 (irq 15) for native-PCI interrupt
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
ppb3 at pci0 dev 28 function 4 vendor "Intel", unknown product 0x3a48
rev 0x00:
apic 2 int 16 (irq 11)
pci4 at ppb3 bus 4
re0 at pci4 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C
(0x3c00), a
pic 2 int 16 (irq 11), address 00:1f:d0:d6:dd:b5
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
ppb4 at pci0 dev 28 function 5 vendor "Intel", unknown product 0x3a4a
rev 0x00:
apic 2 int 17 (irq 14)
pci5 at ppb4 bus 5
re1 at pci5 dev 0 function 0 "Realtek 8168" rev 0x02: RTL8168C/8111C
(0x3c00), a
pic 2 int 17 (irq 14), address 00:1f:d0:81:38:64
rgephy1 at re1 phy 7: RTL8169S/8110S PHY, rev. 2
uhci3 at pci0 dev 29 function 0 vendor "Intel", unknown product 0x3a34
rev 0x00:
 apic 2 int 23 (irq 5)
uhci4 at pci0 dev 29 function 1 vendor "Intel", unknown product 0x3a35
rev 0x00:
 apic 2 int 19 (irq 15)
uhci5 at pci0 dev 29 function 2 vendor "Intel", unknown product 0x3a36
rev 0x00:
 apic 2 int 18 (irq 3)
ehci1 at pci0 dev 29 function 7 vendor "Intel", unknown product 0x3a3a
rev 0x00:
 apic 2 int 23 (irq 5)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x90
pci6 at ppb5 bus 6
em0 at pci6 dev 0 function 0 "Intel PRO/1000GT (82541GI)" rev 0x05: apic
2 int 2
0 (irq 10), address 00:1b:21:31:51:92
pcib0 at pci0 dev 31 function 0 vendor "Intel", unknown product 0x3a16
rev 0x00
ahci1 at pci0 dev 31 function 2 vendor "Intel", unknown product 0x3a22
rev 0x00:
 apic 2 int 19 (irq 15), AHCI 1.2
scsibus1 at ahci1: 32 targets, initiator 32
sd0 at scsibus1 targ 0 lun 0: <ATA, ST3320613AS, CC2F> SCSI3 0/direct fixed
sd0: 305245MB, 38913 cyl, 255 head, 63 sec, 512 bytes/sec, 625142448 sec
total
sd1 at scsibus1 targ 1 lun 0: <ATA, ST3320613AS, CC2F> SCSI3 0/direct fixed
sd1: 305245MB, 38913 cyl, 255 head, 63 sec, 512 bytes/sec, 625142448 sec
total
vendor "Intel", unknown product 0x3a30 (class serial bus subclass SMBus,
rev 0x0
0) at pci0 dev 31 function 3 not configured
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
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
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
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x2e/2: IT8718F rev 0x05, EC port 0x290
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
mtrr: Pentium Pro MTRR support
uhub8 at uhub2 port 1 "ALCOR Generic USB Hub" rev 1.10/3.12 addr 2
uhidev0 at uhub8 port 1 configuration 1 interface 0 "BTC USB Multimedia
Keyboard
" rev 1.10/1.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub8 port 1 configuration 1 interface 1 "BTC USB Multimedia
Keyboard
" rev 1.10/1.00 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=8
uhidev2 at uhub8 port 2 configuration 1 interface 0 "Logitech USB-PS/2
Optical M
ouse" rev 2.00/20.00 addr 4
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev3 at uhub8 port 3 configuration 1 interface 0 "No brand 4 Port
KVMSwicther
" rev 1.10/1.00 addr 5
uhidev3: iclass 3/0
ukbd1 at uhidev3: 8 modifier keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev4 at uhub8 port 3 configuration 1 interface 1 "No brand 4 Port
KVMSwicther " rev 1.10/1.00 addr 5
uhidev4: no input interrupt endpoint
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
cpu1: unknown i686 EBL_CR_POWERON value 3 (0x420c0000)
wskbd1: disconnecting from wsdisplay0


--
Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
E-Mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Claudio Jeker
In reply to this post by Thomas Pfaff-5
On Thu, Apr 23, 2009 at 06:09:55PM +0200, Thomas Pfaff wrote:

> On Thu, 23 Apr 2009 15:31:58 +0200
> Tobias Ulmer <[hidden email]> wrote:
> [...]
> > > > > Try: time tar -zxf ports.tar.gz && sync
> > > >
> > > > And include the output of mount and show the place where you are untarring.
> > > >
> > >
> > > $ mount
> > > /dev/wd0a on / type ffs (local, softdep)
> > > /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> > > fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
> > >
> > > $ pwd
> > > /home/tpfaff
> > >
> > > $ time tar -zxf ports.tar.gz && sync   # (... && sync) ~same result
> > >     1m2.66s real     0m1.09s user     0m6.85s system
> > > $ time rm -rf ports
> > >     0m15.20s real     0m0.15s user     0m1.42s system
> >
> > and on linux?
>
> First on Ubuntu:
>
> Script started on Thu 23 Apr 2009 03:50:27 PM CEST
> ~$ time (tar -zxf ports.tar.gz && sync)
> real 0m47.784s
> user 0m1.576s
> sys 0m5.024s
> ~$ time (rm -rf ports && sync)
> real 0m1.883s
> user 0m0.076s
> sys 0m1.664s
> time (tar -zxf ports.tar.gz && sync)
> real 0m20.652s
> user 0m1.240s
> sys 0m2.592s
> ~$ time (rm -rf && sync)
> real 0m0.003s
> user 0m0.004s
> sys 0m0.004s
> ~$ time tar -zxf ports.tar.gz
> real 0m11.513s
> user 0m1.268s
> sys 0m2.772s
> ~$ time rm -rf ports
> real 0m1.752s
> user 0m0.100s
> sys 0m1.648s
> ~$ time tar -zxf ports.tar.gz
> real 0m14.400s
> user 0m1.352s
> sys 0m2.560s
> ~$ time rm -rf ports
> real 0m1.756s
> user 0m0.076s
> sys 0m1.684s
> ~$ mount # watch your eyes!
> /dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
> proc on /proc type proc (rw,noexec,nosuid,nodev)
> /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
> varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
> varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
> udev on /dev type tmpfs (rw,mode=0755)
> devshm on /dev/shm type tmpfs (rw)
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)
> lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
> securityfs on /sys/kernel/security type securityfs (rw)
> gvfs-fuse-daemon on /home/tpfaff/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=tpfaff)
> ~$ pwd
> /home/tpfaff
> ~$ exit
> Script done on Thu 23 Apr 2009 03:53:20 PM CEST
>
> Then the same commands on OpenBSD:
>
> Script started on Thu Apr 23 17:55:53 2009
> $ time (tar -zxf ports.tar.gz && sync)
>     1m2.62s real     0m1.15s user     0m7.15s system
> $ time (rm -rf ports && sync)
>     0m14.24s real     0m0.14s user     0m1.53s system
> $ time (tar -zxf ports.tar.gz && sync)
>     1m1.37s real     0m1.31s user     0m7.18s system
> $ time (rm -rf ports && sync)
>     0m14.72s real     0m0.12s user     0m1.82s system
> $ time tar -zxf ports.tar.gz
>     1m3.39s real     0m1.08s user     0m6.69s system
> $ time rm -rf ports
>     0m15.41s real     0m0.12s user     0m1.38s system
> $ time tar -zxf ports.tar.gz
>     1m2.62s real     0m1.19s user     0m6.80s system
> $ time rm -rf ports
>     0m15.63s real     0m0.10s user     0m1.79s system
> $ mount
> /dev/wd0a on / type ffs (local, softdep)
> /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
> $ pwd
> /home/tpfaff
> $ exit
> Script done on Thu Apr 23 18:02:13 2009
>

ext3 and ffs are very different. So the same thing may take a different
time to finish on either system because of different design decisions.
From your benchmark it seems your server's only purpose is to untar and
remove ports.tar.gz in a loop or what are you trying to show?

I'm very happy that OpenBSD ffs is a bit slower then Linux ext3.
--
:wq Claudio

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Theo de Raadt
> From your benchmark it seems your server's only purpose is to untar and
> remove ports.tar.gz in a loop or what are you trying to show?
>
> I'm very happy that OpenBSD ffs is a bit slower then Linux ext3.

He's showing that for his test case, he should be running Linux.

Enjoy.

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Ted Unangst-2
In reply to this post by Vijay Sankar
On Thu, Apr 23, 2009 at 12:35 PM, Vijay Sankar <[hidden email]> wrote:
> Because of the 103095897 bytes/sec transfer rate on the test box I
> thought that the test box would have faster writes but it seems to have
> taken 5 minutes compared to the Dell server which had a transfer rate of
> 75528478 bytes/sec.

Sequential write speed has practically nothing to do with the time it
takes to create or delete a directory structure.

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by Thomas Pfaff-5
On Thu, 23 Apr 2009 17:25:57 +0200
Jan Stary <[hidden email]> wrote:

> On Apr 23 18:09:55, Thomas Pfaff wrote:
> > First on Ubuntu:
>
> > /dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
> > ~$ time (tar -zxf ports.tar.gz && sync)
> > real 0m47.784s
> > user 0m1.576s
> > sys 0m5.024s
>
> > Then the same commands on OpenBSD:
> > /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> > $ time (tar -zxf ports.tar.gz && sync)
> >     1m2.62s real     0m1.15s user     0m7.15s system
>
> So you have ~52 seconds on ext3 mounted  'realtime' (whatever that means),
> versus ~63 seconds on ffs mounted with 'softdep'.
> What was the problem again?

That I cannot get the job done in less than a minute on OpenBSD
while on Linux it takes only 18 seconds.

> What happens with 'noatime' on the ffs partition?

Script started on Thu Apr 23 19:35:37 2009
$ mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0k on /home type ffs (local, noatime, nodev, nosuid, softdep)
fs:/pub on /pub type nfs (nodev, noexec, nosuid, v3, udp, timeo=100)
$ pwd
/home/tpfaff
$ time tar -xzf ports.tar.gz
    1m3.92s real     0m0.97s user     0m7.09s system
$ time rm -rf ports
    0m15.34s real     0m0.16s user     0m1.43s system
$ exit

Script done on Thu Apr 23 19:37:20 2009

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Toni Mueller-10
On Thu, 23.04.2009 at 19:40:34 +0200, Thomas Pfaff <[hidden email]> wrote:
> On Thu, 23 Apr 2009 17:25:57 +0200 Jan Stary <[hidden email]> wrote:
> > On Apr 23 18:09:55, Thomas Pfaff wrote:
> > > First on Ubuntu:
> > > /dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
> > > ~$ time (tar -zxf ports.tar.gz && sync)
> > > real 0m47.784s
> > > user 0m1.576s
> > > sys 0m5.024s

47.78 seconds wall clock time

> > > Then the same commands on OpenBSD:
> > > /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
> > > $ time (tar -zxf ports.tar.gz && sync)
> > >     1m2.62s real     0m1.15s user     0m7.15s system

~ 1 minute 2.5 seconds wall clock time

> > So you have ~52 seconds on ext3 mounted  'realtime' (whatever that means),
> > versus ~63 seconds on ffs mounted with 'softdep'.
> > What was the problem again?
>
> That I cannot get the job done in less than a minute on OpenBSD
> while on Linux it takes only 18 seconds.

This is a misconception, imho. Your test above shows that the
performance difference is about 15 seconds, or roughly 25%. I can't see
the 18 seconds anywhere except in your first email about your perceived
performance for the task. It is imho useful to remember that Linux
caches disk access much more aggressively than OpenBSD. So, in reality,
you don't write that much faster to disk, but to RAM, and the OS
flushes the buffers at it's own leisure, while you are working on
something else.

Which reminds me to ask what the state of having a UBC in OpenBSD is,
please?


--
Kind regards,
--Toni++

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Thomas Pfaff-5
In reply to this post by Claudio Jeker
On Thu, 23 Apr 2009 18:40:53 +0200
Claudio Jeker <[hidden email]> wrote:
> ext3 and ffs are very different. So the same thing may take a different
> time to finish on either system because of different design decisions.
> From your benchmark it seems your server's only purpose is to untar and
> remove ports.tar.gz in a loop or what are you trying to show?

It's my workstation and I'm not trying to show anything.  It was a
simple observation I made and I was curious if there was something
funny going on with my system, or if the performance difference in
this particular case is considered normal.

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Tomas Bodzar-4
Those are my numbers.It was running during my normal work :

10 x  Xterm in one of them is ogg123 playing song
1 x FF3 with 7 tabs
1 x Pidgin with 5 tabs
2 x rdesktop to Win servers
1 x ssh connection to company server
1 x vpnc
softdep is on on all partitions

I don't think that those numbers are bad,because ports.tar.gz has a
lot of small files.And I use OpenBSD for many good reasons like
stabitilty,security,quality,community and documentation.So if
sometimes it's slower then other OS's  I don't care if it isn't a bug
;-)

$ uname -a
OpenBSD hexempo.eu.tieto.com 4.5 GENERIC.MP#78 i386
$

$ dd if=/dev/arandom of=test.dat bs=1024 count=10000
10000+0 records in
10000+0 records out
10240000 bytes transferred in 0.106 secs (96246029 bytes/sec)
$

$ time tar xzf ports.tar.gz
    2m19.16s real     0m1.41s user     0m5.45s system
$


2009/4/23 Thomas Pfaff <[hidden email]>:

> On Thu, 23 Apr 2009 18:40:53 +0200
> Claudio Jeker <[hidden email]> wrote:
>> ext3 and ffs are very different. So the same thing may take a different
>> time to finish on either system because of different design decisions.
>> From your benchmark it seems your server's only purpose is to untar and
>> remove ports.tar.gz in a loop or what are you trying to show?
>
> It's my workstation and I'm not trying to show anything. B It was a
> simple observation I made and I was curious if there was something
> funny going on with my system, or if the performance difference in
> this particular case is considered normal.
>
>



--
http://www.openbsd.org/lyrics.html

Reply | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

James Peltier
In reply to this post by Thomas Pfaff-5
--- On Thu, 4/23/09, Thomas Pfaff <[hidden email]> wrote:

> From: Thomas
Pfaff <[hidden email]>
> Subject: Problem with slow disk I/O
> To:
[hidden email]
> 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
>    
[hidden email]:/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     [hidden email]
__________________________________________________________________
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 | Threaded
Open this post in threaded view
|

Re: Problem with slow disk I/O

Janne Johansson
In reply to this post by Toni Mueller-10
>>> On Apr 23 18:09:55, Thomas Pfaff wrote:
>>>> First on Ubuntu:
>>>> /dev/sda2 on / type ext3 (rw,relatime,errors=remount-ro)
>>>> ~$ time (tar -zxf ports.tar.gz && sync)
>>>> real 0m47.784s
> 47.78 seconds wall clock time
>
>>>> Then the same commands on OpenBSD:
>>>> /dev/wd0k on /home type ffs (local, nodev, nosuid, softdep)
>>>> $ time (tar -zxf ports.tar.gz && sync)
>>>>     1m2.62s real     0m1.15s user     0m7.15s system
>
> ~ 1 minute 2.5 seconds wall clock time
>
>>> So you have ~52 seconds on ext3 mounted  'realtime' (whatever that means),
>>> versus ~63 seconds on ffs mounted with 'softdep'.
>>> What was the problem again?
>> That I cannot get the job done in less than a minute on OpenBSD
>> while on Linux it takes only 18 seconds.

Also, doesn't ext2/3 run with everything mount async?

A quick test with ffs in async mode (instead of, or added to softdep)
would also be worth running, in order to see how much "grossly insecure
I/O" lessens the perceived time. I am one of those who like to keep my
files, so I wont recommend USING async, but for the sake of argument
here, such a test might be in order.

> Which reminds me to ask what the state of having a UBC in OpenBSD is,
> please?

There is nothing close to it yet, to my knowledge, but I am hosting the
2009 filesystem hackathon this autumn in hopes of getting 'better' I/O
out of OpenBSD, with the help of a nice grant to that goal. Perhaps
magic will come out of that. History (and undeadly =) will tell.

Mind you, I did run UBC on my obsd amiga back in the short while when
art@ had UBC in, which did wonders when you have lots (128M) of ram and
a PIO mode 0 harddisk to boot.

12