The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
identify the unix processes performing high disk i/o reads and writes avsswamy Shell Programming and Scripting 0 01-09-2009 09:45 PM
To identify process Babu154 UNIX for Dummies Questions & Answers 1 11-27-2008 04:30 AM
which process writes to file hachik UNIX for Dummies Questions & Answers 2 07-12-2008 03:28 AM
identify free disk spaces tads98 UNIX for Dummies Questions & Answers 3 03-01-2007 12:37 PM
sh script that reads/writes based upon contents of a file rdudejr Shell Programming and Scripting 3 07-12-2006 10:38 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-09-2009
Registered User
 

Join Date: Jan 2009
Posts: 3
identify the unix process performing high disk i/o reads and writes

Guys,

Is there any UNIX command that captures the 'Unix process which is performing high disk I/O reads and writes'.

can you help me in this?

-Swamy
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-09-2009
Registered User
 

Join Date: Jul 2008
Posts: 70
try iostat or vmstat
Reply With Quote
  #3 (permalink)  
Old 01-10-2009
agn agn is offline
Registered User
 

Join Date: Feb 2008
Posts: 144
iostat alone won't tell you the process which is doing the most I/O. A combination of iostat -p and lsof should give you what you're looking for.
Reply With Quote
  #4 (permalink)  
Old 01-11-2009
Registered User
 

Join Date: Jan 2009
Posts: 3
Thanks .
Can any one give me the script/command which gives the output as below format.
PID I/O READS I/OWRITES I/O WAIT
--- ----------- ---------- ---------
Reply With Quote
  #5 (permalink)  
Old 01-14-2009
Registered User
 

Join Date: Mar 2008
Posts: 592
Please state exact version of Unix/Linux concerned.
Reply With Quote
  #6 (permalink)  
Old 01-14-2009
Autocross.US's Avatar
Registered User
 

Join Date: Nov 2008
Location: Chesapeake, VA
Posts: 73
You aren't going to be able to get the exact output you want with the standard Unix/Linux commands very easily, if at all. Mapping disk I/O by process is not a trivial task.

If you are using Solaris 10,
a Dtrace script can probably be developed to do this:

DTrace at OpenSolaris.org
(see the scripts section - there are some examples on Brendan Gregg's page that are close to your request).

If you are using HP-UX, you could develop a custom measureware/glance script and syntax file to get stats close to what you need.

Not sure of what you'd need for Linux to be able to get this data, but it's most likely going to be add-on.

Edit: Glance is available for RHEL

Last edited by Autocross.US; 01-14-2009 at 11:44 AM..
Reply With Quote
  #7 (permalink)  
Old 01-14-2009
Registered User
 

Join Date: Mar 2008
Posts: 592
If you have unix Process Accounting running there is a whole suite of
supplied scripts to record data and find historic details of processes.
For an overview see:

man acct
man acctcms
man acctcom

Setting up unix Process Accounting from scratch is not trivial. On a busy
system it can need very large amounts of disc space and become a significant
load on your system itself.

If you are running a database engine such as Oracle, I/O statistics can
usually be obtained from the database engine.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Bookmarks

Tags
high disk reads, identify the unix process

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 08:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66