Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[hdparm] hd simili, impostazioni uguali, prestazioni diverse
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Mon Sep 13, 2004 9:38 am    Post subject: [hdparm] hd simili, impostazioni uguali, prestazioni diverse Reply with quote

Ho visto un po' sul forum tutti gli argomenti che trattavano hdparm, però non sono riuscito a capire la causa di questo comportamento anomalo:

Code:
root@pc01 linux # hdparm -tT /dev/hda
 
/dev/hda:
 Timing cached reads:   964 MB in  2.00 seconds = 481.59 MB/sec
 Timing buffered disk reads:    2 MB in 12.05 seconds = 169.93 kB/sec
root@pc01 linux # hdparm -tT /dev/hdb
 
/dev/hdb:
 Timing cached reads:   968 MB in  2.01 seconds = 482.39 MB/sec
 Timing buffered disk reads:  172 MB in  3.00 seconds =  57.25 MB/sec

root@pc01 linux # hdparm /dev/hda
 
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 40027029504, start = 0
root@pc01 linux # hdparm /dev/hdb
 
/dev/hdb:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 65535/16/63, sectors = 41110142976, start = 0

root@pc01 linux # cat /proc/ide/hda/model
MAXTOR 6L040J2
root@pc01 linux # cat /proc/ide/hdb/model
Maxtor 6E040L0


Qualche idea sul perchè di una velocità di trasferimento così diversa?
su /etc/conf.d/hdparm ho solo --> all_args="-d1 -c1"
_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
motaboy
Retired Dev
Retired Dev


Joined: 15 Dec 2003
Posts: 1483

PostPosted: Mon Sep 13, 2004 10:09 am    Post subject: Reply with quote

Forse perché uno é master e l'altro slave?
Potresti provare ad invertirli sui canali (ovviamente inverti anche i jumper di master e slave).

Oppure potresti mettere il primario slave (hdb) sul secondario master (hdc).
_________________
...
Back to top
View user's profile Send private message
FonderiaDigitale
Veteran
Veteran


Joined: 06 Nov 2003
Posts: 1710
Location: Rome, Italy

PostPosted: Mon Sep 13, 2004 10:13 am    Post subject: Reply with quote

tieni in considerazione:
a. hanno geometrie uguali? se no, normale.
b. l'eta'=l'usura
_________________
Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica :)
Back to top
View user's profile Send private message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Mon Sep 13, 2004 11:01 am    Post subject: Reply with quote

ok a tutto.. ma avete visto?

Timing buffered disk reads: 2 MB in 12.05 seconds = 169.93 kB/sec

sono kb!!

Mi devo preoccupare? Posso fare qualcosa per assicurarmi che il primo disco sia "sano"?
_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
paolo
l33t
l33t


Joined: 23 Jul 2002
Posts: 768
Location: SBT (AP)

PostPosted: Mon Sep 13, 2004 1:07 pm    Post subject: Reply with quote

assente wrote:
...

Mi devo preoccupare? Posso fare qualcosa per assicurarmi che il primo disco sia "sano"?


Prova qualche utility SMART.
Sicuramente c'è QUALCOSA DI GRANDE (tra di voi) che non va :)
Occhio e croce sembra la cache che non va...

Code:
hdparm -I

che dice?

P.
_________________
Nihil sine magno labore
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Mon Sep 13, 2004 1:17 pm    Post subject: Reply with quote

assicurati anche che la WriteCache sia abilitata su entrambi gli HD:

hdparm -i /dev/hd*

comunque in caso fossero disabilitate per abilitarle dai un:

hdparm -W1 /dev/hd*

a parte ciò in generale, se i modelli degli hd sono differenti sicuramente al 99% hanno prestazioni diverse, dipende da quanta cache hanno, che impostazioni di APM hanno, ma soprattutto che tipo di algoritmo per la lettura/scrittura usano ....

leggiti il man di hdparm, è molto corto, soprattutto la sezione che riguarda l'APM, perchè abilitandola totalmente/parzialmente o disabilitandola le prestazioni variano di parecchio...
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Mon Sep 13, 2004 1:54 pm    Post subject: Reply with quote

Code:
# hdparm -I /dev/hda
 
/dev/hda:
 
ATA device, with non-removable media
        Model Number:       MAXTOR 6L040J2
        Serial Number:      662134846519
        Firmware Revision:  AR1.0400
Standards:
        Used: ATA/ATAPI-5 T13 1321D revision 1
        Supported: 5 4 3 2 & some of 6
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   78177792
        device size with M = 1024*1024:       38172 MBytes
        device size with M = 1000*1000:       40027 MBytes (40 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Vendor, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 128, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
           *    SMART feature set
           *    Mandatory FLUSH CACHE command
           *    Device Configuration Overlay feature set
           *    Automatic Acoustic Management feature set
                SET MAX security extension
           *    DOWNLOAD MICROCODE cmd
           *    SMART self-test
           *    SMART error logging
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        20min for SECURITY ERASE UNIT.
HW reset results:
        CBLID- above Vih
        Device num = 0 determined by the jumper
Checksum: correct


La WriteCache è abilitata su entrambi
_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
!equilibrium
Bodhisattva
Bodhisattva


Joined: 06 Jun 2004
Posts: 2109
Location: MI/BG/LC

PostPosted: Mon Sep 13, 2004 2:04 pm    Post subject: Reply with quote

attenzione:

hdparm -i
hdparm -I

sono due comandi diversi ;)

comunque posta l'output di hdparm -iI per entrambi gli HD
_________________
Arch Tester for Gentoo/FreeBSD
Equilibrium's Universe

all my contents are released under the Creative Commons Licence by-nc-nd 2.5
Back to top
View user's profile Send private message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Mon Sep 13, 2004 2:15 pm    Post subject: Reply with quote

DarkAngel76 wrote:
attenzione:

hdparm -i
hdparm -I

sono due comandi diversi ;)

comunque posta l'output di hdparm -iI per entrambi gli HD

Lo so :) infatti la WriteCache l'ho controllata con -i

Code:

# hdparm -I /dev/hdb <-- Questo è quello che va bene
 
/dev/hdb:
 
ATA device, with non-removable media
        Model Number:       Maxtor 6E040L0
        Serial Number:      E1H5TZEE
        Firmware Revision:  NAR61590
Standards:
        Supported: 7 6 5 4
        Likely used: 7
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   80293248
        device size with M = 1024*1024:       39205 MBytes
        device size with M = 1000*1000:       41110 MBytes (41 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 1
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Advanced power management level: unknown setting (0x0000)
        Recommended acoustic management value: 192, current value: 254
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    NOP cmd
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
           *    Look-ahead
           *    Write cache
           *    Power Management feature set
                Security Mode feature set
           *    SMART feature set
           *    FLUSH CACHE EXT command
           *    Mandatory FLUSH CACHE command
           *    Device Configuration Overlay feature set
           *    Automatic Acoustic Management feature set
                SET MAX security extension
                Advanced Power Management feature set
           *    DOWNLOAD MICROCODE cmd
           *    SMART self-test
           *    SMART error logging
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
HW reset results:
        CBLID- above Vih
        Device num = 1 determined by the jumper
Checksum: correct

# hdparm -i /dev/hda
 
/dev/hda:
 
 Model=MAXTOR 6L040J2, FwRev=AR1.0400, SerialNo=662134846519
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=1818kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78177792
 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=no WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1:
 
 * signifies the current active mode

# hdparm -i /dev/hdb
 
/dev/hdb:
 
 Model=Maxtor 6E040L0, FwRev=NAR61590, SerialNo=E1H5TZEE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=80293248
 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

_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Mon Sep 13, 2004 2:43 pm    Post subject: Reply with quote

Come puoi vedere dai risultati di hdparm i due dischi non sono uguali. Ti consiglio di cercare sul sito di maxtor i datasheet per ulteriori informazioni.
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
assente
Guru
Guru


Joined: 12 Apr 2004
Posts: 570
Location: Torino, italia, New Europe

PostPosted: Mon Sep 13, 2004 4:40 pm    Post subject: Reply with quote

gutter wrote:
Come puoi vedere dai risultati di hdparm i due dischi non sono uguali. Ti consiglio di cercare sul sito di maxtor i datasheet per ulteriori informazioni.

Infatti ho scritto simili, comunque qualcosa di strano ci deve essere perchè un disco trasferisce nell'ordine di kb e non mb..
_________________
Blog
E8400, 4850, P5q
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum