public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Padraig Brady <Padraig@AnteFacto.com>
To: Xuan Baldauf <xuan--lkml@baldauf.org>, linux-kernel@vger.kernel.org
Subject: Re: Relative CPU time limit
Date: Wed, 17 Jan 2001 19:09:22 +0000	[thread overview]
Message-ID: <3A65EDE2.4030204@AnteFacto.com> (raw)
In-Reply-To: <3A65E573.D004302B@baldauf.org>

man setrlimit (or ulimit)
This is per user though, and only related
to user accounting really as you can only
set a limit on the number of CPU seconds
used.

I would also really like the ability
to throttle any processes back to a certain
% of CPU, and extending this to throttling
users to certain CPU limits which would be
useful also.

Obviously you would set it up so that all
available CPU is used, for e.g. if you
had 2 CPU bound processes running and you
allocated 1 to 40% and the other 60%, when
either terminates the other should increase
to the available CPU (I can't see any reason
why you would forceably limit a process' CPU
usage if there was free CPU).

Could the current scheduling logic that uses
the nice value of a process, do this, and all
I would have to do is have a % specifying wrapper
around this?

Any other ideas or will I get hacking..

Padraig.

Xuan Baldauf wrote:

> Hello, (maybe a FAQ, but could not find this question)
> 
> is it possible with linux2.4 to limit the relative CPU time
> per process or per UID? I saw something like this about 5
> years ago on solaris machines, but I have not access to
> solaris machines anymore. I do not mean limiting the
> absolute CPU time (e.g. "the process should run 20minutes at
> maximum and shall be killed after that time), but the
> relative CPU time (e.g. "apache should consume at most 80%
> of my servers CPU time and shall be throttled if it was to
> consume more").
> 
> Thanx,
> Xuân. :-)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2001-01-17 19:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-17 18:33 Relative CPU time limit Xuan Baldauf
2001-01-17 19:09 ` Padraig Brady [this message]
2001-01-17 20:39   ` Xuan Baldauf
2001-01-18  1:29 ` Rik van Riel

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=3A65EDE2.4030204@AnteFacto.com \
    --to=padraig@antefacto.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=xuan--lkml@baldauf.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