[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[riminilug-general] Abilitare il DMA



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Normalmente quando copio grandi quantità di dati da un hd all'altro, la copia 
procede piuttosto lentamente (rispetto a quando lavoravo sotto win) e il 
sistema risulta bloccato. Al che mi è sorto il dubbio che il dma possa essere 
disabilitato. Si riesce a capire da questi comandi?

samuele:/home/samuele# hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 4866/255/63, sectors = 78177792, start = 0

samuele:/home/samuele# hdparm /dev/hdb

/dev/hdb:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  0 (off)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 19929/255/63, sectors = 320173056, start = 0

samuele:/home/samuele# hdparm -i /dev/hda

/dev/hda:

 Model=MAXTOR 6L040J2, FwRev=A93.0500, SerialNo=662130914273
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=32256, SectSize=21298, ECCbytes=4
 BuffType=DualPortCache, BuffSize=1819kB, 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

samuele:/home/samuele# hdparm -i /dev/hdb

/dev/hdb:

 Model=Maxtor 6Y160P0, FwRev=YAR41BW0, SerialNo=Y42TPKQE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=7936kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, 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

samuele:/usr/src/linux# hdparm -Tt /dev/hda

/dev/hda:
 Timing buffer-cache reads:   896 MB in  2.00 seconds = 448.00 MB/sec
 Timing buffered disk reads:   12 MB in  3.56 seconds =   3.37 MB/sec

samuele:/usr/src/linux# hdparm -Tt /dev/hdb

/dev/hdb:
 Timing buffer-cache reads:   904 MB in  2.00 seconds = 452.00 MB/sec
 Timing buffered disk reads:   10 MB in  3.46 seconds =   2.89 MB/sec

Se non è abilitato, come si fa ad abilitarlo?

Ho provato nel seguente modo, ma non funziona.

samuele:/usr/src/linux# hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 using_dma    =  0 (off)

Nel kernel il supporto per il DMA è abilitato, così come l'opzione di usarlo 
automaticamente quando disponibile.

- -- 
Samuele Battarra
battarsa@xxxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAjVeGG9b35LePWoMRAuLJAKChXyoZiDhT7IPcYysKKYeKky1I8wCfX0eW
OaG9pfJq4Xw2hcaYMRtxR3k=
=Kdz3
-----END PGP SIGNATURE-----