Thanks for the quick answer !
ad 1) disabled AHCI in BIOS as the only available option
OpenBSD now boots with hdd attached as wd0 device, UDMA mode 6 and
it did a significant improvement - unpacking finishes in about 6 minutes,
but still magnitude worse then in NetBSD.
ad 2) Not slowed down by terminal/console output. Tar command miss `-v'
argument as you may notice from my original post, so no stdout at all.
ad 3) bellow is the output from vmstat, when tested with AHCI disabled (see
par. 1)
interrupt total rate
irq0/clock 58557 750
irq0/ipi 2521 32
irq144/acpi0 16 0
irq96/ppb0 0 0
irq97/inteldrm0 8 0
irq97/ehci0 50 0
irq176/azalia0 1 0
irq98/ppb1 0 0
irq99/ppb2 0 0
irq112/re0 0 0
irq100/ppb3 0 0
irq101/ehci1 69 0
irq102/pciide0 8970 115
irq103/ichiic0 0 0
irq102/pciide1 0 0
irq145/pckbc0 263 3
irq146/pckbc0 140 1
Total 70595 905
irq0/clock interrupts count is constantly increasing during test. Is the
number too high ? Possible issue here ?
ad 4) apm was set to high, CPUs were running at max frequency 2 GHz (shown
by sysctl)
ad 5) partition mounted with rw, softdep and noatime options. I'm reluctant
to turn async option on, as it shouldn't be enabled for normal operation.
Take care.
On Thu, Nov 27, 2014 at 6:58 PM, Mike Larkin <[email protected]> wrote:
> On Thu, Nov 27, 2014 at 06:41:17PM +0100, David Unric wrote:
> > Here is a full dmesg output if you think it would help:
>
> Next steps I would try.
>
> 1. If you really wanted to verify this is a wd vs sd issue, you can usually
> change the SATA controller mode in the BIOS to IDE instead of AHCI. As long
> as you used DUIDs in fstab, the kernel should be able to find that you
> moved from sd -> wd. I don't think you're going to find much here, but
> worth
> a try, I guess.
>
> 2. Are you unpacking this at the console? in X? I've sometimes seen console
> output scrolling cause lots of delays. Try unpacking it and redirecting the
> output to /dev/null and see if that helps.
>
> 3. vmstat -zi during unpack and systat vm 1 can help you identify what's
> going on sometimes as well.
>
> 4. make sure apm is set to high performance (apmd, apm -H)
>
> 5. make sure you aren't doing something obvious like mounting the
> filesystem
> as 'sync', etc.
>
> Your machine has hardware that is pretty similar to what many of us have
> ,so I
> doubt this is some systemic problem and likely an issue either with your
> machine
> specifically or the way you are doing your test.
>
> -ml
>
> >
> > OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug 8 00:20:21 MDT 2014
> > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 6333923328 (6040MB)
> > avail mem = 6156533760 (5871MB)
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xea450 (94 entries)
> > bios0: vendor American Megatrends Inc. version "13HX.M038.20110729.SSH"
> > date 07/29/2011
> > bios0: SAMSUNG ELECTRONICS CO., LTD. RF511/RF411/RF711
> > acpi0 at bios0: rev 2
> > acpi0: sleep states S0 S3 S4 S5
> > acpi0: tables DSDT FACP APIC HPET SLIC MCFG SSDT SSDT SSDT SSDT
> > acpi0: wakeup devices USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3)
> USB6(S3)
> > USB7(S3) RP01(S3) RP04(S4) PEGA(S4) PWRB(S5)
> > 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) i7-2630QM CPU @ 2.00GHz, 1995.80 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu0: 256KB 64b/line 8-way L2 cache
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 99MHz
> > cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
> > cpu1 at mainbus0: apid 2 (application processor)
> > cpu1: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu1: 256KB 64b/line 8-way L2 cache
> > cpu1: smt 0, core 1, package 0
> > cpu2 at mainbus0: apid 4 (application processor)
> > cpu2: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu2:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu2: 256KB 64b/line 8-way L2 cache
> > cpu2: smt 0, core 2, package 0
> > cpu3 at mainbus0: apid 6 (application processor)
> > cpu3: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu3:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu3: 256KB 64b/line 8-way L2 cache
> > cpu3: smt 0, core 3, package 0
> > cpu4 at mainbus0: apid 1 (application processor)
> > cpu4: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu4:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu4: 256KB 64b/line 8-way L2 cache
> > cpu4: smt 1, core 0, package 0
> > cpu5 at mainbus0: apid 3 (application processor)
> > cpu5: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu5:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu5: 256KB 64b/line 8-way L2 cache
> > cpu5: smt 1, core 1, package 0
> > cpu6 at mainbus0: apid 5 (application processor)
> > cpu6: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu6:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu6: 256KB 64b/line 8-way L2 cache
> > cpu6: smt 1, core 2, package 0
> > cpu7 at mainbus0: apid 7 (application processor)
> > cpu7: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz, 1995.47 MHz
> > cpu7:
> >
> 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
> >
> ,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,X
> > SAVE,AVX,NXE,LONG,LAHF,PERF,ITSC
> > cpu7: 256KB 64b/line 8-way L2 cache
> > cpu7: smt 1, core 3, package 0
> > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> > acpihpet0 at acpi0: 14318179 Hz
> > acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
> > acpiprt0 at acpi0: bus 0 (PCI0)
> > acpiprt1 at acpi0: bus -1 (P0P1)
> > acpiprt2 at acpi0: bus 2 (RP01)
> > acpiprt3 at acpi0: bus -1 (RP02)
> > acpiprt4 at acpi0: bus -1 (RP03)
> > acpiprt5 at acpi0: bus 3 (RP04)
> > acpiprt6 at acpi0: bus 4 (RP05)
> > acpiprt7 at acpi0: bus -1 (RP06)
> > acpiprt8 at acpi0: bus -1 (RP07)
> > acpiprt9 at acpi0: bus -1 (RP08)
> > acpiprt10 at acpi0: bus 1 (PEG0)
> > acpiec0 at acpi0
> > acpicpu0 at acpi0: C3, C2, C1, PSS
> > acpicpu1 at acpi0: C3, C2, C1, PSS
> > acpicpu2 at acpi0: C3, C2, C1, PSS
> > acpicpu3 at acpi0: C3, C2, C1, PSS
> > acpicpu4 at acpi0: C3, C2, C1, PSS
> > acpicpu5 at acpi0: C3, C2, C1, PSS
> > acpicpu6 at acpi0: C3, C2, C1, PSS
> > acpicpu7 at acpi0: C3, C2, C1, PSS
> > acpipwrres0 at acpi0: FN00, resource for FAN0
> > acpipwrres1 at acpi0: FN01, resource for FAN1
> > acpitz0 at acpi0: critical temperature is 98 degC
> > acpitz1 at acpi0: critical temperature is 98 degC
> > acpiac0 at acpi0: AC unit online
> > acpibat0 at acpi0: BAT1 type LION oem "SAMSUNG Electronics"
> > acpibtn0 at acpi0: LID0
> > acpibtn1 at acpi0: PWRB
> > acpibtn2 at acpi0: SLPB
> > acpivideo0 at acpi0: GFX0
> > acpivout0 at acpivideo0: DD02
> > cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1900, 1800, 1700,
> > 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800 MHz
> > pci0 at mainbus0 bus 0
> > pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
> > ppb0 at pci0 dev 1 function 0 "Intel Core 2G PCIE" rev 0x09: msi
> > pci1 at ppb0 bus 1
> > vendor "NVIDIA", unknown product 0x0df4 (class display subclass 3D, rev
> > 0xa1) at pci1 dev 0 function 0 not configured
> > vga1 at pci0 dev 2 function 0 "Intel HD Graphics 3000" rev 0x09
> > intagp at vga1 not configured
> > inteldrm0 at vga1
> > drm0 at inteldrm0
> > drm: Memory usable by graphics device = 2048M
> > inteldrm0: 1366x768
> > wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
> > wsdisplay0: screen 1-5 added (std, vt100 emulation)
> > "Intel 6 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
> > ehci0 at pci0 dev 26 function 0 "Intel 6 Series USB" rev 0x04: apic 2
> int 16
> > 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 6 Series HD Audio" rev 0x04: msi
> > azalia0: codecs: Realtek ALC269, Intel/0x2805, using Realtek ALC269
> > audio0 at azalia0
> > ppb1 at pci0 dev 28 function 0 "Intel 6 Series PCIE" rev 0xb4: msi
> > pci2 at ppb1 bus 2
> > "Broadcom BCM4313" rev 0x01 at pci2 dev 0 function 0 not configured
> > ppb2 at pci0 dev 28 function 3 "Intel 6 Series PCIE" rev 0xb4: msi
> > pci3 at ppb2 bus 3
> > re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL
> > (0x2c80), msi, address e8:11:32:99:9b:25
> > rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
> > ppb3 at pci0 dev 28 function 4 "Intel 6 Series PCIE" rev 0xb4: msi
> > pci4 at ppb3 bus 4
> > "NEC xHCI" rev 0x04 at pci4 dev 0 function 0 not configured
> > ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 2
> int 23
> > usb1 at ehci1: USB revision 2.0
> > uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> > pcib0 at pci0 dev 31 function 0 "Intel HM65 LPC" rev 0x04
> > ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi, AHCI
> > 1.3
> > scsibus1 at ahci0: 32 targets
> > sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HTS54757, JE4O> SCSI3
> 0/direct
> > fixed naa.5000cca63fc2c8ee
> > sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
> > cd0 at scsibus1 targ 2 lun 0: <TSSTcorp, CDDVDW SN-208BB, SC00> ATAPI
> > 5/cdrom removable
> > ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04: apic 2
> > int 18
> > iic0 at ichiic0
> > spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
> > spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
> > 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
> > pms0 at pckbc0 (aux slot)
> > pckbc0: using irq 12 for aux slot
> > wsmouse0 at pms0 mux 0
> > pms0: Elantech Touchpad, version 3, firmware 0x450f00
> > pcppi0 at isa0 port 0x61
> > spkr0 at pcppi0
> > uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> > uvideo0 at uhub2 port 4 configuration 1 interface 0 "123 WebCam
> SCB-1100N"
> > rev 2.00/0.19 addr 3
> > video0 at uvideo0
> > uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> > ugen0 at uhub3 port 3 "Broadcom Corp Broadcom BCM2070 Bluetooth Device"
> rev
> > 2.00/6.28 addr 3
> > vscsi0 at root
> > scsibus2 at vscsi0: 256 targets
> > softraid0 at root
> > scsibus3 at softraid0: 256 targets
> > root on sd0a (60b75564032edafa.a) swap on sd0b dump on sd0b
> >
> >
> > On Thu, Nov 27, 2014 at 6:27 PM, Mike Larkin <[email protected]>
> wrote:
> >
> > > On Thu, Nov 27, 2014 at 06:04:46PM +0100, David Unric wrote:
> > > > Bellow are relevant rows of dmesg output:
> > >
> > > And here is the relevant part of a solution:
> > >
> > >
> > >
> > >
> > >
> > > What do you think? Helpful, huh?
> > >
> > > Next time please provide a complete dmesg. There is a reason he didn't
> > > ask you to parse it yourself. There are other things we look for.
> Without
> > > the full report, we can't see if you have conflicts, etc.
> > >
> > > -ml
> > >
> > > >
> > > > ---- snip
> > > >
> > >
> --------------------------------------------------------------------------
> > > > OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug 8 00:20:21 MDT 2014
> > > > [email protected]:/usr/src/sys/arch/amd64/compile/
> GENERIC.MP
> > > > mpath0 at root
> > > > scsibus0 at mpath0: 256 targets
> > > > mainbus0 at root
> > > > bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xea450 (94 entries)
> > > > bios0: vendor American Megatrends Inc. version
> "13HX.M038.20110729.SSH"
> > > > date 07/29/2011
> > > > bios0: SAMSUNG ELECTRONICS CO., LTD. RF511/RF411/RF711
> > > > ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
> > > > pci0 at mainbus0 bus 0
> > > > pchb0 at pci0 dev 0 function 0 "Intel Core 2G Host" rev 0x09
> > > > pcib0 at pci0 dev 31 function 0 "Intel HM65 LPC" rev 0x04
> > > > ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi,
> AHCI
> > > > 1.3
> > > > scsibus1 at ahci0: 32 targets
> > > > sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HTS54757, JE4O> SCSI3
> > > 0/direct
> > > > fixed naa.5000cca63fc2c8ee
> > > > sd0: 715404MB, 512 bytes/sector, 1465149168 sectors
> > > > cd0 at scsibus1 targ 2 lun 0: <TSSTcorp, CDDVDW SN-208BB, SC00> ATAPI
> > > > 5/cdrom removable
> > > > ichiic0 at pci0 dev 31 function 3 "Intel 6 Series SMBus" rev 0x04:
> apic 2
> > > > int 18
> > > > iic0 at ichiic0
> > > > spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 SO-DIMM
> > > > spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
> > > > isa0 at pcib0
> > > > isadma0 at isa0
> > > > vscsi0 at root
> > > > scsibus2 at vscsi0: 256 targets
> > > > softraid0 at root
> > > > scsibus3 at softraid0: 256 targets
> > > > root on sd0a (60b75564032edafa.a) swap on sd0b dump on sd0b
> > > > ---- snip
> > > >
> > >
> --------------------------------------------------------------------------
> > > >
> > > > Thanks.
> > > >
> > > > On Thu, Nov 27, 2014 at 5:01 PM, Brad Smith <[email protected]>
> wrote:
> > > >
> > > > > On 11/27/14 10:57, David Unric wrote:
> > > > >
> > > > >> Hello,
> > > > >>
> > > > >> I'd like to figure out what causes very low performance of disk
> > > operations
> > > > >> on my laptop.
> > > > >>
> > > > >> I've tested it by unpacking gzipped tar archive (
> > > > >> http://ftp.heanet.ie/pub/OpenBSD/5.6/src.tar.gz) about 125 MiB
> big.
> > > > >> On the same machine, not cached, various results by operating
> system:
> > > > >>
> > > > >> NetBSD 6.1.5 22 secs
> > > > >> Linux 3.14.22 8 secs
> > > > >> OpenBSD 5.6 aborted after 10 minutes as still not finished
> > > > >>
> > > > >> Unpacking was done with `tar xzf src.tar.gz', even tried on
> > > uncompressed
> > > > >> src.tar but roughly same results.
> > > > >>
> > > > >> By comparing with more similar NetBSD I've found the SATA disk is
> > > attached
> > > > >> differently:
> > > > >> - in OpenBSD detected as SCSI, `sd' driver used, no sign of
> > > Ultra-DMA
> > > > >> access
> > > > >> - in NetBSD detected as (SATA) IDE, `wd' driver used, UDMA/133
> > > > >> activated
> > > > >>
> > > > >> I've tried mount the partition with softdeps and noatime options,
> but
> > > > >> that's only a slight improvement.
> > > > >>
> > > > >> Any idea how to fix this issue (like forcing use of wd?) or I'm
> out of
> > > > >> luck
> > > > >> and my 750GB Hitachi SATA IDE is unsupported in OpenBSD and no
> generic
> > > > >> driver can be used ?
> > > > >>
> > > > >
> > > > > Reply with the output of dmesg to the list as a start.
> > > > >
> > > > > --
> > > > > This message has been scanned for viruses and
> > > > > dangerous content by MailScanner, and is
> > > > > believed to be clean.