root@yale.UUCP (Root Of All Evil) (07/20/89)
I have (sole) root access on a Sun 4/110, OS 4.0.1 . Other people sometimes use my machine, but when i want to run a CPU or i/o intensive program while other people are doing stuff, i want to be able to claim lots of time. Furthermore, I want to be able to do little things while other people are running their intensive programs. It is inconvenient to go find out the PID for a program, log in as su, and renice it. I would like to be able to renice *all* processses from user TrivialPerson to about 19 or 20, and make mine all about -19 or -20. Can this be done? How? Thanks, Tony Zador
mikel@teraida.UUCP (Mikel Lechner) (07/26/89)
root@yale.UUCP (Root Of All Evil) writes: >I would like to be able to renice *all* processses from >user TrivialPerson to about 19 or 20, and make mine all >about -19 or -20. >Can this be done? >How? Yes. Try "renice +20 -u user". This changes for all processes for the specified user. Also, since my machine is sometimes used for compilations accross the network, I sometime "renice +20 <pid of inetd>". This causes "rsh" commands to run at the lower priority. However, "rlogin" resets its priority back to 0 when someone logs in over the network, so this wont work for lowering priority of remote logins. Mikel Lechner UUCP: ...!{decwrl,sun}!teraida!mikel Teradyne EDA, Inc. Phone: (408) 980-5200 5155 Old Ironsides Drive Santa Clara, Ca 95054