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
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 Powered
usb-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: pio0
mount
/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)[/quote]
wynik cat /sys/block/sdb/queue/schedulerKod:
noop anticipatory deadline [cfq]dysk usb jest to Hitachi SATA 2,5'' HTS543216l9A300 160GB w obudowie GEMBIRD [url]http://allegro.pl/kieszen-hdd-zewnetrzna-sata-gembird-2-5-usb-i1517128681.html[/url]
odczyt z pendrive'a nie spada poniżej 28 MB/ s, karty pamięci nie testowałem
Offline
Time (s) | Query |
---|---|
0.00016 | SET CHARSET latin2 |
0.00006 | SET NAMES latin2 |
0.00163 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.93.227' WHERE u.id=1 |
0.00071 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.93.227', 1732771979) |
0.00053 | SELECT * FROM punbb_online WHERE logged<1732771679 |
0.00065 | DELETE FROM punbb_online WHERE ident='18.118.193.28' |
0.00059 | DELETE FROM punbb_online WHERE ident='18.188.154.238' |
0.00073 | SELECT topic_id FROM punbb_posts WHERE id=169455 |
0.00167 | SELECT id FROM punbb_posts WHERE topic_id=18650 ORDER BY posted |
0.00106 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=18650 AND t.moved_to IS NULL |
0.00008 | SELECT search_for, replace_with FROM punbb_censoring |
0.00084 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=18650 ORDER BY p.id LIMIT 0,25 |
0.00136 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=18650 |
Total query time: 0.01007 s |