Newsgroup: it.comp.os.linux.iniziare
Titolo: Sistema lentissimo(lungo ma documentato)

Ho l'impressione che il mio sistema sia lento a causa del tempo di accesso 
al disco. In pratica il led del disco rimane acceso a lungo.
Premetto che la situazione è penosa anche a causa della memoria di lavoro 
scarsa, ma non credo sia solo imputabile alla ram la lentezza del mio 
sistema. (P:K6II450 M:96MbDimm SM:ASUSP5AB)
Domanda: questo flusso di dati è normale per questi dischi o possono fare 
molto meglio?
#hdparm -t /dev/hda
 Timing buffered disk reads:  64 MB in  3.55 seconds = 18.03 MB/sec
 Timing buffered disk reads:  64 MB in  3.25 seconds = 19.69 MB/sec
 Timing buffered disk reads:  64 MB in  3.38 seconds = 18.93 MB/sec
#hdparm -t /dev/hdb:
 Timing buffered disk reads:  64 MB in  6.11 seconds = 10.47 MB/sec
 Timing buffered disk reads:  64 MB in  6.45 seconds =  9.92 MB/sec
 Timing buffered disk reads:  64 MB in  6.23 seconds = 10.27 MB/sec
Il test è stato fatto in condizioni normali di lavoro cioè con Knode, 
Kwrite, Shell in funzione.
#hdparm -I /dev/hda
/dev/hda:
 multcount    = 32 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    = 32 (on)
 geometry     = 1048/255/63, sectors = 16841664, start = 0
#hdparm -I /dev/hdb
/dev/hdb:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    = 32 (on)
 geometry     = 524/255/63, sectors = 8418816, start = 0
#cat /etc/fstab
/dev/hda5 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda6 /home ext2 defaults 1 2
/dev/hdb1 /home/backup ext2 defaults 1 2
none /mnt/cdrom supermount 
dev=/dev/scd0,fs=iso9660,--,rw,iocharset=iso8859-15 0 0
/dev/ide/host0/bus0/target0/lun0/part1 /mnt/debian ext3 defaults 1 2
/dev/fd0 /mnt/floppy auto users,noauto 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
/dev/hda7 swap swap defaults 0 0
/dev/hdb5 swap swap defaults 0 0
#hdparm -I /dev/hda:
ATA device, with non-removable media
        Model Number:       ST38410A
        Serial Number:      7DX0C1LL
        Firmware Revision:  3.20
Standards:
        Supported: 5 4 3 2
        Likely used: 5
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:   16841664
        device size with M = 1024*1024:        8223 MBytes
        device size with M = 1000*1000:        8622 MBytes (8 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        bytes avail on r/w long: 4      Queue depth: 1
        Standby timer values: spec'd by Standard
        R/W multiple sector transfer: Max = 32  Current = 32
        Advanced power management level: unknown setting (0x0040)
        DMA: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=240ns  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
           *    SMART feature set
           *    Advanced Power Management feature set
           *    DOWNLOAD MICROCODE cmd
HW reset results:
        CBLID- below Vih
        Device num = 0 determined by CSEL
Checksum: correct
#hdparm -I /dev/hdb:
ATA device, with non-removable media
        Model Number:       QUANTUM FIREBALL SE4.3A
        Serial Number:      634733734123
        Firmware Revision:  API.0A00
Standards:
        Supported: 3 2 1
        Likely used: 4
Configuration:
        Logical         max     current
        cylinders       14848   14848
        heads           9       9
        sectors/track   63      63
        --
        bytes/track: 32256      bytes/sector: 512
        CHS current addressable sectors:    8418816
        LBA    user addressable sectors:    8418816
        device size with M = 1024*1024:        4110 MBytes
        device size with M = 1000*1000:        4310 MBytes (4 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 80.0kB     bytes avail on r/w long: 4      Queue depth: 
1
        Standby timer values: spec'd by Vendor
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2
             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:
                Power Management feature set
                SMART feature set
#free -m
                                 total       used       free     shared    
buffers     cached
Mem:                     92         83          8          0          1         
24
-/+ buffers/cache:       58         34
Swap:                   368         82        285
#df -h
Filesystem         Dimens. Usati Disp. Uso% Montato su
/dev/hda5             3.4G  3.1G  146M  96% /
none                   47M     0   47M   0% /dev/shm
/dev/hda6             2.7G  1.7G  889M  66% /home
/dev/hdb1             3.8G  2.6G 1022M  73% /home/backup
/dev/ide/host0/bus0/target0/lun0/part1
                      1.8G  202M  1.5G  12% /mnt/debian
none                   47M  792K   46M   2% /tmp
/dev/fd0              1.4M  973K  451K  69% /mnt/floppy
-- 
_________
Mirco Zorzo
MDK Linux 2.4.18 
Registered user #287263

 al disco.
No, il tuo sistema e' lento a causa del fatto che non hai memoria
ed usi qualche cosa di pesante come KDE.
Dimenticati il DMA ed altre cretinate e compera della RAM.
Davide

 Davide
Rapido e conciso.
Grazie Davide!
Ciao.
