Solid State Disk

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

Solid State Disk

Marco Spiga-2
Hello!

My SSD 1 GB work very slow.

My  test speed:

/mnt/cdrom/tmp $ dd if=/dev/zero of=file.test count=1000
1000+0 records in
1000+0 records out
512000 bytes transferred in 0.395 secs (1295094 bytes/sec)
/mnt/cdrom/tmp $ cd /tmp/
/tmp $ dd if=/dev/zero of=file.test count=1000
1000+0 records in
1000+0 records out
512000 bytes transferred in 0.036 secs (13993659 bytes/sec)

My dmesg output:

OpenBSD 3.9-current (GENERIC) #711: Sun Apr 23 18:57:08 MDT 2006
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 267 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX
real mem  = 133787648 (130652K)
avail mem = 115331072 (112628K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(b5) BIOS, date 07/30/97, BIOS32 rev. 0 @ 0xfd7b1
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd7b0/0x850
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf50/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371SB ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xe4000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443LX AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443LX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA/SGS-Thomson Velocity128" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SAMSUNG SP0411N>
wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <ATAPI, CD-ROM 40X, T0C3> SCSI0 5/cdrom
removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: <TRANSCEND>
wd1: 1-sector PIO, LBA, 976MB, 2000880 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x01: SMI
iic0 at piixpm0
iic0: addr 0x2d 00=00 01=00 02=00 03=00 04=80 05=00 06=80 07=02 08=02 09=00
0a=00 0b=00 0c=20 0d=00 0e=00 0f=00 10=01 11=02 12=00 13=01 14=30 15=00
16=10 17=00 18=00 19=00 1a=00 1b=00 1c=00 1d=00 1e=00 1f=00 20=00 21=02
22=04 23=84 24=02 25=00 26=00 27=80 28=00 29=00 2a=01 2b=00 2c=01 2d=00
2e=00 2f=00 30=02 31=20 32=00 33=80 34=20 35=00 36=02 37=02 38=00 39=40
3a=00 3b=00 3c=00 3d=00 3e=00 3f=00 40=08 41=00 42=10 43=00 44=00 45=00
46=40 47=57 48=2d 49=c1 4a=00 4b=c1 4c=c1 4d=c1 4e=00 4f=00 50=08 51=00
52=10 53=00 54=00 55=00 56=40 57=57 58=2d 59=c1 5a=c1 5b=c1 5c=c1 5d=c1
5e=c1 5f=00 60=00 61=02 62=04 63=84 64=02 65=00 66=00 67=80 68=00 69=00
6a=01 6b=00 6c=01 6d=00 6e=00 6f=00 70=02 71=20 72=00 73=80 74=20 75=00
76=02 77=02 78=00 79=40 7a=00 7b=00 7c=00 7d=00 7e=00 7f=00 80=00 81=00
82=00 83=00 84=80 85=00 86=80 87=02 88=02 89=00 8a=00 8b=00 8c=20 8d=00
8e=00 8f=00 90=01 91=02 92=00 93=01 94=30 95=00 96=10 97=00 98=00 99=00
9a=00 9b=00 9c=00 9d=00 9e=00 9f=00 a0=00 a1=02 a2=04 a3=84 a4=02 a5=00
a6=00 a7=80 a8=00 a9=00 aa=01 ab=00 ac=01 ad=00 ae=00 af=00 b0=02 b1=20
b2=00 b3=80 b4=20 b5=00 b6=02 b7=02 b8=00 b9=40 ba=00 bb=00 bc=00 bd=00
be=00 bf=00 c0=08 c1=00 c2=10 c3=00 c4=00 c5=00 c6=40 c7=57 c8=2d c9=c1
ca=c1 cb=c1 cc=c1 cd=c1 ce=c1 cf=00 d0=08 d1=00 d2=10 d3=00 d4=00 d5=00
d6=40 d7=57 d8=2d d9=c1 da=c1 db=c1 dc=c1 dd=c1 de=c1 df=00 e0=00 e1=02
e2=04 e3=84 e4=02 e5=00 e6=00 e7=80 e8=00 e9=00 ea=01 eb=00 ec=01 ed=00
ee=00 ef=00 f0=02 f1=20 f2=00 f3=80 f4=20 f5=00 f6=02 f7=02 f8=00 f9=40
fa=00 fb=00 fc=00 fd=00 fe=00 ff=00
cmpci0 at pci0 dev 14 function 0 "C-Media Electronics CMI8738/C3DX Audio"
rev 0x10: irq 9
audio0 at cmpci0
rl0 at pci0 dev 15 function 0 "Realtek 8139" rev 0x10: irq 5, address
00:0a:cd:04:ba:ce
rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci0 dev 16 function 0 "Realtek 8139" rev 0x10: irq 11, address
00:0a:cd:04:bc:8d
rlphy1 at rl1 phy 0: RTL internal PHY
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ed45 netmask ed65 ttymask fde7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: I0MEGA Mini256MB*IOM2A1, rev 2.00/2.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: <I0MEGA, Mini256MB*IOM2A1, 4.60> SCSI0
0/direct removable
sd0: 244MB, 244 cyl, 64 head, 32 sec, 512 bytes/sec, 499712 sec total

I have tried also with  OpenBSD 4.2!!!!!

Thanks Marco

Reply | Threaded
Open this post in threaded view
|

Re: Solid State Disk

Stuart Henderson
On 2008-05-23, Marco <[hidden email]> wrote:
> My SSD 1 GB work very slow.
>
> /mnt/cdrom/tmp $ dd if=/dev/zero of=file.test count=1000

dd's default block size is not aligned with block sizes on the flash
eeprom, so you do a lot of unnecessary rewriting. Increase bs= from the
default 512 bytes and it should be faster.

Current generations of Flash storage devices are not too good at
sustained sequential access like dd will give, especially for writes.
Flash is useful in some situations but has strengths and weaknesses.

Reply | Threaded
Open this post in threaded view
|

Re: Solid State Disk

Chris Cappuccio
Stuart Henderson [[hidden email]] wrote:

> On 2008-05-23, Marco <[hidden email]> wrote:
> > My SSD 1 GB work very slow.
> >
> > /mnt/cdrom/tmp $ dd if=/dev/zero of=file.test count=1000
>
> dd's default block size is not aligned with block sizes on the flash
> eeprom, so you do a lot of unnecessary rewriting. Increase bs= from the
> default 512 bytes and it should be faster.
>
> Current generations of Flash storage devices are not too good at
> sustained sequential access like dd will give, especially for writes.
> Flash is useful in some situations but has strengths and weaknesses.

Stuart is modest.

Aside from increasing block size, which will help you, you should also be using OpenBSD 4.3 or current.

Stuart committed a change to OpenBSD for 4.3 which will greatly increase speed on 1-sector IO devices.  Your Transcend card supports UltraDMA but OpenBSD may not use it until you upgrade.