From: Jeff Denham <jdenham@brighttiger.com>
Subject: Re: Thread priorities
Date: 1999/03/16 [thread overview]
Message-ID: <36EE6B95.3958BA74@brighttiger.com> (raw)
In-Reply-To: 7cl5sf$v8f$1@news7.svr.pol.co.uk
Rob Kirkbride wrote:
> I've got a copy of the Guide to Realtime Scheduling, and I do understand the
> distinction between POSIX priorities and MACH priorities.
>
> I am more interested in the algorithm which the scheduler uses for adjusting
> the priorities. I have used ps -o SCHED as well as the kernel debugger for
> determining thread priorities but this does not reveal why a threads
> priority may have been changed.
>
> ps and the kernel debugger still seem to show busy threads have increased
> their priority. I am wondering if maybe a thread could be blocked on a
> device (which I think can result in its priority being increased) and then
> goes busy. If the scheduler hasn't got around to reducing its priority back
> again will it still have a raised priority?
Ah. Well, the algorithms are mostly traditional BSD-style
weighted decay blah, blah, blah. There's some proprietary
twists thrown in to smooth out the scheduler's timeshare
behaviors. I don't think you'll be able to find out much more
without sources.
I think what might be seeing is the 2-level priority boost given
to threads blocking in the kernel. Whether this happens or
not is controlled by a kernel variable called, IIRC, give_boost.
I believe you can change it via sysconfigtab, but don't remember what
fields to add and no longer have access to a DU machine. Do
an nm or strings on vmunix and grep for boost for a start.
BTW, that Digital Tech Journal article is at
http://www.digital.com/DTJF03/DTJF03SC.TXT
FWIW...
prev parent reply other threads:[~1999-03-16 5:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-12 5:00 Thread priorities Rob
1999-03-12 5:00 ` Jeff Denham
1999-03-16 5:00 ` Rob Kirkbride
1999-03-16 5:00 ` Jeff Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox