collect process IO stats (linux newbie)

From: Raghuveer Pallikonda (pallikon_at_rediffmail.com)
Date: 07/27/04


Date: 26 Jul 2004 17:20:31 -0700

Hi,
    I have a requirement to gather statistics of a linux application
we developed. I need to gather other than the user time, system time..
information like the I/O time i.e the amount of time the process spent
in doing the I/O. I also want statistics on how much I/O (in KB or MB)
 the process has done.

I have thoroughly searched the newsgroups for pointers on the this and
also read the man pages of time(1), times(2), getrusage(3p), proc(5)
for information on the same.

In my investigation I found that solaris 10 has a Dtrace
(http://blogs.sun.com/roller/page/eschrock/20040630) utility, a script
 can be authored to produce the above information.

Please advice me on how I can gather the above statistics using
syscall or the information available in /proc/self/ directory. Any
pointers which can help in doing the same would be helpful.

Please cc me on the response.

Thanking in advance for help.
-Raghu



Relevant Pages

  • New entry for Documentation for 2.4.25 (iostats.txt)
    ... +disk statistics have been introduced to help measure disk activity. ... +system-wide stats you'll have to find all the devices and sum them all up. ... as only one I/O. ...
    (Linux-Kernel)
  • Re: Store Taking Too Long
    ... The other very useful bit of information offered by the "statistics" option - apart from tape output rate - is the number of tape i/o errors - which could significantly affect your times. ... There also can be subtle affects around compression features. ...
    (comp.sys.hp.mpe)
  • Re: Not Responding
    ... I have turned off automatic Send/Recv at startup of OE to ... Trying to queue up another request for one which is already slow (or hung) ... You may have to activate more statistics columns to see if there ... E.g. if your "hang" is in an I/O loop ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: interfacing with Perl script
    ... based on the generated file & takes the statistics on it ... The most important things to achieve are to write some codes to let my perl program work to interface with the results generated. ... all solutions mean to do some form of I/O. ... If you don't want that use an integrated programming language or a language ...
    (comp.unix.shell)
  • collect process IO stats (linux newbie)
    ... information like the I/O time i.e the amount of time the process spent ... in doing the I/O. ... I also want statistics on how much I/O ... pointers which can help in doing the same would be helpful. ...
    (comp.os.linux.development.apps)

Quantcast