Timing several processes

From: Anthony Akens (AAkens_at_egh.org)
Date: 12/03/03


Date: Wed, 3 Dec 2003 10:48:34 -0500
To: <beginners@perl.org>

Hi all!

I'm wanting to write a simple web-based tool to see the status
of several servers at a glance. I know there are many solutions
existing, but I can't learn as much about perl by just using one
of those as I can by writing my own. The first step I want to do
is call a script from cron that runs several basic monitoring tools
(sar, vmstat, df, iostat, etc) and saves the output of each to a
file. Then I'd parse those files up, and write a summary file.

Easy enough. And I could certainly do it with by calling the tools
one at a time. However, I'd like to get roughly 1 minute of vmstat,
iostat, and sar output.... Simultaneously. So I'm supposing I'd
want to fork off each process, and then when those are all done
come back and run a script that then parses those results out for
the individual statistics I'm looking for.

I've never used fork before, and while it looks fairly straight
forward what I am not sure of is how to make sure all of those forked
processes have completed before moving on and parsing the files.

Any pointers?

Thanks in advance

-Tony



Relevant Pages

  • RE: Timing several processes
    ... Then I'd parse those files up, ... However, I'd like to get roughly 1 minute of vmstat, ... iostat, and sar output.... ... I've never used fork before, and while it looks fairly straight ...
    (perl.beginners)
  • RE: Timing several processes
    ... to parse the data I will generate, ... iostat, and sar output.... ... I've never used fork before, and while it looks fairly straight forward ... To unsubscribe, e-mail: beginners-unsubscribe@perl.org ...
    (perl.beginners)
  • Re: Re: [SLE] How to get disk IO information?
    ... to use iostat command, the system said ... Raymond ... >> file namd vmstat. ... >programs such as iostat and vmstat will track any change in the manner ...
    (SuSE)
  • Re: bottlenecks in linux databse system
    ... I am having some performance problems with postgres 8.2 on a raid disk system. ... I have used top, iostat and vmstat, but the timing options are too coarse, i.e. minimum 1 second updates. ...
    (comp.os.linux.misc)
  • Re: [SLE] How to get disk IO information?
    ... > the disk IO information in a program and use it. ... > file namd vmstat. ... you need from iostat. ... # What use of absolute file system names are made by iostat and vmstat? ...
    (SuSE)