From: Mike Fedyk <mfedyk@matchmail.com>
To: David Wagner <daw@mozart.cs.berkeley.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux Kernel Patch; setpriority
Date: Thu, 28 Mar 2002 16:24:34 -0800 [thread overview]
Message-ID: <20020329002434.GE8627@matchmail.com> (raw)
In-Reply-To: <3CA232A1.7040702@cisco.com> <a7td19$em8$1@abraham.cs.berkeley.edu>
On Wed, Mar 27, 2002 at 09:19:37PM +0000, David Wagner wrote:
> 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
> Am I overlooking something?
Yes. (I didn't look at the patch itself) but, it should allow you to change
the *nice* value of the process. It doesn't allow you to change the actual
priority of the process/thread. The scheduler itself takes into account the
nice value and interactiveness (ingo's new scheduler at least...).
One thing to thing about though, is that maybe the administrator set the
user to nice value 5 and this would allow the user to get back down the the
default of 0.
One thing you could do in that case would be to set the *other* processes to
a higher priority...
next prev parent reply other threads:[~2002-03-29 0:23 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
2002-03-29 0:24 ` Mike Fedyk [this message]
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=20020329002434.GE8627@matchmail.com \
--to=mfedyk@matchmail.com \
--cc=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