LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-05-2013, 09:53 AM   #1
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 259

Rep: Reputation: 30
customizing output of iotop


Hi,

I would like to set up the cron in which it should capture the top 3 process IDs which will causes the high %IO and Total Disk Read & Write details of iotop command.

So that like sar o/p in future I can check the process ID which causes the high I/O

I know how to set up the cron but unable to find out the way to capture top 3 process IDs which will causes the high %IO and Total Disk Read & Write details of iotop command.

Please suggest.

Thanks
Rajan
 
Old 01-05-2013, 04:45 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,351

Rep: Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041
Like top, iotop has a batch mode - should be what you're looking for. "iotop -b -n 1 > iotop.out.$(date +%F_%T)" for example.

Something like collectl might (would) be a better option.

Last edited by syg00; 01-06-2013 at 01:39 AM. Reason: helps to actually include the date command
 
Old 01-06-2013, 08:20 AM   #3
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 259

Original Poster
Rep: Reputation: 30
Hi

Hi,

Thanks for your update, but I am looking for to identify the top 5 process which causes high DISK READ & DISK WRITE and capture only those process into log file.

Thanks
Rajan
 
Old 01-06-2013, 10:16 AM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,470
Blog Entries: 6

Rep: Reputation: Disabled
+1 for collectl
 
Old 01-06-2013, 10:49 AM   #5
rajaniyer123
Member
 
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 259

Original Poster
Rep: Reputation: 30
It gives the stat in generic not Process specific like iotop
 
Old 01-06-2013, 03:23 PM   #6
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,470
Blog Entries: 6

Rep: Reputation: Disabled
n/m.

This is me back-pedaling out of this topic <<<

Last edited by Habitual; 01-08-2013 at 06:09 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] anybody knows how to install iotop alexx2010 Linux - Newbie 2 10-20-2010 07:10 PM
customizing Hiren's BootCD interface, or UI output.... NiHao Linux - Software 4 06-18-2009 10:54 AM
customizing Hiren's BootCD interface, or UI output.... NiHao Linux - Newbie 1 05-24-2009 02:32 AM
syslog, iptables, and customizing the output JFoster Linux - General 0 11-29-2003 01:12 AM


All times are GMT -5. The time now is 05:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration