LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-09-2006, 07:43 AM   #1
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Rep: Reputation: 30
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
 
Old 06-09-2006, 11:53 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.

Last edited by jlliagre; 06-09-2006 at 11:56 AM.
 
Old 06-09-2006, 02:39 PM   #3
linuxtesting2
Member
 
Registered: Mar 2004
Location: Norway
Distribution: Freebsd, Fedora, Redhat, Solaris 10
Posts: 169

Original Poster
Rep: Reputation: 30
ok thanks, ill check that link out...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nice / renice problem g-string 3 Linux - Software 2 09-16-2005 04:53 PM
nice / renice question Grobbendonk Linux - Newbie 5 08-13-2005 04:05 PM
nice/renice crashes programs make Mandriva 1 04-20-2005 03:03 AM
nice and renice (question) podollb Linux - Software 7 10-19-2004 12:10 PM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 11:59 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 02:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration