Re: How to get IO for a specific program
- From: sysstat@xxxxxxxxxx
- Date: Thu, 12 Jul 2007 10:59:44 -0700
On 12 juil, 11:27, Emmanuel Christophe <melan...@xxxxxxxxx> wrote:
I'm trying to measure the IO of a specific program. Basically, I would
like to know exactly how many bytes this program read and write from
the hard drive once it's completed.
I'm looking for something similar to the 'time' command. The call
would be something like:
#countio myprogram myprogramarguments
Once it's completed, it would return the number of bytes read/written.
Does such a program exist for Linux ? Looking around, the only thing
I've found would be using the iostat, but it can't isolate the
activity of one process only.
Have a look at the pidstat(1) command, which belongs to the sysstat
package (the same package containing iostat).
If you have :
1) a recent version of sysstat (7.1.5 or later)
2) a recent version of the kernel (2.6.20 or later) with the option
CONFIG_TASK_IO_ACCOUNTING compiled in.
Then you can try something like:
$ pidstat -d -p ALL -C "myprogram" <interval> <count>
Once pidstat has been launched, run your program...
Read the manual page to learn some more about the pidstat command.
Regards,
Sebastien.
.
- Follow-Ups:
- Re: How to get IO for a specific program
- From: Emmanuel Christophe
- Re: How to get IO for a specific program
- References:
- How to get IO for a specific program
- From: Emmanuel Christophe
- How to get IO for a specific program
- Prev by Date: mkisofs -dvd-video wants uppercase filenames
- Next by Date: Re: mkisofs -dvd-video wants uppercase filenames
- Previous by thread: Re: How to get IO for a specific program
- Next by thread: Re: How to get IO for a specific program
- Index(es):
Relevant Pages
|
|