[Nottingham] CPU time

Jim Moore jmthelostpacket at googlemail.com
Fri Oct 17 21:36:29 UTC 2008


Martin wrote:
> <snip>
> And from another thread:
>
> ####
> The underlying problem is that no current OS has a system call that
> returns the CPU time of a process and all its descendants. This info can
> be obtained by enumerating all processes and tracing the process
> ancestry, but this is time-consuming and I want to avoid doing it once
> per second (the target refresh period for updating CPU time).
> ####
>
>
> So really does noone/nothing provide an accurate 'progress' bar or 'time
> so far' bar for a task spread across multiple parallel threads?
>
> Cheers,
> Martin
>
>   
Actually, that'd be rather useful for monitoring cluster load... 
particularly in a research establishment or for someone like me who runs 
many parallel processes on the same cluster, you can monitor what 
process (by "owner") uses what proportion of the total available CPU 
power. Such a monitor can be run on the head box with a child process on 
each processor node to push the statistics over the network (hence 
keeping the overhead to a minimum).

cheers,

TLP



More information about the Nottingham mailing list