From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10650a,ad5311af1ae95293 X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,ad5311af1ae95293 X-Google-Attributes: gidfee84,public From: Jeff Denham Subject: Re: Thread priorities Date: 1999/03/16 Message-ID: <36EE6B95.3958BA74@brighttiger.com>#1/1 X-Deja-AN: 455632284 Content-Transfer-Encoding: 7bit References: <7caki3$fv8$1@news5.svr.pol.co.uk> <36E92C41.8A412DBD@brighttiger.com> <7cl5sf$v8f$1@news7.svr.pol.co.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@digex.net X-Trace: dca1-nnrp1.news.digex.net 921594849 207.86.119.34 (Tue, 16 Mar 1999 09:34:09 EDT) Organization: Bright Tiger Technologies MIME-Version: 1.0 NNTP-Posting-Date: Tue, 16 Mar 1999 09:34:09 EDT Newsgroups: comp.unix.internals,comp.unix.osf.osf1 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...