From: Steven Smith <sos22@cam.ac.uk>
To: linux-newbie@vger.kernel.org
Subject: Re: process priority at 25
Date: Sun, 19 May 2002 17:23:30 +0100 [thread overview]
Message-ID: <20020519162330.GA3150@cam.ac.uk> (raw)
In-Reply-To: <20020519142943.GA9998@prester>
[-- Attachment #1: Type: text/plain, Size: 896 bytes --]
> I alway thought process priorities range from -20 to 19 (also according to
> "man nice"). But under kernel 2.5.16 I run top and process is display with
> priority 25..
A process's nice value is not the same thing as its priority. niceness
is used in the calculation of priority, but they're not bound together.
In particular, a process's priority is liable to become numerically
greater (-> lower priority) if it makes heavy use of the processor
(this is supposed to stop something like ``while (1) ; '' bringing
down the system), while a process which makes heavy use of the disk
is likely to get slightly higher priority (because as soon as it hits
the disk, it blocks, and something else can run).
Under 2.4 kernels, priority is constrained between 0 and 20 (for non-realtime
processes), but there's no reason why the same thing should apply to 2.5
kernels.
Steven Smith,
sos22@cam.ac.uk.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2002-05-19 16:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-19 14:29 process priority at 25 Axel H. Siebenwirth
2002-05-19 15:40 ` Richard Adams
2002-05-19 19:17 ` Axel H. Siebenwirth
2002-05-19 19:44 ` Richard Adams
2002-05-19 22:29 ` Tom Beer
2002-05-20 9:33 ` Richard Adams
2002-05-20 14:46 ` Axel H. Siebenwirth
2002-05-19 16:23 ` Steven Smith [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020519162330.GA3150@cam.ac.uk \
--to=sos22@cam.ac.uk \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox