Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) |
Notice: | Welcome to the Digital UNIX Conference |
Moderator: | SMURF::DENHAM |
Created: | Thu Mar 16 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 10068 |
Total number of notes: | 35879 |
If I say: mantis.pa.dec.com> nice -20 make biu_barb.o cxx -O2 -g3 -c -o biu_barb.o biu_barb.cxx then in another window: mantis.pa.dec.com> ps ux USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND pdonahue 6958 72.0 8.5 17.3M 11M ttyp1 R + 13:18:53 0:03.33 gemc_cxx pdonahue 6945 1.0 0.5 2.23M 600K ttyp1 S + 13:18:52 0:00.14 make biu_ Why isn't the "N" listed under the process status column in either of those processes? Also, when other compute-intensive processes are running the "nice -20" should not take any time away from them. Instead, when I "nice -20 make" the other (previously running) process goes from almost 100% to about 50% and the cxx process that make forks takes the other 50% (so it's not just an error in the display of "ps"). I don't even see how this is possible since make is not installed with setuid root (so the make program can't elevate its own priority after I run it). Any ideas? Thanks, -Paul
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
9287.1 | SMURF::DENHAM | Digital UNIX Kernel | Tue Mar 25 1997 17:20 | 5 | |
Try nice +20 make biu_barb.o Bigger nice value == lower priority. | |||||
9287.2 | Ughh - /usr/bin/nice vs. tcsh's nice | PADC::PDONAHUE | Paul Donahue | Wed Mar 26 1997 21:06 | 11 |
Now I see that I was using the tcsh's built-in nice command instead of /usr/bin/nice. That would explain why "nice -n 20" doesn't work and also why "nice -20" works in my crontab (which uses the Bourne shell and, therefore, runs /usr/bin/nice which takes "-20" as meaning priority +20). Time for "alias nice /usr/bin/nice" Thanks, -Paul |