LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   priocntl, nice and renice (https://www.linuxquestions.org/questions/solaris-opensolaris-20/priocntl-nice-and-renice-453151/)

linuxtesting2 06-09-2006 07:43 AM

priocntl, nice and renice
 
Hi,

Solaris 10
x86

Im playing around with priority commands and have some questions :)


Is it standard -20 to 20 in priority for solaris 10, if so is there anyway to dobbelcheck this ?

I dont see the connection with the following example

root@pimpking {/] #ps -elf | grep dtwm
0 S root 531 525 0 40 20 d407c010 2233 d4f71932 08:09:53 ? 0:01 dtwm
root@pimpking {/] #priocntl -s -p -5 -i pid 531
root@pimpking {/] #ps -elf | grep dtwm
0 S root 531 525 0 40 21 d407c010 2233 d4f71932 08:09:53 ? 0:01 dtwm
root@pimpking {/] #priocntl -s -p -10 -i pid 531
root@pimpking {/] #ps -elf | grep dtwm
0 S root 531 525 0 40 23 d407c010 2233 d4f71932 08:09:53 ? 0:01 dtwm

Here i can see that the standard priority is 40/20, but i thought when i was setting -5 it would change to -5 and not to +21 :) And the same goes for nice commando.....and good explanation for a newbi :)


Ole

jlliagre 06-09-2006 11:53 AM

Look for "Scheduling and Schedulers" in the http://www.opensolaris.org/os/articl...eebsd_kernels/ page for a good start.

Also, don't confuse the nice value of a process, which simply give a hint to the scheduler, and its actual priority, which commonly vary with the time.

linuxtesting2 06-09-2006 02:39 PM

ok thanks, ill check that link out...


All times are GMT -5. The time now is 01:05 AM.