Marc SCHAEFER a écrit :
>
> Autres benchmarks:
> 
>    SCSI IBM DCAS        1996:  7 MByte/s (hdparm)
>             DDRS        1998: 13 MByte/s
>             DGVS        1998: 18 MByte/s
>         Seagate Cheatah 1997: 19 MByte/s

Quand j'avais 15 ans, je bidouillais mon boguet pour gagner 5 km/h
(+12%)
Mais avec hdparm, on change de registre: je viens de découvrir que mon
disque dur va 10x plus vite avec les options -c1 et -d1 de hdparm:

1) le type de disque:
[root@anesth lost+found]# /sbin/hdparm -i /dev/hda
/dev/hda:
 Model=IBM-DTLA-307030, FwRev=TX4OA50C, SerialNo=YKDYKFZ9465
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
 BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=60036480
 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 udma0 udma1 udma2 udma3 *udma4 udma5 

2) les spécifications avec lesquelles j'ai travaillé jusqu'à ce jour:
[root@anesth lost+found]# /sbin/hdparm /dev/hda
/dev/hda:
 multcount    =  0 (off)
 I/O support  =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 nowerr       =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 3737/255/63, sectors = 60036480, start = 0

3) un petit banc d'essai:
[root@anesth lost+found]# /sbin/hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads:  64 MB in 18.46 seconds =  3.47 MB/sec

4) un gros fichier de 406 Mo .....
[root@anesth lost+found]# ls -lh                 
total 407M
-rw-r--r--    1 root     root         406M avr 22 18:51 cd.5

5) .... que je copie en 3 minutes, 40 secondes et 45 centièmes. 
[root@anesth lost+found]# time cp cd.5 cd.6 
real    3m40.455s
user    0m2.780s
sys     2m13.200s

6) changement de paramètres avec hdparm:
[root@anesth lost+found]# /sbin/hdparm -c1 -d1 /dev/hda
/dev/hda:
 setting 32-bit I/O support flag to 1
 setting using_dma to 1 (on)
 I/O support  =  1 (32-bit)
 using_dma    =  1 (on)

7) et de nouveau un petit banc d'essai: c'est 10x plus rapide!
[root@anesth lost+found]# /sbin/hdparm -t /dev/hda
/dev/hda:
 Timing buffered disk reads:  64 MB in  1.92 seconds = 33.33 MB/sec

8) on contrôle encore une fois avec le coup de la copie: 34 secondes!
[root@anesth lost+found]# time cp cd.6 cd.7
real    0m34.921s
user    0m0.150s
sys     0m9.490s


Question: que fait au juste  l'option -k1 de hdparm? Est-ce que la
commande 
/sbin/hdparm -c1 -d1 -k1 /dev/hda 
suffit pour que la modification reste permanente?
Ou faut-il mettre la commande  dans rc.local ou rc.sysinit?

Pierre Maitre




______________________________________________________
Dr Pierre-O. Maitre
Privat Docent
FMH Pharmacologie Clinique
FMH Anesthésiologie
A la Joy
CH-1272 Genolier Switzerland
--
http://www-internal.alphanet.ch/linux-leman/ avant de poser
une question.

Répondre à