Here is how you can find out the top offenders of what processes are
using your disk:


First, you need to configure your system to log every single disk write. Here 
is how:
[EMAIL PROTECTED]:~$ sudo -i
Password:
[EMAIL PROTECTED]:~# /etc/init.d/sysklogd stop
[EMAIL PROTECTED]:~# echo 1 > /proc/sys/vm/block_dump

Wait about 5 minutes and make sure that you hear the hard drive being
accessed many times.

[EMAIL PROTECTED]:~# dmesg | gawk '/(READ|WRITE|dirtied)/ {activity[$2]++} END 
{for (x in activity) print x, activity[x]}' | sort -rn -k2 | head -20 > 
diskaccess.log
[EMAIL PROTECTED]:~# echo 0 > /proc/sys/vm/block_dump
[EMAIL PROTECTED]:~# gedit diskaccess.log

Either paste the contents or attach diskaccess.log. That will tell you
the top offenders that are writing to your disk.

-- 
hard disk being accessed every 4 sec.
https://launchpad.net/bugs/17878

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to