Re: SCHED_ULE & niceness / rtprio

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Astrodog <astrodog@...>
Cc: Jeff Roberson <jroberson@...>, <freebsd-current@...>
Date: Wednesday, January 23, 2008 - 2:32 pm

On Mon, Jan 21, 2008 at 11:53:49PM +0800, Astrodog wrote:

The player stutters when I assign a realtime or idle priority to
it, or when I decrease its niceness, e.g., to -10 or less.

As for the priority question: AFAIK, there are 3 run queue groups
in the kernel, for realtime, normal, and idle priority processes
willing to run.  Normal priority processes can run only if the real
time queue group is empty, and idle priority processes run only if
both the real time and normal queue groups are empty.  My problem
manifests itself if the process is not on the normal queue group.
At the same time, the numeric value of its idle or realtime priority
doesn't seem to matter.  (Note that realtime priority of 16 and
idle priority of 16 are totally different.)  Therefore I cannot
tell whether I increase or decrease its priority.  I just move it
to a different queue group.  Of course, it can be said roughly that
idprio(1) decreases process' priority and rtprio(1) increases it,
but it isn't technically correct because the term `priority' already
refers to the preference of a process within its current queue group.

-- 
Yar
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SCHED_ULE &amp; niceness / rtprio, Yar Tikhiy, (Tue Nov 20, 10:14 am)
Re: SCHED_ULE &amp; niceness / rtprio, Kris Kennaway, (Tue Nov 20, 3:23 pm)
Re: SCHED_ULE &amp; niceness / rtprio, Jeff Roberson, (Wed Jan 2, 12:56 am)
Re: SCHED_ULE &amp; niceness / rtprio, Yar Tikhiy, (Mon Jan 21, 8:24 am)
Re: SCHED_ULE &amp; niceness / rtprio, Andrew Reilly, (Mon Jan 21, 5:27 pm)
Re: SCHED_ULE &amp; niceness / rtprio, Yar Tikhiy, (Wed Jan 23, 2:34 pm)
Re: SCHED_ULE &amp; niceness / rtprio, Astrodog, (Mon Jan 21, 11:53 am)
Re: SCHED_ULE & niceness / rtprio, Yar Tikhiy, (Wed Jan 23, 2:32 pm)
Re: SCHED_ULE &amp; niceness / rtprio, Jeff Roberson, (Tue Nov 20, 8:08 pm)
Re: SCHED_ULE &amp; niceness / rtprio, Michal Varga, (Wed Nov 21, 1:21 am)
Re: SCHED_ULE &amp; niceness / rtprio, 韓家標 Bill Hacker, (Wed Nov 21, 5:30 am)
Re: SCHED_ULE &amp; niceness / rtprio, David E. Thiel, (Tue Nov 20, 1:50 pm)