hdparm

John Salatas john at csn.gr
Mon Jan 24 18:42:11 EET 2005


Kalimera/spera se olous,
exw sto pc mou dyo diskous (hda 160GB kai hdd 250GB) me ta exis partitions:
--------------------------------------------
salatas:~ # fdisk -l /dev/hda

Disk /dev/hda: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1       17507   140624946   83  Linux
/dev/hda2           17508       17637     1044225   82  Linux swap / Solaris
/dev/hda3           17638       19204    12586927+  83  Linux
/dev/hda4   *       19205       19928     5815530   83  Linux
--------------------------------------------

kai

--------------------------------------------
salatas:~ # fdisk -l /dev/hdd

Disk /dev/hdd: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1               1       30515   245111706   83  Linux
--------------------------------------------

to hdparm mou dinei ta exis:
--------------------------------------------
salatas:~ # hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 19929/255/63, sectors = 163928604672, start = 0
--------------------------------------------

kai 

--------------------------------------------
salatas:~ # hdparm /dev/hdd

/dev/hdd:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 30515/255/63, sectors = 251000193024, start = 0
--------------------------------------------

enw to hdparm -i auta:

--------------------------------------------
salatas:~ # hdparm -i /dev/hda

/dev/hda:

 Model=Maxtor 6Y160P0, FwRev=YAR41VW0, SerialNo=Y60DG1ZE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=16
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,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
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null):

 * signifies the current active mode
--------------------------------------------

kai 

--------------------------------------------
salatas:~ # hdparm -i /dev/hdd

/dev/hdd:

 Model=Maxtor 7Y250P0, FwRev=YAR41BW0, SerialNo=Y63FAM9E
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=16
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,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 udma6
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null):

 * signifies the current active mode
--------------------------------------------

Telos sto dmesg yparxoun ta exis:
--------------------------------------------
hda: max request size: 1024KiB
hda: 320173056 sectors (163928 MB) w/7936KiB Cache, CHS=19929/255/63, 
UDMA(100)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
hdd: max request size: 1024KiB
hdd: 490234752 sectors (251000 MB) w/7936KiB Cache, CHS=30515/255/63, 
UDMA(100)
hdd: cache flushes supported
 hdd: hdd1
--------------------------------------------


Ta perierga:
1) o hda den fainetai na ypostirizei udma5 logw tou DVD sto hdb ypothetw alla 
ta parakatw isxyoun kai otan sto hdb den exw syskeui (pleon to hdparm 
-i /dev/hda emfanizei ta udma5 kai udma6)
2) dokimazw tin hdparm se ola ta partitions (afou exw dwsei hdparm -X69 kai 
gia tous dyo diskous) kai mou dinei ta exis:
--------------------------------------------
salatas:~ # hdparm -t /dev/hda1

/dev/hda1:
 Timing buffered disk reads:   86 MB in  3.03 seconds =  28.42 MB/sec
salatas:~ # hdparm -t /dev/hda2

/dev/hda2:
 Timing buffered disk reads:  118 MB in  3.02 seconds =  39.04 MB/sec
salatas:~ # hdparm -t /dev/hda3

/dev/hda3:
 Timing buffered disk reads:  128 MB in  3.05 seconds =  42.03 MB/sec
salatas:~ # hdparm -t /dev/hda4

/dev/hda4:
 Timing buffered disk reads:  110 MB in  3.03 seconds =  36.31 MB/sec
salatas:~ # hdparm -t /dev/hdd1

/dev/hdd1:
 Timing buffered disk reads:  174 MB in  3.03 seconds =  57.42 MB/sec
--------------------------------------------

Giati auti i diafora stous xronous sta partitions tou hda? Exei kapoia logiki 
exigisi?

Ennoeitai pws exw dokimasei olous tous dynatous syndiasmous ide, diskwn, dvd 
kai kalwdiwn flat xwris kamia diafora.

Thanks kai sorry gia to megalo mail. :-)




More information about the Linux-greek-users mailing list