LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] What process is generating disk I/O

[ILUG] What process is generating disk I/O

Stephen Brooks stephen at lincor.com
Wed Feb 14 15:10:19 GMT 2007


Kenn Humborg wrote:
>>> Kenn Humborg wrote:
>>>> Running vmstat 1 on a machine shows me a certain amount of block I/O.
>>>>
>>>> But, short of strace-ing everything running on the machine, how can
>>>> I determine which processes are generating this I/O?
>>>>
>>>> lsof will show me open files, but that doesn't help much.
>>> echo 1 > /proc/sys/vm/block_dump
>>> tail -f /var/log/debug
>> OK - that's a good starting point.  I suppose a better approach
>> might be to fire the kern.debug messages to syslog on another
>> machine so that syslog I/O doesn't cause a feedback loop
>> (process writes to block, kernel writes debug message, syslog
>> writes to /var/log/debug, kernel writes debug message, etc...).	
> 
> Not really as useful as I expected, unfortunately.  It's easy enough
> to see who is reading blocks, but all the writes are attributed to
> kjournald or pdflush.
> 
> Ah well...
> 

If they're the processes being flagged I'd suggest the writes are being 
caused by atime on files and diratime updates on directories creating 
dirty inodes.  Look at "noatime,nodiratime" mount options.

-- 
Stephen Brooks <stephen at lincor.com>      Digital Depot, Thomas Street
Senior Software Engineer                            Dublin 8, Ireland
Lincor Solutions Ltd.                          Ph: +353 (0) 1 4893683



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell