From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e3fd5b21f77f98f8,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-12-07 07:04:26 PST Path: gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!eff!news.kei.com!bloom-beacon.mit.edu!paperboy.osf.org!jeffc From: jeffc@soba.osf.org (Jeff Carter) Newsgroups: comp.unix.osf.osf1 Subject: Re: Accounting on DEC-OSF/1 Date: 6 Dec 1993 22:41:16 GMT Organization: Open Software Foundation Distribution: world Message-ID: <2e0cec$j0u@paperboy.osf.org> References: <2dvpdi$oc1@netserver.univ-lille1.fr> NNTP-Posting-Host: soba.osf.org 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.