From: daw@mozart.cs.berkeley.edu (David Wagner)
To: linux-kernel@vger.kernel.org
Subject: Re: Linux Kernel Patch; setpriority
Date: 27 Mar 2002 21:19:37 GMT [thread overview]
Message-ID: <a7td19$em8$1@abraham.cs.berkeley.edu> (raw)
In-Reply-To: <3CA232A1.7040702@cisco.com>
What's the argument why this change to the semantics of setpriority()
is a reasonable one to make?
Previously, non-root users [*] could not decrement their current priority
value (i.e., make their own processes run faster). Now you're allowing
processes to decrement the current priority, so long as they stay within
the range 0..19. But what if the priority had been increased by the
scheduler because this process was running a long time and taking up
a lot of CPU time? The proposed change to the setpriority() interface
allows such a process to "cheat" and get more CPU time than it ought to
be able to receive.
It seems to me that the scheduler should be able to renice a CPU hog
to make sure that interactive processes receive good performance, and
your proposed change circumvents this. It's one thing for a process
to decrement its priority if this process was the one who voluntarily
incremented it earlier; it's another thing if the priority value was
incremented forcibly by the OS. If this is correct, the proposed change
doesn't look so good.
Am I overlooking something?
next prev parent reply other threads:[~2002-03-27 21:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-27 20:59 Linux Kernel Patch; setpriority Stephen Baker
2002-03-27 21:19 ` David Wagner [this message]
2002-03-29 0:24 ` Mike Fedyk
2002-03-27 22:32 ` Chris Wright
2002-03-28 21:19 ` Bill Davidsen
2002-03-28 22:20 ` Stephen Baker
2002-03-29 0:39 ` Bill Davidsen
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='a7td19$em8$1@abraham.cs.berkeley.edu' \
--to=daw@mozart.cs.berkeley.edu \
--cc=linux-kernel@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