Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2003 09:32:12 +1100
From:      Peter Jeremy <jeremyp@c18609.belrs1.nsw.optusnet.com.au>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        "Daniel C. Sobral" <dcs@tcoip.com.br>, Mike Silbersack <silby@silby.com>, Garance A Drosihn <drosih@rpi.edu>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Juli Mallett <jmallett@FreeBSD.ORG>, Eivind Eklund <eivind@FreeBSD.ORG>, David Schultz <das@FreeBSD.ORG>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/vm ... SIGDANGER
Message-ID:  <20030314223211.GA3897@cirb503493.alcatel.com.au>
In-Reply-To: <20030314204454.GI567@garage.freebsd.pl>
References:  <8023.1047662161@critter.freebsd.dk> <p05200f2bba97e5a92150@[128.113.24.47]> <20030314140414.V4480@odysseus.silby.com> <3E723A8A.8070100@tcoip.com.br> <20030314204454.GI567@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
[This whole thread is getting way off-topic for the cvs lists.
 It belongs in -arch or -hackers]

On Fri, Mar 14, 2003 at 09:44:54PM +0100, Pawel Jakub Dawidek wrote:
>Why not choose process to kill by their priority?
>
>If we got some important processes even without uid=0 we could renice them
>to value less than 0.

Because the process priority is a hint to the scheduler regarding CPU
allocation.  It has nothing at all to do with how important a process
is.  It's fairly common to renice a CPU-bound process to a fairly
low priority so it doesn't interfere with interactive response - that
doesn't mean the process isn't important.

Any solution must be able to handle a big, important, long-running CPU
bound process.  Your "solution" means that this process would need to
be given a negative priority - which would make the whole system
unusable for anything else since that process would then hog the CPU
(instead of sharing it).

Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030314223211.GA3897>