Re: Slow IO on SSD disk

2014-04-20 Thread Артур Истомин
On Sat, Apr 19, 2014 at 10:57:53PM +0200, Paco Esteban wrote:
 On Sat, 19 Apr 2014, S?l?ne wrote:
 
  Le 2014-04-18 18:59, Paco Esteban a ?crit?:
  On Fri, 18 Apr 2014, sin wrote:
  
  On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
   Hi all,
  
   I've installed 5.4. Everything is working great (sound, webcam, etc)
 but
   disk. I get ~40MB/s writing and reding to and from disk. This very same
   disk reported 250MB/s reading and 190MB/s writing on debian7.
  
  I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
  an x200 running -current.
  
  If interested, I will get to post a dmesg later when I have access to
  the machine.
  
  I used dd as well with if=/dev/zero and bs=1M.
  
  Hi,
  
  just upgraded to -current.
  After that with no ther modifications I get ~190MB/s reading and 110MB/s
  writing, which is ok for me.
  
  dmesg is attached just in case is useful.
  
  Cheers,
 
 
  Hello,
 
  Is your OpenBSD partition aligned to 4k ? This makes an huge difference.
 
 I don't know, I've to check. Just accepted the proposed partition schema
 during install, seemed ok to me.

Then it aligned automatically.



Re: Slow IO on SSD disk

2014-04-19 Thread Sélène

Le 2014-04-18 18:59, Paco Esteban a écrit :

On Fri, 18 Apr 2014, sin wrote:


On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
 Hi all,

 I've installed 5.4. Everything is working great (sound, webcam, etc) but
 disk. I get ~40MB/s writing and reding to and from disk. This very same
 disk reported 250MB/s reading and 190MB/s writing on debian7.

I get ~220MB/s reading and ~170MB/s writing using the same exact disk 
on

an x200 running -current.

If interested, I will get to post a dmesg later when I have access to
the machine.

I used dd as well with if=/dev/zero and bs=1M.


Hi,

just upgraded to -current.
After that with no ther modifications I get ~190MB/s reading and 
110MB/s

writing, which is ok for me.

dmesg is attached just in case is useful.

Cheers,



Hello,

Is your OpenBSD partition aligned to 4k ? This makes an huge difference.


Regards
Sélène



Re: Slow IO on SSD disk

2014-04-19 Thread Paco Esteban
On Sat, 19 Apr 2014, Sélène wrote:

 Le 2014-04-18 18:59, Paco Esteban a écrit :
 On Fri, 18 Apr 2014, sin wrote:
 
 On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
  Hi all,
 
  I've installed 5.4. Everything is working great (sound, webcam, etc)
but
  disk. I get ~40MB/s writing and reding to and from disk. This very same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
 an x200 running -current.
 
 If interested, I will get to post a dmesg later when I have access to
 the machine.
 
 I used dd as well with if=/dev/zero and bs=1M.
 
 Hi,
 
 just upgraded to -current.
 After that with no ther modifications I get ~190MB/s reading and 110MB/s
 writing, which is ok for me.
 
 dmesg is attached just in case is useful.
 
 Cheers,


 Hello,

 Is your OpenBSD partition aligned to 4k ? This makes an huge difference.

I don't know, I've to check. Just accepted the proposed partition schema
during install, seemed ok to me.

Cheers,

--
Paco Esteban.
GnuPG key: 0x0E1192A4

[demime 1.01d removed an attachment of type application/pgp-signature]



Slow IO on SSD disk

2014-04-18 Thread Paco Esteban

Hi all,

I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
It used to have Debian 7 on it (everything working just fine), and now I
want to use it as my personal laptop with OpenBSD.

I've installed 5.4. Everything is working great (sound, webcam, etc) but
disk. I get ~40MB/s writing and reding to and from disk. This very same
disk reported 250MB/s reading and 190MB/s writing on debian7.

I somehow expected some decrease on those numbers (which I don't care),
but the performance that it's giving is more like an IDE disk ...

I've tried with softdep and noatime with no success.
Any ideas ?

Thank you.

dmesg:


OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4204466176 (4009MB)
avail mem = 4084817920 (3895MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version 7UET82WW (3.12 ) date 01/13/2010
bios0: LENOVO 2768HH4
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT 
TCPA SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) 
EHC0(S3) EHC1(S3) HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.41 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF

cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.00 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF

cpu1: 6MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4644 serial 10144 type LION oem 
SANYO

acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2534, 2533, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Mobility Radeon HD 3400 rev 0x00
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 Intel GM45 KT rev 0x07: ports: 1 com
com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 15 bytes
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: msi, 
address 00:27:13:66:67:cd
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 
20
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 
21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 
22
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 
23

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 82801I HD Audio rev 0x03: msi
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant 
CX20561

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5300 rev 0x00: msi, MIMO 
3T3R, MoW, address 00:21:6a:8e:ec:b0

ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: msi
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x03: apic 1 int 
16
uhci4 at pci0 dev 29 function 1 

Re: Slow IO on SSD disk

2014-04-18 Thread Alexander Hall
On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be wrote:
Hi all,

I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
It used to have Debian 7 on it (everything working just fine), and now
I
want to use it as my personal laptop with OpenBSD.

I've installed 5.4. Everything is working great (sound, webcam, etc)
but
disk. I get ~40MB/s writing and reding to and from disk. This very same
disk reported 250MB/s reading and 190MB/s writing on debian7.

How did you measure this on openbsd? Copying files? dd? 

/Alexander


I somehow expected some decrease on those numbers (which I don't care),
but the performance that it's giving is more like an IDE disk ...

I've tried with softdep and noatime with no success.
Any ideas ?

Thank you.

dmesg:


OpenBSD 5.4 (GENERIC.MP) #41: Tue Jul 30 15:30:02 MDT 2013
   dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4204466176 (4009MB)
avail mem = 4084817920 (3895MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version 7UET82WW (3.12 ) date 01/13/2010
bios0: LENOVO 2768HH4
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT 
TCPA SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3)

EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.41 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.00 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
cpu1: 6MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4644 serial 10144 type LION oem 
SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2534, 2533, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: msi
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Mobility Radeon HD 3400 rev 0x00
radeondrm0 at vga1: apic 1 int 16
drm0 at radeondrm0
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 Intel GM45 KT rev 0x07: ports: 1 com
com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 15 bytes
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: msi, 
address 00:27:13:66:67:cd
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int

20
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int

21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int

22
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int

23
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 82801I HD Audio rev 0x03: msi
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant 
CX20561
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5300 rev 0x00: msi,
MIMO 
3T3R, MoW, address 00:21:6a:8e:ec:b0
ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x03: 

Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be wrote:
 Hi all,
 
 I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
 It used to have Debian 7 on it (everything working just fine), and now
 I
 want to use it as my personal laptop with OpenBSD.
 
 I've installed 5.4. Everything is working great (sound, webcam, etc)
 but
 disk. I get ~40MB/s writing and reding to and from disk. This very same
 disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 How did you measure this on openbsd? Copying files? dd? 
 
 /Alexander

dd in both OS's. Block size 1MB, count 5k from /dev/zero
RAM is 4GB on this machine.

Cheers,

-- 
Paco Esteban.
GnuPG key: 0x0E1192A4



Re: Slow IO on SSD disk

2014-04-18 Thread Alexander Hall
On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be wrote:
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
wrote:
 Hi all,
 
 I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
 It used to have Debian 7 on it (everything working just fine), and
now
 I
 want to use it as my personal laptop with OpenBSD.
 
 I've installed 5.4. Everything is working great (sound, webcam, etc)
 but
 disk. I get ~40MB/s writing and reding to and from disk. This very
same
 disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 How did you measure this on openbsd? Copying files? dd? 
 
 /Alexander

dd in both OS's. Block size 1MB, count 5k from /dev/zero
RAM is 4GB on this machine.

Do you use the raw device, e.g. /dev/rsd1c ?

/Alexander


Cheers,



Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
  
  
  On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
 wrote:
  Hi all,
  
  I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
  It used to have Debian 7 on it (everything working just fine), and
 now
  I
  want to use it as my personal laptop with OpenBSD.
  
  I've installed 5.4. Everything is working great (sound, webcam, etc)
  but
  disk. I get ~40MB/s writing and reding to and from disk. This very
 same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
  
  How did you measure this on openbsd? Copying files? dd? 
  
  /Alexander
 
 dd in both OS's. Block size 1MB, count 5k from /dev/zero
 RAM is 4GB on this machine.
 
 Do you use the raw device, e.g. /dev/rsd1c ?
 
 /Alexander

No, I used something like this:

dd if=/dev/zero of=foo.bin bs=1048576 count=5000

Cheers,

-- 
Paco Esteban.
GnuPG key: 0x0E1192A4



Re: Slow IO on SSD disk

2014-04-18 Thread Alexander Hall
On April 18, 2014 2:45:33 PM CEST, Paco Esteban p...@onna.be wrote:
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
  
  
  On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
 wrote:
  Hi all,
  
  I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
  It used to have Debian 7 on it (everything working just fine),
and
 now
  I
  want to use it as my personal laptop with OpenBSD.
  
  I've installed 5.4. Everything is working great (sound, webcam,
etc)
  but
  disk. I get ~40MB/s writing and reding to and from disk. This
very
 same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
  
  How did you measure this on openbsd? Copying files? dd? 
  
  /Alexander
 
 dd in both OS's. Block size 1MB, count 5k from /dev/zero
 RAM is 4GB on this machine.
 
 Do you use the raw device, e.g. /dev/rsd1c ?
 
 /Alexander

No, I used something like this:

dd if=/dev/zero of=foo.bin bs=1048576 count=5000

To measure raw disk performance, dd to/from a raw partition (need not be 'c') 
is your friend.

Others maybe can explain filesystem overhead.



Re: Slow IO on SSD disk

2014-04-18 Thread sin
On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
 Hi all,
 
 I've installed 5.4. Everything is working great (sound, webcam, etc) but
 disk. I get ~40MB/s writing and reding to and from disk. This very same
 disk reported 250MB/s reading and 190MB/s writing on debian7.

I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
an x200 running -current.

If interested, I will get to post a dmesg later when I have access to
the machine.

I used dd as well with if=/dev/zero and bs=1M.



Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 2:45:33 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
  
  
  On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be wrote:
  On Fri, 18 Apr 2014, Alexander Hall wrote:
  
   
   
   On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
  wrote:
   Hi all,
   
   I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
   It used to have Debian 7 on it (everything working just fine),
 and
  now
   I
   want to use it as my personal laptop with OpenBSD.
   
   I've installed 5.4. Everything is working great (sound, webcam,
 etc)
   but
   disk. I get ~40MB/s writing and reding to and from disk. This
 very
  same
   disk reported 250MB/s reading and 190MB/s writing on debian7.
   
   How did you measure this on openbsd? Copying files? dd? 
   
   /Alexander
  
  dd in both OS's. Block size 1MB, count 5k from /dev/zero
  RAM is 4GB on this machine.
  
  Do you use the raw device, e.g. /dev/rsd1c ?
  
  /Alexander
 
 No, I used something like this:
 
 dd if=/dev/zero of=foo.bin bs=1048576 count=5000
 
 To measure raw disk performance, dd to/from a raw partition (need not be 'c') 
 is your friend.
 
 Others maybe can explain filesystem overhead.

Will I break things if I dd to raw device /dev/rsd0d (/dev/sd0d is
mounted on /tmp in my case) ?

Cheers,

-- 
Paco Esteban.
GnuPG key: 0x0E1192A4



Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, sin wrote:

 On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
  Hi all,
  
  I've installed 5.4. Everything is working great (sound, webcam, etc) but
  disk. I get ~40MB/s writing and reding to and from disk. This very same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
 an x200 running -current.
 
 If interested, I will get to post a dmesg later when I have access to
 the machine.
 
 I used dd as well with if=/dev/zero and bs=1M.

That's what I was expecting.
I've considered upgrading to -current but wanted to know if this can
work well on -release first.

Cheers,

-- 
Paco Esteban.
GnuPG key: 0x0E1192A4



Re: Slow IO on SSD disk

2014-04-18 Thread Abel Abraham Camarillo Ojeda
On Fri, Apr 18, 2014 at 7:55 AM, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:



 On April 18, 2014 2:45:33 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
 
 
  On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be wrote:
  On Fri, 18 Apr 2014, Alexander Hall wrote:
  
  
  
   On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
  wrote:
   Hi all,
   
   I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
   It used to have Debian 7 on it (everything working just fine),
 and
  now
   I
   want to use it as my personal laptop with OpenBSD.
   
   I've installed 5.4. Everything is working great (sound, webcam,
 etc)
   but
   disk. I get ~40MB/s writing and reding to and from disk. This
 very
  same
   disk reported 250MB/s reading and 190MB/s writing on debian7.
  
   How did you measure this on openbsd? Copying files? dd?
  
   /Alexander
  
  dd in both OS's. Block size 1MB, count 5k from /dev/zero
  RAM is 4GB on this machine.
 
  Do you use the raw device, e.g. /dev/rsd1c ?
 
  /Alexander
 
 No, I used something like this:
 
 dd if=/dev/zero of=foo.bin bs=1048576 count=5000

 To measure raw disk performance, dd to/from a raw partition (need not be 
 'c') is your friend.

 Others maybe can explain filesystem overhead.

 Will I break things if I dd to raw device /dev/rsd0d (/dev/sd0d is
 mounted on /tmp in my case) ?

 Cheers,

 --
 Paco Esteban.
 GnuPG key: 0x0E1192A4


you need to unmount it first:

# unmount /dev/sd0d;
# dd if=/dev/zero of=/dev/rsd0d bs=1M count=5000



Re: Slow IO on SSD disk

2014-04-18 Thread Alexander Hall
On April 18, 2014 2:55:33 PM CEST, Paco Esteban p...@onna.be wrote:
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 2:45:33 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
  
  
  On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be
wrote:
  On Fri, 18 Apr 2014, Alexander Hall wrote:
  
   
   
   On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
  wrote:
   Hi all,
   
   I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
   It used to have Debian 7 on it (everything working just fine),
 and
  now
   I
   want to use it as my personal laptop with OpenBSD.
   
   I've installed 5.4. Everything is working great (sound,
webcam,
 etc)
   but
   disk. I get ~40MB/s writing and reding to and from disk. This
 very
  same
   disk reported 250MB/s reading and 190MB/s writing on debian7.
   
   How did you measure this on openbsd? Copying files? dd? 
   
   /Alexander
  
  dd in both OS's. Block size 1MB, count 5k from /dev/zero
  RAM is 4GB on this machine.
  
  Do you use the raw device, e.g. /dev/rsd1c ?
  
  /Alexander
 
 No, I used something like this:
 
 dd if=/dev/zero of=foo.bin bs=1048576 count=5000
 
 To measure raw disk performance, dd to/from a raw partition (need not
be 'c') is your friend.
 
 Others maybe can explain filesystem overhead.

Will I break things if I dd to raw device /dev/rsd0d (/dev/sd0d is
mounted on /tmp in my case) ?

Most certainly, yes. Reading *from* said device is not a problem though. Just 
don't get it the wrong way... :-)


Cheers,



Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, Alexander Hall wrote:

 
 
 On April 18, 2014 2:55:33 PM CEST, Paco Esteban p...@onna.be wrote:
 On Fri, 18 Apr 2014, Alexander Hall wrote:
 
  
  
  On April 18, 2014 2:45:33 PM CEST, Paco Esteban p...@onna.be wrote:
  On Fri, 18 Apr 2014, Alexander Hall wrote:
  
   
   
   On April 18, 2014 2:38:08 PM CEST, Paco Esteban p...@onna.be
 wrote:
   On Fri, 18 Apr 2014, Alexander Hall wrote:
   


On April 18, 2014 12:39:16 PM CEST, Paco Esteban p...@onna.be
   wrote:
Hi all,

I've a Lenovo T400 laptop with a SanDisk 64GB SSD disk.
It used to have Debian 7 on it (everything working just fine),
  and
   now
I
want to use it as my personal laptop with OpenBSD.

I've installed 5.4. Everything is working great (sound,
 webcam,
  etc)
but
disk. I get ~40MB/s writing and reding to and from disk. This
  very
   same
disk reported 250MB/s reading and 190MB/s writing on debian7.

How did you measure this on openbsd? Copying files? dd? 

/Alexander
   
   dd in both OS's. Block size 1MB, count 5k from /dev/zero
   RAM is 4GB on this machine.
   
   Do you use the raw device, e.g. /dev/rsd1c ?
   
   /Alexander
  
  No, I used something like this:
  
  dd if=/dev/zero of=foo.bin bs=1048576 count=5000
  
  To measure raw disk performance, dd to/from a raw partition (need not
 be 'c') is your friend.
  
  Others maybe can explain filesystem overhead.
 
 Will I break things if I dd to raw device /dev/rsd0d (/dev/sd0d is
 mounted on /tmp in my case) ?
 
 Most certainly, yes. Reading *from* said device is not a problem though. Just 
 don't get it the wrong way... :-)

It gives 188MB/s from a raw device to /dev/null :-/

Cheers,

-- 
Paco Esteban.
GnuPG key: 0x0E1192A4



Re: Slow IO on SSD disk

2014-04-18 Thread Paco Esteban
On Fri, 18 Apr 2014, sin wrote:

 On Fri, Apr 18, 2014 at 12:39:16PM +0200, Paco Esteban wrote:
  Hi all,
  
  I've installed 5.4. Everything is working great (sound, webcam, etc) but
  disk. I get ~40MB/s writing and reding to and from disk. This very same
  disk reported 250MB/s reading and 190MB/s writing on debian7.
 
 I get ~220MB/s reading and ~170MB/s writing using the same exact disk on
 an x200 running -current.
 
 If interested, I will get to post a dmesg later when I have access to
 the machine.
 
 I used dd as well with if=/dev/zero and bs=1M.

Hi,

just upgraded to -current.
After that with no ther modifications I get ~190MB/s reading and 110MB/s
writing, which is ok for me.

dmesg is attached just in case is useful.

Cheers,


OpenBSD 5.5-current (GENERIC.MP) #72: Tue Apr 15 10:51:03 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4204466176 (4009MB)
avail mem = 4083781632 (3894MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version 7UET82WW (3.12 ) date 01/13/2010
bios0: LENOVO 2768HH4
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT TCPA SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB3(S3) USB5(S3) EHC0(S3) 
EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.34 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges
cpu0: apic clock running at 265MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU P9500 @ 2.53GHz, 2527.00 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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF
cpu1: 6MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xe000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB3, USB5, EHC0, EHC1
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T4644 serial 10144 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK docked (15)
cpu0: Enhanced SpeedStep 2527 MHz: speeds: 2534, 2533, 1600, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM45 Host rev 0x07
ppb0 at pci0 dev 1 function 0 Intel GM45 PCIE rev 0x07: msi
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 ATI Mobility Radeon HD 3400 rev 0x00
drm0 at radeondrm0
radeondrm0: msi
Intel GM45 HECI rev 0x07 at pci0 dev 3 function 0 not configured
puc0 at pci0 dev 3 function 3 Intel GM45 KT rev 0x07: ports: 1 com
com4 at puc0 port 0 apic 1 int 17: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 Intel ICH9 IGP M AMT rev 0x03: msi, address 
00:27:13:66:67:cd
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x03: apic 1 int 21
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x03: apic 1 int 22
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x03: apic 1 int 23
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 82801I HD Audio rev 0x03: msi
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant CX20561
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x03: msi
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 Intel 82801I PCIE rev 0x03: msi
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 Intel WiFi Link 5300 rev 0x00: msi, MIMO 3T3R, 
MoW, address 00:21:6a:8e:ec:b0
ppb3 at pci0 dev 28 function 3 Intel 82801I PCIE rev 0x03: msi
pci4 at