🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.large
Article #9

Re: Can project based accounting be done on Unix?

#9
From: Jean-Francois Lamy
Date: Thu, 30 Jul 1992 02:10
31 lines
2293 bytes
Control Data has both project accounting and job accounting in EP/IX.  I am
awaiting copies of their software for evaluation.  They seem to have used some
kernel assistance, and generate additional files beyond standard pacct.

Since we don't have source, what has been done here is to have a command
called setacct that writes a record to the ptmp file that contains the user
name, tty and account name (project name in your case).  Noting the tty allows
a program reading the ptmp file to tally related accounting records until the
same tty becomes used by another user or another account is used.  This gives
a sort-of-kind-of combination between job-based and project based accounting
for cpu time.

For files, faced with similar concerns about not mixing up access rights
(groups) with accounting (project names/account names), we ended up charging
file names based on their naming.  I.e. my home directory is /u/_rec07/j.lamy
and is charged to account rec07; if I create a subdirectory called _blah the
spaced used under blah would be charged to account blah (assuming  i have
the right to bill to that account; the leftmost authorised account is used).

Neither of these techniques require kernel hacks.  Using ttys for identifying
sessions is crude; it has forced us to hack our batch system to run batch jobs
under a controlling tty (gah).  The technique has been tested on MIPS RISC/os
4.x and AIX.

In any case, I strongly feel this is something best done in the kernel, and
provided by the vendor.  Kudos to Control Data for at least recognising the
need...

Jean-Francois Lamy                                        |   lamy@sobeco.com
Computer Networks and Systems				  |   lamy@sobeco.ca
Sobeco Ernst & Young, Montreal, Canada H2Z 1Y7            |   uunet!sobeco!lamy
Technical Details
Message-ID: <1992Jul30.021054.16691@sobeco.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sobeco!lamy
References: <5453@mccuts.uts.mcc.ac.uk> <Bs6205.22L@watserv1.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Newsgroups: comp.unix.large
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!usc!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!sobeco!lamy
From: lamy@sobeco.com (Jean-Francois Lamy)
Subject: Re: Can project based accounting be done on Unix?
Organization: Sobeco Ernst & Young
Date: Thu, 30 Jul 92 02:10:54 GMT
Message-ID: <1992Jul30.021054.16691@sobeco.com>
References: <5453@mccuts.uts.mcc.ac.uk> <Bs6205.22L@watserv1.uwaterloo.ca>
Sender: lamy@sobeco.com (j.lamy)
Lines: 31