[Hardware] hdd speed vs. USB mass storage
Alexei V. Mezin
alexei_vm на micmedia.ru
Пт Май 6 01:22:15 MSD 2005
Продолжаются загадочные явления со скоростью работы жестких дисков :(
После загрузки компа скорость чтения с дисков 40-50Мб/с. После
подключения к USB кардридера или флэш-брелка (все на USB 2, контроллер
на VIA чипе, в PCI) скорость падает в 2-3 раза (до 17-20Мб/с), машина
становится вялой и тормозной. При этом если какой-то процесс заметно
потреблял ресурсы, то его потребление (судя по графическому монитору
загрузки) вырастает раза в 1.5. Например tvtime показывает изменение с
11 до 20% нагрузки.
Вот пример падения скорости.
[root на threebears tmp]# hdparm -t /dev/hde
/dev/hde:
Timing buffered disk reads: 142 MB in 3.00 seconds = 47.26 MB/sec
[root на threebears tmp]# hdparm -t /dev/hde
/dev/hde:
Timing buffered disk reads: 84 MB in 3.04 seconds = 27.59 MB/sec
Если убрать все USB устройства, выгрузить ehci-hcd (единственный
загруженный драйвер), usb-storage и usbcore, то после выгрузки
последнего система снова разгоняется до нормальной скорости. Далее можно
обратно вернуть эти модули и наслаждаться быстрой работой до тех пор,
пока не вставишь USB устройство.
Не подскажете, как бороться? Версия ядра, список железа и т.п. в аттаче.
----------- следущая часть -----------
Linux threebears.lan 2.6.10-std26-smp-alt1 #1 SMP Tue Jan 4 20:25:07 MSK 2005 i686 unknown unknown GNU/Linux
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev c4)
Flags: bus master, medium devsel, latency 0
Memory at e0000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 2.0
Capabilities: [c0] Power Management version 2
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: e8000000-e9ffffff
Prefetchable memory behind bridge: d0000000-dfffffff
Capabilities: [80] Power Management version 2
0000:00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
0000:00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10) (prog-if 8a [Master SecP PriP])
Flags: bus master, medium devsel, latency 32
I/O ports at 9000 [size=16]
Capabilities: [c0] Power Management version 2
0000:00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
Flags: medium devsel, IRQ 7
Capabilities: [68] Power Management version 2
0000:00:0c.0 RAID bus controller: Promise Technology, Inc. PDC20265 (FastTrak100 Lite/Ultra100) (rev 02)
Subsystem: Promise Technology, Inc. Ultra100
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at 9c00
I/O ports at a000 [size=4]
I/O ports at a400 [size=8]
I/O ports at a800 [size=4]
I/O ports at ac00 [size=64]
Memory at eb000000 (32-bit, non-prefetchable) [size=128K]
Capabilities: [58] Power Management version 1
0000:00:0e.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 0a)
Subsystem: Creative Labs SBLive! 5.1 Digital Model SB0220
Flags: bus master, medium devsel, latency 32, IRQ 16
I/O ports at b000
Capabilities: [dc] Power Management version 1
0000:00:0e.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 0a)
Subsystem: Creative Labs Gameport Joystick
Flags: bus master, medium devsel, latency 32
I/O ports at b400
Capabilities: [dc] Power Management version 1
0000:00:0f.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
Flags: bus master, medium devsel, latency 32, IRQ 255
I/O ports at b800 [size=32]
Capabilities: [80] Power Management version 2
0000:00:0f.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61) (prog-if 00 [UHCI])
Subsystem: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
Flags: bus master, medium devsel, latency 32, IRQ 255
I/O ports at bc00 [size=32]
Capabilities: [80] Power Management version 2
0000:00:0f.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63) (prog-if 20 [EHCI])
Subsystem: VIA Technologies, Inc. USB 2.0
Flags: medium devsel, IRQ 19
Memory at eb020000 (32-bit, non-prefetchable)
Capabilities: [80] Power Management version 2
0000:00:10.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at c000
Memory at eb021000 (32-bit, non-prefetchable) [size=128]
Capabilities: [dc] Power Management version 1
0000:00:11.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Avermedia Technologies Inc: Unknown device 0003
Flags: bus master, medium devsel, latency 32, IRQ 19
Memory at eb022000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
0000:00:11.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Avermedia Technologies Inc: Unknown device 0003
Flags: bus master, medium devsel, latency 32, IRQ 10
Memory at eb023000 (32-bit, prefetchable)
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
0000:01:00.0 VGA compatible controller: nVidia Corporation NV36.2 [GeForce FX 5700] (rev a1) (prog-if 00 [VGA])
Subsystem: nVidia Corporation: Unknown device 01d8
Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 16
Memory at e8000000 (32-bit, non-prefetchable)
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Capabilities: [60] Power Management version 2
Capabilities: [44] AGP version 3.0
Module Size Used by
usb_storage 70848 0
ehci_hcd 34820 0
usbcore 124792 3 usb_storage,ehci_hcd
nls_koi8_r 6272 0
nls_cp866 6272 0
sg 39840 0
vfat 15488 0
fat 43296 1 vfat
sd_mod 19456 0
scsi_mod 125184 3 usb_storage,sg,sd_mod
snd_pcm_oss 55588 0
snd_via82xx 29600 0
gameport 6016 1 snd_via82xx
snd_mpu401_uart 9344 1 snd_via82xx
snd_mixer_oss 21376 3 snd_pcm_oss
snd_emu10k1 100740 2
snd_rawmidi 26272 2 snd_mpu401_uart,snd_emu10k1
snd_seq_device 9740 2 snd_emu10k1,snd_rawmidi
snd_ac97_codec 77664 2 snd_via82xx,snd_emu10k1
snd_pcm 100356 4 snd_pcm_oss,snd_via82xx,snd_emu10k1,snd_ac97_codec
snd_timer 27268 1 snd_pcm
snd_page_alloc 11140 3 snd_via82xx,snd_emu10k1,snd_pcm
snd_util_mem 5760 1 snd_emu10k1
snd_hwdep 10628 1 snd_emu10k1
snd 58084 11 snd_pcm_oss,snd_via82xx,snd_mpu401_uart,snd_mixer_oss,snd_emu10k1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer,snd_hwdep
soundcore 10848 3 snd
nvidia 3923352 12
agpgart 35500 1 nvidia
binfmt_misc 13448 1
button 9488 0
ide_cd 42628 0
cdrom 41884 1 ide_cd
via686a 20888 0
eeprom 8728 0
i2c_sensor 4736 2 via686a,eeprom
i2c_isa 3200 0
ppp_deflate 7296 0
zlib_deflate 23832 1 ppp_deflate
zlib_inflate 19200 1 ppp_deflate
bsd_comp 7168 0
ppp_async 13568 1
ppp_generic 31508 7 ppp_deflate,bsd_comp,ppp_async
slhc 8576 1 ppp_generic
irlan 33296 0
irda 144572 1 irlan
crc_ccitt 3200 2 ppp_async,irda
3c59x 40488 0
dm_mod 63104 0
pcspkr 4812 0
supermount 40848 4
psmouse 30604 0
lirc_gpio 10032 1
tuner 22692 0
tvaudio 23328 0
bttv 155472 2 lirc_gpio
video_buf 22916 1 bttv
firmware_class 11136 1 bttv
i2c_algo_bit 10632 1 bttv
v4l2_common 6912 1 bttv
btcx_risc 5896 1 bttv
i2c_core 23552 8 via686a,eeprom,i2c_sensor,i2c_isa,tuner,tvaudio,bttv,i2c_algo_bit
videodev 10624 2 bttv
lirc_dev 13448 2 lirc_gpio
rtc 13896 1
xfs 620956 7
Подробная информация о списке рассылки Hardware