From: jeffc@soba.osf.org (Jeff Carter)
Subject: Re: Accounting on DEC-OSF/1
Date: 6 Dec 1993 22:41:16 GMT [thread overview]
Message-ID: <2e0cec$j0u@paperboy.osf.org> (raw)
In-Reply-To: 2dvpdi$oc1@netserver.univ-lille1.fr
In article <2dvpdi$oc1@netserver.univ-lille1.fr>, cassette@omega.univ-lille1.fr (Eric Cassette) writes:
> Hello World,
>
> I have a little problem with accounting on DEC OSF/1 :
>
> CPU usage of each process (as recorded in /var/adm/pacct) is the sum
> of the CPU usage of itself and the CPU usage of all his children !!!!!!
>
> So, we cannot do CPU accounting on DEC OSF1 (as we need...)
>
> Exemple :
>
> % uname -s -v -r
> OSF1 V1.3 111
> % su user
> Password:
> user% limit cputime 10
> user% testloop
> Cputime limit exceeded
> user% exit
> user% % acctcom | head
> COMMAND START END REAL CPU MEAN
> NAME USER TTYNAME TIME TIME (SECS) (SECS) SIZE(K)
> % acctcom | grep user
> ....
> boucle user ttypc 18:00:50 18:01:07 17.94 10.05 0.00
> #csh user ttypc 18:00:40 18:01:11 31.13 10.50 0.00
> *
> *
> *
> *
> CPU usage of "boucle" + CPU usage of "csh" = 20 secondes...
>
> IMHO, this is not a correct feature. Imagine a "at" job that is charged 4 times
> the correct CPU time...
>
> Any idea will be welcome.
Definitely not the correct data. This got broken in OSF/1 R1.0.3, though
prior to that (R1.0 through R1.0.2) it didn't work at all (cputimes were never
reported). This was fixed (correctly) in our sources around Feb 1992, and
released in OSF/1 R1.1. (It missed the R1.0.4 maintenance release).
Since DEC OSF/1 V1.3 is based on OSF/1 R1.1, they should have the correct
code. With source, it's an easy change: the call to ruadd() from exit() should
be moved from 2 lines above the call to acct() to just below it. If DEC
wants a reference to verify the change against, it is our Change Request
number 4537.
next prev parent reply other threads:[~1993-12-06 22:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-12-06 17:16 Accounting on DEC-OSF/1 Eric Cassette
1993-12-06 22:41 ` Jeff Carter [this message]
1993-12-07 7:37 ` Marcel Bernards
1993-12-10 10:40 ` Wolfgang Zweimueller
1993-12-07 12:25 ` Wolfgang Zweimueller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox