Hello again managers,
Since I posted my summary I got new answers which are very interesting
so I am posting a new summary with them.
Many thanks to:
Mandell Degerness <MDEGERNESS_at_galaxy.gov.bc.ca>
Martin Li <martin_at_maths.unsw.EDU.AU>
*****************************************************
Martin Li pointed out that my summary about my first question was not
totally correct. I said:
> >
> >	1) There is a way to limit the CPU time used per command (using
> >	shell built-in commands), but to avoid users running jobs 
> >	interactively, is there any command that limits the maximum CPU
> >	time used per login session?
> 
> In short: NO. DU does not implement job resource quotas only process quotas.
> But one can try to encourage people to use the queueing system limiting the
> command-cpu time, and using renice-all 
> (ftp://ftp.ce.utexas.edu/ftp/unix/reince/reince_all). I will have a look at
> it and implement it.
> 
It seems that having C2 security enabled you CAN:
> From: Martin Li <martin_at_maths.unsw.EDU.AU>:
> This is not true in DU4 with C2 security.  
> What Nick Hill said was quite correct.
> However, you can also enforce process limit through dxaccounts in
> DU4.  
> 
> You can only set soft limit in the global startup files, but you can set hard
> limit through dxaccounts.
> 
> Martin Li                       <Martin.Li_at_unsw.edu.au>
> School of Mathematics           Tel: +61 2 9385 3685
> UNSW, Australia			Fax: +61 2 9385 1071
*************************************************************
Mandell Degerness helped me a lot with the accounting question:
I asked:
> Does anyone know if it is right that all the pacctn
> created during the day disappear after running runacct??
> 
Yes, it is correct, runacct renames the files to Spacct.date proccesses the
information in them and then cleans the disk deleting them.
> >	
> >	3) Is there any accounting command that allowes us to learn about
> >	the total CPU time used by any user?
> >	
> 
> I have had no answers about this. So I am still at the search and I would
> be very glad to hear of such command or script or freeware program!
> 
About this question Mandell said:
> From: Mandell Degerness of ITSD 387-5877 <MDEGERNESS_at_galaxy.gov.bc.ca>
>     The runacct process first moves all of the pacctn files to 
>     Spacctn.MMDD.  These are removed late in the runacct process.
>     
>     The two major changes I have made to our version of runacct are:
>     
>     1) commented out the line removing the Spacct files (approx line 
>     400).  Note: you will need some other meathod of cleaning up the 
>     old files before a year is up or runacct will fail when you come 
>     around to the same MMDD.
>     
>     2) added processing of the Spacct files (I do an /usr/sbin/sa -m 
>     <Spacct file> >> <daily summary file>) inserted during the 
>     individual processing of the Spacct files (~line 270).
>     
>     I later process the <daily summary file> summing up the amount of 
>     CPU used by each user.
>     
>     Regards,
>     Mandell Degerness
> 
I have followed his indication and get now a readable file with the
cpu time consumed by each user.
Thanks a lot for your help
Monica
Received on Mon Mar 03 1997 - 16:30:28 NZDT