Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-06-2010, 05:41 PM   #1
brettgrant99
All Star
 
Join Date: May 2007
Posts: 654
command to get file i/o stats in linux

Our IT department are claiming that some simulations that I am running are I/O intensive, and I was wondering how I can check that out.

I am pretty sure that I could figure it out with profiled code, but I was hoping that I could run some command like "time" with the executable to see how much I/O it is using.

The system has a lot of users, so unless we stop all of those, iostat doesn't seem to work.

The GNU version of time is supposed to do it, but it says that there are zero reads/writes. I know that the simulation reads an input file and writes an output file, so I don't know that I trust that answer.

I wouldn't mind knowing how to do it on a Mac, either.

Thanks for any help/suggestions.
Brett
brettgrant99 is offline   Reply With Quote
Old 07-06-2010, 11:59 PM   #2
robinwmills
Major Leaguer
 
Join Date: Sep 2007
Location: San Jose, CA, USA.
Posts: 290
There are some tools around to help with this. I often use fseventer to "snoop" on applications to find out which files are being accessed (read or written). Take a look. I think there is a command-line version. Additionally, you'll find other code mentioned on the web site for fseventer - and you'll probably find that useful in looking for other possible solutions.

I'm rather suprised that your IT department is concerned about this. What's their angle, the amount of traffic you are creating on the network?
__________________
Robin
http://clanmills.com
24" iMac, 17" Powerbook, Vaio Ubuntu/W7 Laptop.
robinwmills is offline   Reply With Quote
Old 07-07-2010, 10:41 AM   #3
brettgrant99
All Star
 
Join Date: May 2007
Posts: 654
I am running on a HPC cluster (kindof like xgrid) and they are going to increase the number of computers on it, so they are worried that the additional computers will saturate the network storage.

I'll check out that fseventer.

Thanks,
Brett
brettgrant99 is offline   Reply With Quote
Reply

Thread Tools
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

Forum Jump



All times are GMT -5. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.