pomala cache na hdd
mam Ubuntu 7.10, ale som trosku nestastny z vykonu harddisku
Ked napisem sudo hdparm -tT /dev/hda dostanem:
/dev/hda:
Timing cached reads: 354 MB in 2.00 seconds = 176.63 MB/sec
Timing buffered disk reads: 54 MB in 3.09 seconds = 17.45 MB/sec
Problem je v cache - 176 MB je pomale - hlavne ak ostatni maju hodnoty okolo 1000.
Jasne neocakavam zazraky, ale taka hodnota okolo 500 je realna
sudo hdparm -i /dev/hda
/dev/hda:
Model=ST310211A, FwRev=3.39, SerialNo=7DB1VAXW
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=1024kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=19541088
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 *udma2 udma3 udma4 udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5
sudo hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 3 (32-bit w/sync)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 19386/16/63, sectors = 19541088, start = 0
lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 03)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:07.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 16)
00:07.4 Host bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. VT82C686 AC97 Audio Controller (rev 50)
00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE]
DMA sa neda zvysit - pretoze mam 40 zilovy kabel ATA33. Pouzity je z toho dvovodu, ze ked som mal 80 zilovy, tak udma ani nexcelo nabehnut....to hdd cital rychlostou 2MB/s namiesto 17. Skusal som to aj forcnut ale nejde to.
Hladal som snad vsade...skusal som aj tu:
http://ubuntuforums.org/showthread.php?t=19519
ale bezvyznamne.
Ma niekto nejake napady??? Matus
Pre pridávanie komentárov sa musíte prihlásiť.
Bios sa neda cirou nahodou flesnut a ani dat novsie jadro? Ten link ukazuje na diskusiu z marca 2005 co je uz viac ako tri roky v minulosti.
Pridam vypis z dmesg:
[ 29.327682] VP_IDE: not 100% native mode: will probe irqs later
[ 29.327703] VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
[ 29.327720] ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio
[ 29.327743] ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:pio, hdd:DMA
[ 29.327761] Probing IDE interface ide0...
[ 29.368178] usbcore: registered new interface driver usbfs
[ 29.368261] usbcore: registered new interface driver hub
[ 29.368323] usbcore: registered new device driver usb
[ 29.370836] USB Universal Host Controller Interface driver v3.0
[ 29.496481] 8139too Fast Ethernet driver 0.9.28
[ 29.754791] hda: ST310211A, ATA DISK drive
[ 29.897570] Floppy drive(s): fd0 is 1.44M
[ 29.923316] FDC 0 is a post-1991 82077
[ 7.576000] Marking TSC unstable due to: possible TSC halt in C2.
[ 7.584000] Time: acpi_pm clocksource has been installed.
[ 8.004000] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[ 8.004000] Probing IDE interface ide1...
[ 9.144000] hdd: CD-56E, ATAPI CD/DVD-ROM drive
[ 9.200000] ide1 at 0x170-0x177,0x376 on irq 15
[ 9.200000] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 9.200000] PCI: setting IRQ 11 as level-triggered
[ 9.200000] ACPI: PCI Interrupt 0000:00:07.2[D] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
[ 9.200000] uhci_hcd 0000:00:07.2: UHCI Host Controller
[ 9.200000] uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
[ 9.204000] uhci_hcd 0000:00:07.2: irq 11, io base 0x0000d400
[ 9.204000] usb usb1: configuration #1 chosen from 1 choice
[ 9.204000] hub 1-0:1.0: USB hub found
[ 9.204000] hub 1-0:1.0: 2 ports detected
[ 9.248000] hda: max request size: 128KiB
[ 9.256000] hda: 19541088 sectors (10005 MB) w/1024KiB Cache, CHS=19386/16/63, UDMA(33)
[ 9.256000] hda: cache flushes not supported
PS.: Dik za dmesg ale nemohol by si sem dat tu cast s tym 80 zilovym kablom ked to cele prdne? Ta je zaujimavejsia.
s tym dmesg - este uvidim, nexce sa mi stale rozoberat bedne, menit kable a vsetko nastavovat :(
tu je par cisel
http://gentoo-wiki.com/HOWTO_Use_hdparm_to_improve_IDE_device_performance
a tento ma optimalizovany disk
http://ubuntuforums.org/showthread.php?t=19519&page=3
My benchmark result for "sudo hdparm -Tt /dev/sda"
/dev/sda:
Timing cached reads: 4276 MB in 2.00 seconds = 2137.26 MB/sec
Timing buffered disk reads: 198 MB in 3.02 seconds = 65.59 MB/sec
Ano, a v tedy si sa mohol pozriet do toho vypisu a pochopil by si preco ti jadro chrani data znizenim rychlosti. Proste, mas smolu a uz sa jej asi nezbavis. Jedine ze by sa ti podarilo najst novsi bios a skusat do nemoty ktore jadro si s tym najviac porozumie. Ak to chces obist, tak si niekde vyskusaj starsiu PCI IDE kartu (obvykle zvladali raid0,1 a jbod), daj na nu ten disk a system si zavadzaj z niecoho ineho. Ten vmlinuz a initrd sa zmestia aj na mini cdrw.
PS.: 300 minimalne? Par prispevkov vyssie si spominal 300-500, skus chvilku pokracovat a dostanes sa na tych stabilnych 150-180 kolko daval ten disk aj v xboxe prvej generacie.
man hdparm
-t perform device read timings
-T perform cache read timings
-t prepinac meria rychlost komunikacie medzi HDD diskom a pocitacom a defakto
ide o rychlost citania IDE/SATA radica. Samozrejme ma v tom svoju podstatnu ulohu aj HDD disk
-T prepinac meria rychlost citania z diskovej cache pameti ale nie tej malej co je na disku(2,8,16MB) ale tej diskovej cache co mas v RAM pameti. Akoze ked uvadzas ze na novych diskoch to ide ja 1800MB/sec no neviem si predstavit ako to prenesies cez kablik (ATA133,SATA2) kde je povedzme tomu max tych 300MB/sec
Ako z vlastnej skusenosti:
dva rozne disky na rovnakom PC maju rovnake -T rychlosti ale rozne -t rychlosti a zas na druhom PC maju opat rovnake -T rychlosti ale rozne -t rychlosti.
Ale -T rychlosti sa lisia podla PC.Ten co ma rychlesie pamete napr SDRAM vs. DDR2 ma aj vacsiu -T rychlost a teda ide defakto a benchmark RAM pamete...
This displays the speed of reading directly from the
Linux buffer cache without disk access. This measurement is
essentially an indication of the throughput of the processor,
cache, and memory of the system under test.
no asi mas pravdu....na druhej strane nech sa to vola ako chce ako sa to da zrychlit??
Inac by som vazne rad vedel, preco to hdparm zresetoval na zakladnu uroven, ked sa ma starat o disk a nie o prenosy medzi pamatou a procesorom :(