to draco:
iotop doesn't show all io, though it detects it. For example: there's audible
write sound from HDD, iotop (running with -a) doesn't show any change for any
of processes but "TOTAL WRITE" field on it's top line quickly flickers with
something like 340K/s (you may need to lower update interval to 0.5 sec to see
this).
What works best for me is a block_dump. Instructions at the end of the post
work for me in Xubuntu 11.10. With this thing I discovered that there's
actually quite a lot of processes that do io.
Attached my 15mins of idling (almost). As can be seen there's ranges of times
when almost no io (including jbd2) present.
To find filename from inode number you may try this: "find /home -inum
4765696" - not always work.
Also you may use "find /home -cmin -1" to find which files were modified
in less than one minute on home partition. For / it'll look something
like this "find /bin /dev /etc /home /lib /media /mnt /opt /root /sbin
/srv /tmp /usr /var -cmin -1" - add/remove directories as required.
jbd2 doesn't respect the commit interval for everyone most likely because
pm-utils remount partitions with changed commit value.
/usr/lib/pm-utils/power.d/journal-commit
JOURNAL_COMMIT_TIME_AC=${JOURNAL_COMMIT_TIME_AC:-0} #will remount
partition on AC power with commit=0.
#block_dump
#"leafpad" is a lightweight text editor, should be in ubuntu by default but not
sure.
sudo -i #go into root shell
leafpad /etc/rsyslog.conf #comment line starting with "$ModLoad
imklog". This will prevent receiving kernel messages by syslog and thus lessen
disk activity.
restart rsyslog #restart syslog
mkdir /tmp/mytemp #create temporary directory
mount -t tmpfs -o size=100000000 none /tmp/mytemp #create temporary FS in
RAM, roughly 100MB in size.
dmesg -c #empty kernel messages buffer
(contains lots of data from boot time)
echo 1 > /proc/sys/vm/block_dump #enable hdd
activity dumping.
watch "dmesg -c >> /tmp/mytemp/trace_01.txt" #this dumps hdd trace into
trace_01.txt every 2secs. Wait some time... Do something...
echo 0 > /proc/sys/vm/block_dump #disable hdd
activity dumping
umount /tmp/mytemp #unmount temporary directory. DON'T FORGET TO
COPY TRACE RESULTS!
leafpad /etc/rsyslog.conf #uncomment "#$ModLoad imklog"
restart rsyslog #after restart, hdd activity dump will
be in syslog. Basically you can skip creating temporary directory if you don't
plan to trace your hdd for too long.
exit #exit from root shell
** Attachment added: "15 mins of idling"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607560/+attachment/3049506/+files/15mins_almost_idle.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/607560
Title:
jbd2 writing block every 5 - 10 seconds, preventing disk spin-down and
making noise
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607560/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs