Hlavní navigace

Názor k článku Dell Inspiron 6400 a Linux od anonym - > Da se nejak sledovat ktery proces cte/zapisuje...

  • Článek je starý, nové názory již nelze přidávat.
  • 22. 5. 2007 11:05

    anonymní
    > Da se nejak sledovat ktery proces cte/zapisuje na disk?

    Koukni sem: http://www.samwel.tk/laptop_mode/faq

    5. Spinup Debugging
    My disk spins up all the time and I have no clue what causes this. Can I debug this?

    Yes, you can. But first, check that you have modified your syslog.conf to not sync, as described in the last question of the previous section. To debug disk activity, you can do:

    echo 1 > /proc/sys/vm/block_dump

    (Warning: you must disable syslogd before you do this, or you must make sure that kernel output is not logged. If you forget this, your system may get into a feedback loop, where syslogd causes disk activity, this causes kernel output, and this causes syslogd to do more disk activity, etcetera!)

    This enables file/disk activity debugging in the kernel. You can read the output using dmesg. When you're done, disable block dump using

    echo 0 > /proc/sys/vm/block_dump

    NOTE: Recently a tool called lm-profiler was added to laptop-mode-tools, which does all this for you. It also detects network services that you might not want running, and it can install the services' init scripts into laptop mode's new "start/stop" directory structure, so that they are automatically stopped when you are working on battery.