Home Page

Tips page
c
cellulari
debian
egittologia
emacs
emacs-latex
hardware
html
inglese
java
latex
linux

*Alcuni comandi utili utilizzando find
*ARP e MAC address
*Ascoltare un CD audio
*Attivare il NumLock (BlocNum)
*Attivare i tasti i tasti Magic SysRq
*AWK, use an environment variable inside a script
*Bash e Argument list too long
*BogoMIPS
*Cancellare file e non recuperare spazio
*Capacita` dell'hard disk
*Come cambiare i font delle applicazioni con librerie GTK
*Come cambiare l'hostname
*Come tentare di recuperare file, filesystem e partizioni
*Compilare in parallelo
*Condividere una partizione
*Configure proxy for shells
*Continuous disk access
*Controllare la salute di hard disk e filesystem
*Convertire ext2 in ext3 (e viceversa)
*Convertire un file di testo dalla codifica DOS a quella UNIX
*Cosa fare quando si perde la password di root
*Cosa significa l'errore ``TCP
*Creare un boot floppy
*Creare un file temporaneo
*Deframmentazione di un filesystem
*Delete last chars from a string
*Determinare lo spazio libero sul disco
*Eliminare il beep
*Emettere un beep da script
*Enable PPP connection on boot
*Exclude a directory with rsync
*Execute telnet from a script
*Gestione dei file di log
*Gestione dei file .iso
*Gestione della data/ora
*Gestione di utenti e gruppi
*Hash md5 di una stringa
*Identificare la distribuzione installata
*I file ps e pdf
*Il file /etc/fstab
*Il file /etc/issue[.net] e /etc/motd
*Il filesystem SysFs
*I link soft ed hard
*Il path delle applicazioni
*Il sistema tutto in maiuscolo
*I moduli del kernel
*Impostare piu` IP per una scheda di rete
*Introduzione a LVM
*Inviare messaggi agli altri utenti
*I permessi della directory root, /
*La gerarchia del filesystem di Linux
*La memoria Ram sotto Linux
*La memoria swap
*Limitare la possibilita` di diventare root
*Limitazioni alla dimensione del file
*Log dei login utente
*Modificare il comportamento di ctrl+alt+canc
*Modificare le variabili della parent shell
*Montare o rimontare un filesystem come read-only
*More columns in a shell output
*Negare il login durante la manutenzione del sistema
*NoHUP
*Obtain the exact process start time
*Ottenere uno snapshot dello schermo
*Partizionamento di un sistema Linux
*Perche' si usa ./ per avviare alcuni eseguibili
*Permanent PPP connection
*PID of a process
*Programmare l'esecuzione dei programmi
*Quale processo utilizza un certo file o porta
*Quali vantaggi si hanno dalla ricompilazione
*Remove from find results
*Ricreare velocemente /tmp al boot
*Ridirezione dell'output
*Rimappare la tastiera
*Ripristinare i caratteri sballati in console
*Riscrivere l'MBR
*Salvarsi da un ``rm'' di troppo...
*Save MBR
*Scrivere in modo sincrono su filesystem
*Scrivere nel log di sistema di Linux
*Separazione dei comandi nella shell
*Separazione delle parole nella shell
*Share the internet connection
*Shell configuration files
*Single quote character escape with sed
*Spostare una directory in un'altra partizione
*Stimare il carico di lavoro della macchina
*Undelete di un file
*Usare le pendrive USB sotto Linux
*Usare partizioni primarie o estese
*Use md5sum to verify saved files
*Use ssh and scp without password
*Utilizzare hdparm per controllare gli hard disk
*Verificare un file video
*What is a zombie process
*What is the file System.map?
*What is the shebang? (Shell scripts)
*What shared libraries a program uses
*Yesterday date

matlab
misc
mysql
network
octave
programming
python
security
sed
tech
webapps
windows

University Page

Programming

Debian & Linux

Some works

About me

Del.icio.us Bookmarks

BOINC Combined Statistics

Site Statistics

Contact me sending an e-mail (antispam defense activated)

debian

hacker emblem

blogger

GeoURL

View Sandro Tosi's profile on LinkedIn

This is my Google PageRank

Title: Continuous disk access
Author: Sandro Tosi
Last modified: 2005-09-17

It  might happened  that you  wonder `What  the hell  is  accessing my
disks: I'm doing nothing!'.

Ok, first of all, explain what  ``nothing' is; if you're burning a CD,
you have  to access  the file to  burn, and  even if you're  running a
peer-to-peer  program, disks accesses  are normal.  So make  sure that
really nothing  ``strange'' is running on that  machine; following the
usual culprits:


o  Filesystem type

   Do  you  know   what  filesystem  is  on  your   disks?  On  recent
   installation there will be journaling filesystems. Such filesystems
   commit  changes to  disks at  interval (for  example,  default EXT3
   interval  is 5  seconds), so  if you  noticed such  regular access,
   maybe they are  due to the filesystem and so you  don have to worry
   about it.


o  ATime mount option

   For every  file in the  filesystem, the inode records  three times:
   change, modify and access time; try

   $ stat <a_file>

   to see them. The atime (access time) it's written every time a file
   is  accessed, even if  the file  is cached  in RAM  and so  no disk
   access is needed.  If an application keeps read a  file (so it will
   be  cached),  the  atime   is  written  all  the  times,  accessing
   disk. Since it's  a mount option, to disable it  you have to modify
   the /etc/fstab (or the  mount command line) adding ``noatime'' into
   filesystem options.  I've read this option  increase the throughput
   of kernel.org of about 25%.


o  slocate/updatedb

   These programs  do a full  disk search for updating  the ``locate''
   database.  When they  are  running you  can  see a  huge stress  on
   disks. You  can even think to  remove from cron  daily run (default
   configuration) to put in weekly or manually execution.


If the common causes before don't work, you could always 

# echo 1 > /proc/sys/vm/block_dump

and monitoring the disk accesses with dmesg.