aspose file tools*
The moose likes Linux / UNIX and the fly likes unix disk i/o Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "unix disk i/o" Watch "unix disk i/o" New topic
Author

unix disk i/o

Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
is there a command to view disk i/o for each process that is running on a unix box?

Thanks!
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
found iostat, but it says "command not found" (using putty).
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Different tools are available for different UNIX O/S's. What flavor of UNIX are we talking about?


[Jess in Action][AskingGoodQuestions]
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
he he...
do you have a command to find that out ?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Yes: uname . "uname -a" will give lots of details.
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
it's Linux 2.4.13 i686
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unix disk i/o