The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 10:45 PM
To identify process Babu154 UNIX for Dummies Questions & Answers 1 11-27-2008 05: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 01: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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-09-2009
avsswamy avsswamy is offline
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
  #2 (permalink)  
Old 01-10-2009
techlinux techlinux is offline
Registered User
  
 

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

Join Date: Feb 2008
Posts: 172
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.
  #4 (permalink)  
Old 01-11-2009
avsswamy avsswamy is offline
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
--- ----------- ---------- ---------
  #5 (permalink)  
Old 01-14-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,147
Please state exact version of Unix/Linux concerned.
  #6 (permalink)  
Old 01-14-2009
Autocross.US's Avatar
Autocross.US Autocross.US is offline
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 12:44 PM..
  #7 (permalink)  
Old 01-14-2009
methyl methyl is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 1,147
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.
Sponsored Links
Closed Thread

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:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:56 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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