[Developers] AlphaThorns/ResClock and bug 1212

Steve White swhite at aei.mpg.de
Sat Aug 21 01:34:39 CDT 2004


Pursuant to bug 1212, and in the hope of satisfying Erik,
I have created another clock 'res', as a thorn ResClock in AlphaThorns.

Like the 'getrusage' and 'sys res' clocks, it is based on the getrusage
command.  Basically, it reports the sum of the 'getrusage' and 'sys res'
clocks.  This will be the total CPU resource usage by the process, in
whatever sense is meant by the getrusage system command.

One alternative was to do what Erik originally suggested, which was to
change the value reported by the existing 'getrusage' clock to be this
sum.  That would make sense, but if anybody had been using this clock it
would have rendered their reports non-reproducible.

The safer route was to add this thorn.

------------------------------------------------------------------------
Steve White : Programmer
Max-Planck-Institut für Gravitationsphysik      Albert-Einstein-Institut
Am Mühlenberg 1, D-14476 Golm, Germany                  +49-331-567-7329





More information about the Developers mailing list