From: varg@theor.jinr.ru (Sheplyakov Alexei)
To: Andi Kleen <andi@firstfloor.org>
Cc: dragoran <drago01@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: allow non root users to set io priority "idle" ?
Date: Wed, 8 Aug 2007 15:49:49 +0400 [thread overview]
Message-ID: <20070808114949.GA8465@theor.jinr.ru> (raw)
In-Reply-To: <20070808102056.GC12861@one.firstfloor.org>
[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]
On Wed, Aug 08, 2007 at 12:20:56PM +0200, Andi Kleen wrote:
> > I don't quite understand. There are a lot of other ways to starve such
> > high-priority process:
> > 1. renice the low-priority process
>
> That requires user action.
As well as lowering IO priority.
> > 2. send it a signal
> > 3. ptrace it
>
> Only root can do these.
The original question (unless I'm missing something) was "why _the owner_
of a process is not enabled to lower its IO priority?" The owner of the
process certainly can send signal and ptrace it.
> Low priority as allowed by renice is ok -- the resource holder will
> run eventually and the system make progress.
System (whatever that means) should not depend on random users' processes.
> e.g. if you google a bit you can find a famous story where the NASA
> had to do that remotely to solve a PI problem on one of the Mars rovers.
Certainly there are a scenarios when lowering priority (CPU or IO) have
negative effect. "If it hurts -- then don't do it". However, it is not
kernels job to decide if the user is right. If the user asks to do
something "stupid" (run his process with idle IO priority, whipe out his
home directory, you name it) -- just do that (as long as the action is
permitted by the security policy).
P.S.
Please CC me, I'm not subscribed.
Best regards,
Alexei
--
All science is either physics or stamp collecting.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 827 bytes --]
next prev parent reply other threads:[~2007-08-08 11:50 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 9:45 dragoran
2007-08-06 11:11 ` Andi Kleen
2007-08-06 10:26 ` dragoran
2007-08-06 10:35 ` Andi Kleen
2007-08-06 11:06 ` dragoran
2007-08-07 20:44 ` Jens Axboe
2007-08-07 21:35 ` dragoran
2007-08-07 22:18 ` dragoran
2007-08-08 0:04 ` Andi Kleen
2007-08-08 5:06 ` Jens Axboe
2007-08-08 9:37 ` dragoran
2007-08-08 2:26 ` Lee Revell
2007-08-08 10:17 ` Andi Kleen
2007-08-08 9:51 ` Sheplyakov Alexei
2007-08-08 10:20 ` Andi Kleen
2007-08-08 11:49 ` Sheplyakov Alexei [this message]
2007-08-08 11:55 ` Andi Kleen
2007-08-08 10:52 ` Jens Axboe
[not found] <8P7nW-2Jc-7@gated-at.bofh.it>
[not found] ` <8P7QZ-3AR-17@gated-at.bofh.it>
[not found] ` <8P80L-3N5-25@gated-at.bofh.it>
[not found] ` <8P8ak-3Yr-9@gated-at.bofh.it>
2007-08-07 18:21 ` Bodo Eggert
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=20070808114949.GA8465@theor.jinr.ru \
--to=varg@theor.jinr.ru \
--cc=andi@firstfloor.org \
--cc=drago01@gmail.com \
--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
all inboxes | Powered by JetHome®