Page 1 of 1

Setting user priorities

Posted: Tue Jul 07, 2009 4:07 am
by sjordery
Hi folks,

Is it possible to set up a Linux installation to have specific priorities for individual users. For example, all jobs submitted by dsadm will have higher priority by default than those submitted by fbloggs?

I know about nice/renice, but those rely on entering manual commands (and on knowing PIDs) - what I was after was something a bit more automated..

Many thanks,
S

Posted: Tue Jul 07, 2009 4:14 am
by ArndW
What you can do depends upon your version of UNIX. On some LINUX systems you can use the method described at nice & renice. I would think that for other UNIX implementations one could find appropriate scripts that would do this, at worst a simple script running with admin rights could do this as well.

Posted: Tue Jul 07, 2009 4:16 pm
by ray.wurlod
Within TCL the CHAP (CHAnge Priority) command can be used to lower priority. Usage is CHAP DOWN.

Or you could put a renice command into dsenv controlled by a test on user ID. Process ID and user ID are available from shell veriables $$ and $USER respectively.

Posted: Mon Jul 13, 2009 6:29 am
by sjordery
Thanks both for the pointers.

Regards,
S