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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-05-2013, 09:53 AM
|
#1
|
|
Member
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 252
Rep:
|
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
|
|
|
|
01-05-2013, 04:45 PM
|
#2
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
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
|
|
|
|
01-06-2013, 08:20 AM
|
#3
|
|
Member
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 252
Original Poster
Rep:
|
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
|
|
|
|
01-06-2013, 10:16 AM
|
#4
|
|
Senior Member
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 1,491
Rep: 
|
|
|
|
|
01-06-2013, 10:49 AM
|
#5
|
|
Member
Registered: Feb 2004
Location: BARODA, GUJARAT
Posts: 252
Original Poster
Rep:
|
It gives the stat in generic not Process specific like iotop
|
|
|
|
01-06-2013, 03:23 PM
|
#6
|
|
Senior Member
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 1,491
Rep: 
|
n/m.
This is me back-pedaling out of this topic <<<
Last edited by Habitual; 01-08-2013 at 06:09 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:48 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|