Slow speed of USB flash disk on Dell E6320 with current

2011-08-15 Thread Tomas Bodzar
Hi all,

I'm getting slow speed with USB flash disk mentioned below. It's on
new laptop, but same issue was on previous Dell workstation. It's
running mostly around 6MB/s or less regarding info from systat. In
this case xfe (see top -CST -s 10 output) was used, but it's same
either in console or X. On Linux/Windows  it's running around 20MB/s
during copy/write of same files. Unplug is possible to do immediately
so probably not so much cache in use on those systems (didn't not
check deeply in fact).

Is there something what can I try/check/modify to see better speed?

Thanks a lot

$ grep cache /etc/sysctl.conf
kern.bufcachepercent=70
$


umass0 at uhub5 port 2 configuration 1 interface 0 Kingston DT 100
G2 rev 2.00/1.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus3 at umass0: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: Kingston, DT 100 G2, PMAP SCSI0
0/direct removable serial.09511653BB31070B0152
sd1: 7534MB, 512 bytes/sector, 15430464 sectors

$ usbdevs -v
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, product
0x0024(0x0024), Intel(0x8087), rev 0.00
  port 1 addr 3: high speed, self powered, config 1, product
0x2513(0x2513), Dell(0x413c), rev a0.05
   port 1 addr 4: low speed, power 98 mA, config 1, DELL USB Laser
Mouse(0xc063), DELL(0x046d), rev 57.00
   port 2 powered
   port 3 addr 5: full speed, power 100 mA, config 1, Dell Smart Card
Reader Keyboard(0x2101), Dell(0x413c), rev 1.00
  port 2 addr 6: high speed, self powered, config 1, product
0x2513(0x2513), Dell(0x413c), rev a0.05
   port 1 powered
   port 2 addr 7: full speed, power 100 mA, config 1, GN 2000 USB
OC(0x2004), JABRA(0x0b0e), rev 2.00
   port 3 powered
  port 3 powered
  port 4 powered
  port 5 addr 8: high speed, power 500 mA, config 1,
Laptop_Integrated_Webcam_HD(0x2980), 001E9073559E-B416-15151F(0x1bcf),
rev c.17
  port 6 powered
 port 2 powered
 port 3 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x),
Intel(0x8086), rev 1.00
 port 1 addr 2: high speed, self powered, config 1, product
0x0024(0x0024), Intel(0x8087), rev 0.00
  port 1 powered
  port 2 addr 4: high speed, power 200 mA, config 1, DT 100
G2(0x1653), Kingston(0x0951), rev 1.00, iSerialNumber S/N
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 addr 3: full speed, power 100 mA, unconfigured, 5880(0x5800),
Broadcom Corp(0x0a5c), rev 1.01, iSerialNumber S/N
 port 2 powered
 port 3 powered
$

$ usbstats
Controller /dev/usb0:
   216 control
 0 isochronous
 0 bulk
 67836 interrupt
Controller /dev/usb1:
   138 control
 0 isochronous
   2060244 bulk
 3 interrupt
$


$ sudo usbctl -f /dev/usb1 -a 4
DEVICE addr 4
DEVICE descriptor:
bLength=18 bDescriptorType=device(1) bcdUSB=2.00 bDeviceClass=0
bDeviceSubClass=0
bDeviceProtocol=0 bMaxPacketSize=64 idVendor=0x0951 idProduct=0x1653
bcdDevice=100
iManufacturer=1(Kingston) iProduct=2(DT 100 G2) iSerialNumber=3(S/N)
bNumConfigurations=1

CONFIGURATION descriptor 0:
bLength=9 bDescriptorType=config(2) wTotalLength=32 bNumInterface=1
bConfigurationValue=1 iConfiguration=0() bmAttributes=80 bMaxPower=200 mA

INTERFACE descriptor 0:
bLength=9 bDescriptorType=interface(4) bInterfaceNumber=0 bAlternateSetting=0
bNumEndpoints=2 bInterfaceClass=8 bInterfaceSubClass=6
bInterfaceProtocol=80 iInterface=0()

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=1-in
bmAttributes=bulk wMaxPacketSize=512 bInterval=0

ENDPOINT descriptor:
bLength=7 bDescriptorType=endpoint(5) bEndpointAddress=2-out
bmAttributes=bulk wMaxPacketSize=512 bInterval=0

current configuration 1

--
$





2 usersLoad 2.44 2.22 1.79 Mon Aug 15 13:05:10 2011

memory totals (in KB)PAGING   SWAPPING Interrupts
   real   virtual free   in  out   in  out 7677 total
Active   415856415856  2283104   ops401 clock
All  967704967704  5859920   pages 3086 ipi
acpi0
Proc:r  d  s  wCsw   Trp   Sys   Int   Sof  Flt   forks   4 em0
 114  647046  5309  4190  4123   83   fkppw  25 ehci0
  fksvm azalia0
   0.2%Int   4.6%Sys   0.4%Usr   0.0%Nic  94.8%Idle   pwait3990 ehci1
|||||||||||   relck 168 ahci0
==   rlkok   3 ichiic0
  noram pckbc0
Namei Sys-cacheProc-cacheNo-cache   5 ndcpy pckbc0
Calls hits%hits %miss   % fltcp
  188  188  100

Re: Slow speed of USB flash disk on Dell E6320 with current

2011-08-15 Thread Brett
On Mon, 15 Aug 2011 13:29:00 +0200
Tomas Bodzar tomas.bod...@gmail.com wrote:

 Hi all,
 
 I'm getting slow speed with USB flash disk mentioned below. It's on
 new laptop, but same issue was on previous Dell workstation. It's
 running mostly around 6MB/s or less regarding info from systat. In
 this case xfe (see top -CST -s 10 output) was used, but it's same
 either in console or X. On Linux/Windows  it's running around 20MB/s
 during copy/write of same files. 


I have generally noticed that reading/writing to usb flash or hard
drives is slower using openbsd compared to linux. I believe it has to
do with usb2.0 not being fully implemented. 

You will get better speeds on openbsd depending on which filesystem you
use. For example, copying speeds will be faster if you format your
flash disk to FFS instead of msdos (not sure if you did this already, I
could not see disk format in the outputs from your email).

Brett.