Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Accounting on DEC-OSF/1
@ 1993-12-06 17:16 Eric Cassette
  1993-12-06 22:41 ` Jeff Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Eric Cassette @ 1993-12-06 17:16 UTC (permalink / raw)


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.

Regards,

--
Eric CASSETTE - Centre Interuniversitaire de Traitement de l'Information (CITI)
Batiment M4 - Universite des Sciences et Technologies de Lille
59655 Villeneuve d'Ascq Cedex - France
Tel: (33) 20 43 40 31, Fax: (33) 20 43 66 25
Email: Eric.Cassette@univ-lille1.fr


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Accounting on DEC-OSF/1
  1993-12-06 17:16 Accounting on DEC-OSF/1 Eric Cassette
@ 1993-12-06 22:41 ` Jeff Carter
  1993-12-07  7:37 ` Marcel Bernards
  1993-12-07 12:25 ` Wolfgang Zweimueller
  2 siblings, 0 replies; 5+ messages in thread
From: Jeff Carter @ 1993-12-06 22:41 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Accounting on DEC-OSF/1
  1993-12-06 17:16 Accounting on DEC-OSF/1 Eric Cassette
  1993-12-06 22:41 ` Jeff Carter
@ 1993-12-07  7:37 ` Marcel Bernards
  1993-12-10 10:40   ` Wolfgang Zweimueller
  1993-12-07 12:25 ` Wolfgang Zweimueller
  2 siblings, 1 reply; 5+ messages in thread
From: Marcel Bernards @ 1993-12-07  7:37 UTC (permalink / raw)



|> 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.
|> 
|> Regards,
|> 
|> --
|> Eric CASSETTE - Centre Interuniversitaire de Traitement de l'Information (CITI)
|> Batiment M4 - Universite des Sciences et Technologies de Lille
|> 59655 Villeneuve d'Ascq Cedex - France
|> Tel: (33) 20 43 40 31, Fax: (33) 20 43 66 25
|> Email: Eric.Cassette@univ-lille1.fr


you're right,

We discovered that 2 months agoo and after some tough discussions with DEC NL
they admit that this is indeed a kernel bug.

It's not sure if it will be fixed in 2.0

It appear that the accounting datastructures are used in the wrong way

Cheers
-- 
Marcel Bernards, UNIX & Net sysadm Netherlands Energy Research Foundation ECN
(and SURFnet IC/ICP), Phone: (+31 /0)2246 4579 Fax: (+31 /0)2246 1864
E-Mail: Bernards@ECN.NL, SnailMail: P.O. Box 1, 1755 ZG Petten 
SCREAMNet : AAAAAARGHH!HUH?? : Disclaimer: "The AntiChrist is the Computer !" 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Accounting on DEC-OSF/1
  1993-12-06 17:16 Accounting on DEC-OSF/1 Eric Cassette
  1993-12-06 22:41 ` Jeff Carter
  1993-12-07  7:37 ` Marcel Bernards
@ 1993-12-07 12:25 ` Wolfgang Zweimueller
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Zweimueller @ 1993-12-07 12:25 UTC (permalink / raw)


Eric Cassette (cassette@omega.univ-lille1.fr) wrote:
: 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...)

stuff deleted...

: 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.

: Regards,

We have the same problem! Is there any work on this bug? Please let me know!

Regards,
+------------------------------------+----------------------------------------+
|Wolfgang Zweimueller                |   Student of Computer Science          |
|Muhrgasse 9                         |   at the University of Salzburg        |
|A-5020 SALZBURG, AUSTRIA            |                                        |
+------------------------------------+----------------------------------------+
|E-Mail: wzwei@cosy.sbg.ac.at        |                                        |
|Phone: (0043)662-457583             |                                        |
+------------------------------------+----------------------------------------+


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Accounting on DEC-OSF/1
  1993-12-07  7:37 ` Marcel Bernards
@ 1993-12-10 10:40   ` Wolfgang Zweimueller
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Zweimueller @ 1993-12-10 10:40 UTC (permalink / raw)


Marcel Bernards (bernards@ecnsun.ecn.nl) wrote:

: |> 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...)
: |> 

: you're right,

: We discovered that 2 months agoo and after some tough discussions with DEC NL
: they admit that this is indeed a kernel bug.

: It's not sure if it will be fixed in 2.0

: It appear that the accounting datastructures are used in the wrong way

--
We have the same problem :-(

I talked to a person at DEC(Vienna) and she said that this will be fixed
in V2.0 (this release will come out in January 1994). 
I got one example how this will look in this release. a.out is the process
which calls find:

ACCOUNTING RECORDS FROM:  Tue Nov 30 15:31:52 1993 EST
COMMAND                      START    END          REAL      CPU   (SECS)
NAME       USER     TTYNAME  TIME     TIME       (SECS)      SYS     USER
a.out      gerson   ttyp3    15:32:38 15:32:55    17.56     0.02     0.00
find       gerson   ttyp3    15:32:38 15:32:55    17.52     3.94     0.44
...

Hope this helps, Wolfgang.

+------------------------------------+----------------------------------------+
|Wolfgang Zweimueller                |   Student of Computer Science          |
|Muhrgasse 9                         |   at the University of Salzburg        |
|A-5020 SALZBURG, AUSTRIA            |                                        |
+------------------------------------+----------------------------------------+
|E-Mail: wzwei@cosy.sbg.ac.at        |                                        |
|Phone: (0043)662-457583             |                                        |
+------------------------------------+----------------------------------------+


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1993-12-10 10:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-06 17:16 Accounting on DEC-OSF/1 Eric Cassette
1993-12-06 22:41 ` Jeff Carter
1993-12-07  7:37 ` Marcel Bernards
1993-12-10 10:40   ` Wolfgang Zweimueller
1993-12-07 12:25 ` Wolfgang Zweimueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox