![]() |
HowTo.IdentifyWhichProcessesAccessDisk HistoryHide minor edits - Show changes to markup March 11, 2007, at 02:24 AM
by --
Added line 39:
Added line 41:
Added line 43:
Added line 45:
Added line 48:
March 11, 2007, at 02:23 AM
by --
Changed lines 13-14 from:
First, you must modify your syslog.conf to not sync to disk. to:
First, you must modify your syslog.conf to not sync to disk. If you don't do 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! March 11, 2007, at 02:22 AM
by --
Changed line 16 from:
'Busybox syslog.conf' to:
Busybox syslog.confChanged line 19 from:
'Syslog.conf' to:
Syslog.confMarch 11, 2007, at 02:21 AM
by --
Added lines 13-22:
First, you must modify your syslog.conf to not sync to disk. How you modify syslog.conf depends on which syslogd is installed. If your '/sbin/syslogd' is a symbolic link to 'busybox' then you really don't have a fully functional syslogd and should follow the 'Busybox syslog.conf' instructions. Everyone else should follow the 'syslog.conf' instructions. 'Busybox syslog.conf' First stop the syslogd with the command '/etc/init.d/syslog stop' Then edit '/etc/syslog.conf' and Change the 'DESTINATION' to 'buffer' Restart the syslogd with the command '/etc/init.d/syslog start' 'Syslog.conf' In /etc/syslog.conf, you have to place a dash (-) before the log file name, e.g. the line kern.* /var/log/kern.log becomes kern.* -/var/log/kern.log. You then have to either 'kill -HUP' on the syslogd process or start and stop the daemon. Changed lines 31-32 from:
to:
You can then see what processes are access the disk via the Deleted lines 36-40:
December 07, 2006, at 02:20 PM
by -- Clarify kernel versions with this feature
Changed lines 5-8 from:
The debugging feature you need is a kernel option. It may or may not have been compiled in to the kernel that you're using. Sorry, I don't know what the kernel option is called, does anyone else know? Please add to the following list: to:
The debugging feature you need was introduced in kernel version 2.6.6 as part of the laptop-mode patch. If you have an older kernel the feature is not available, unless you have somehow backported the laptop-mode patch. For NSLU2 distributions, this means that:
Added lines 11-14:
(Please add other distributions to this list.) Note that this is not the same as the CONFIG_BLK_DEV_IO_TRACE kernel configuration option. July 27, 2006, at 06:52 PM
by -- Create this page
Added lines 1-33:
How to identify which processes are accessing your diskIf you're wondering why your disk won't spin down, or spins down but wakes up sooner than you thought it should, or why the LED on your flash stick keeps flashing, this page describes how you can identify which processes are responsible. The debugging feature you need is a kernel option. It may or may not have been compiled in to the kernel that you're using. Sorry, I don't know what the kernel option is called, does anyone else know? Please add to the following list:
If you are using a supported kernel, here's how to proceed:
Basically each line describes one block access. Here's an example:
This shows the name of the executable, the process id, and a description of what changed. The filename accessed is shown in (), e.g. "kern.log" on the first line of the example. In many cases this won't tell you anything especially if you are using a journalling filesystem.
view ·
edit ·
print ·
history ·
Last edited by mrkzander.
Based on work by mrkzander and Phil Endecott. Originally by Phil Endecott. Page last modified on March 11, 2007, at 02:24 AM
|