Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site sdcrdcf.UUCP Path: utzoo!linus!philabs!seismo!hao!hplabs!sdcrdcf!glenn From: glenn@sdcrdcf.UUCP (Glenn C. Scott) Newsgroups: net.unix-wizards Subject: Re: Wanted: system accounting program Message-ID: <539@sdcrdcf.UUCP> Date: Thu, 22-Sep-83 15:28:23 EDT Article-I.D.: sdcrdcf.539 Posted: Thu Sep 22 15:28:23 1983 Date-Received: Mon, 26-Sep-83 04:01:03 EDT References: <11786@sri-arpa.UUCP> Reply-To: glenn@sdcrdcf.UUCP (Glenn C. Scott) Organization: System Development Corporation, Santa Monica Lines: 29 I am in the finishing stages of a set of programs, etc. to provide a reasonable accounting system for 4.1bsd. It involves small changes to syscall() in trap.c, an addition of two system calls ( You get a nice way to implement locally added system calls as a bonus ). I knew, when I started, that there were scores of accounting methods being used on UNIX but none that I knew about were general enough. This has solved the problem for us. Accounting is done on a per-process basis for CPU usage, average memory and block I/O. Static disk storage and login time are done on a daily and per-session basis respectively. Per-process accounting and login time also have a limited notion of prime-time and non-prime-time. A file is kept containing valid accounts for each user. The user selects, at login time, what account he wishes to charge his session to. There are commands which allow a user to execute a command using a different account than he is currently using. If anyone is interested please send me mail. Glenn C. Scott (glenn@sdcrdcf) System Development Corporation Research and Development Computer Facility MS72-02 Santa Monica, California. 90406 213-820-4111 X5610