Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Mam dość dziwny problem z zewnętrznym dyskiem USB a mianowicie prędkość odczytu z dysku oscyluje koło 5-6 MB/ s co jest prędkością bardzo niezadowalającą, prędkości zapisu na dysk są osiągane na poziomie 26-28 MB/ s. Co może być powodem tak niskich prędkości dla odczytu skoro zapis jest w porządku? Nie jest to związane z wadą dysku ponieważ taka sytuacja występowała także na innych podłączanych przeze mnie dyskach, a na Windowsie prędkości odczytu tych dysków wynoszą ok 28 MB/ s.
/posiadam Debiana testowego amd64
Offline


Członek DUG
Porównaj swoje lsusb -v z moim: (konkretnie wpis dysku)
Bus 001 Device 003: ID 03f0:4507 Hewlett-Packard
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x03f0 Hewlett-Packard
idProduct 0x4507
bcdDevice 20.02
iManufacturer 1 HP
iProduct 2 External HDD
iSerial 3 575833314138303535323338
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)I jeszcze usb-devices
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=03f0 ProdID=4507 Rev=20.02 S: Manufacturer=HP S: Product=External HDD S: SerialNumber=575833314138303535323338 C: #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
Spd=480 <-- speed 480 Mbps
A jak pendrive'y/karty pamięci? Tak samo?
PS. Co prawda nic tu za bardzo nie widać, ale " bcdUSB 2.00" znaczy USB 2.0 :)
Potestuj też różnych zarządców:
cat /sys/block/sd[abcd]/queue/scheduler
(w nawiasie domyślni)
I prostu test:
hdparm -t -T /dev/sd[abcd]
W mnie
/dev/sda: Timing cached reads: 880 MB in 2.00 seconds = 439.84 MB/sec Timing buffered disk reads: 316 MB in 3.01 seconds = 105.04 MB/sec /dev/sdb: Timing cached reads: 898 MB in 2.01 seconds = 447.12 MB/sec Timing buffered disk reads: 98 MB in 3.06 seconds = 32.06 MB/sec /dev/sdc: read() hit EOF - device too small Timing buffered disk reads: read() hit EOF - device too small
sda - dysk SDD
sdb - HDD na USB
sdc - hmm... pewnie czytnik kart :)
I jeszcze "mount" gdybyś mógł pokazać, może jakąś dziwną flagę montowania ustawioną masz.
I ostatecznie jeszcze hdparm -I /dev/sdb2 czy jak to tam u Ciebie partycja z tego dysku jest. Ktoś może coś z stamtąd odczyta.
Offline
Wynik polecenia lsusb -v
Bus 003 Device 003: ID 152d:2329 JMicron Technology Corp. / JMicron USA Technology Corp. JM20329 SATA Bridge
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
idProduct 0x2329 JM20329 SATA Bridge
bcdDevice 1.00
iManufacturer 1 JMicron
iProduct 2 USB to ATA/ATAPI bridge
iSerial 5 090925FB2200
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 USB Mass Storage
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 6 MSC Bulk-Only Transfer
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Poweredusb-devices
T: Bus=03 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=152d ProdID=2329 Rev=01.00 S: Manufacturer=JMicron S: Product=USB to ATA/ATAPI bridge S: SerialNumber=090925FB2200 C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
hdparm -t -T /dev/sdb (sda - dysk w laptopie; sdb - dysk usb)
/dev/sda: Timing cached reads: 2092 MB in 2.00 seconds = 1046.77 MB/sec Timing buffered disk reads: 194 MB in 3.02 seconds = 64.29 MB/sec /dev/sdb: Timing cached reads: 1726 MB in 2.00 seconds = 862.88 MB/sec Timing buffered disk reads: 16 MB in 3.10 seconds = 5.15 MB/sec
hdparm -I /dev/sdb
/dev/sdb:
ATA device, with non-removable media
Standards:
Likely used: 1
Configuration:
Logical max current
cylinders 0 0
heads 0 0
sectors/track 0 0
--
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 0 MBytes
device size with M = 1000*1000: 0 MBytes
cache/buffer size = unknown
Capabilities:
IORDY not likely
Cannot perform double-word IO
R/W multiple sector transfer: not supported
DMA: not supported
PIO: pio0mount
/dev/sda4 on / type ext4 (rw,errors=remount-ro,commit=0) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda2 on /home type ext4 (rw,commit=0) /dev/sda3 on /media/DANE type fuseblk (rw,allow_other,blksize=4096) /dev/sda1 on /media/VISTA type fuseblk (rw,allow_other,blksize=4096) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sdb2 on /media/sdb2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions) /dev/sdb1 on /media/disk type ext4 (rw,nosuid,nodev,uhelper=hal) /dev/sdb3 on /media/sdb3 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
niebardzo wiem co z tym zrobić
Potestuj też różnych zarządców:
cat /sys/block/sd[abcd]/queue/scheduler
(w nawiasie domyślni)
wynik cat /sys/block/sdb/queue/scheduler
noop anticipatory deadline [cfq]
dysk usb jest to Hitachi SATA 2,5'' HTS543216l9A300 160GB w obudowie GEMBIRD http://allegro.pl/kieszen-hdd-zewnetrzna-sata-gembi … 17128681.html
odczyt z pendrive'a nie spada poniżej 28 MB/ s, karty pamięci nie testowałem
Offline