This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unix disk i/o

 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a command to view disk i/o for each process that is running on a unix box?

Thanks!
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
found iostat, but it says "command not found" (using putty).
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Different tools are available for different UNIX O/S's. What flavor of UNIX are we talking about?
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
he he...
do you have a command to find that out ?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes: uname . "uname -a" will give lots of details.
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it's Linux 2.4.13 i686
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iostat is available, but might not be installed. Try /usr/sbin/iostat, and if it's not there, ask the sysadmin about getting it. iostat gives you per-device info -- because of the way UNIX filesystems work, in general, per-process I/O statistics aren't very meaningful.

The lsof program (also maybe in /usr/sbin, or ask your sysadmin) can tell you all the files a process has open, and some info about each file. This is often very handy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic