home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / large / 264 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.6 KB  |  35 lines

  1. Newsgroups: comp.unix.large
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!merlin!cerberus!cerberus!Sm
  3. From: Sm@cerberus.bhpese.oz.au (Scott Merrilees)
  4. Subject: Re: Can project based accounting be done on Unix?
  5. Organization: BHP, Newcastle, Australia
  6. Date: Fri, 31 Jul 1992 02:29:41 GMT
  7. Message-ID: <1992Jul31.022941.16529@cerberus.bhpese.oz.au>
  8. References: <5453@mccuts.uts.mcc.ac.uk> <Bs6205.22L@watserv1.uwaterloo.ca>
  9. Sender: news@cerberus.bhpese.oz.au (News System)
  10. Lines: 23
  11.  
  12. lindsay@watnow.waterloo.edu (Lindsay Patten) writes:
  13. >Can you not just record the time and project name when they change
  14. >projects and then go through the process accounting assigning the
  15. >cost of the process to the project then in effect?
  16.  
  17. How do you then generally distinguish between one user running multiple
  18. sessions at the same time detached from a tty?  On the same tty?
  19. Seems like you need some way of associating parent and child processes.
  20.  
  21. The easiest way may be use utilise unused bits in the ac_flag field of the
  22. accounting record.  You may need to write a syscall to do this, and you may
  23. also need to revector the fork() system call to be able to propogate this
  24. information to subprocesses.
  25.  
  26. Looking at risc/os, there doesn't seem to be many spare bits in ac_flag.
  27. Maybe exit can be revectored and extra info written somewhere ? Off course,
  28. storing this extra info before exit should also be interesting.
  29.  
  30. Also, how do you charge for the parent shell ? time based split, exec on
  31. new project ?
  32. -- 
  33. Scott Merrilees, BHP Information Technology, Newcastle, Australia
  34. Internet: Sm@bhpese.oz.au   Phone: +61 49 40 2132   Fax: ... 2165
  35.