public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Limiting max cpu usage per user (old Conectiva patch)
@ 2002-11-27 10:11 Frederik Dannemare
  2002-11-27 12:08 ` Rik van Riel
  2002-11-27 20:09 ` Martin Waitz
  0 siblings, 2 replies; 7+ messages in thread
From: Frederik Dannemare @ 2002-11-27 10:11 UTC (permalink / raw)
  To: linux-kernel

Hi all,

do we have an effective way to limit max cpu usage per user? I haven't been 
able to find much useful info except for an old thread on lkml, where Rik 
van Riel mentions[1] a 2.2 kernel patch by Conectiva.

Anybody knows if this patch (or similar functionality) been ported to 2.4 
(or 2.5)?

[1]http://www.uwsg.iu.edu/hypermail/linux/kernel/0108.2/0362.html

--
Frederik



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
  2002-11-27 10:11 Limiting max cpu usage per user (old Conectiva patch) Frederik Dannemare
@ 2002-11-27 12:08 ` Rik van Riel
  2002-11-27 13:52   ` hugang
  2002-11-27 15:19   ` Frederik Dannemare
  2002-11-27 20:09 ` Martin Waitz
  1 sibling, 2 replies; 7+ messages in thread
From: Rik van Riel @ 2002-11-27 12:08 UTC (permalink / raw)
  To: Frederik Dannemare; +Cc: linux-kernel

On Wed, 27 Nov 2002, Frederik Dannemare wrote:

> do we have an effective way to limit max cpu usage per user? I haven't been
> able to find much useful info except for an old thread on lkml, where Rik
> van Riel mentions[1] a 2.2 kernel patch by Conectiva.
>
> Anybody knows if this patch (or similar functionality) been ported to 2.4
> (or 2.5)?

It's on my patches page:

	http://surriel.com/patches/

cheers,

Rik
-- 
Bravely reimplemented by the knights who say "NIH".
http://www.surriel.com/		http://guru.conectiva.com/
Current spamtrap:  <a href=mailto:"october@surriel.com">october@surriel.com</a>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
  2002-11-27 12:08 ` Rik van Riel
@ 2002-11-27 13:52   ` hugang
  2002-11-27 15:19   ` Frederik Dannemare
  1 sibling, 0 replies; 7+ messages in thread
From: hugang @ 2002-11-27 13:52 UTC (permalink / raw)
  To: Rik van Riel; +Cc: tux, linux-kernel

On Wed, 27 Nov 2002 10:08:56 -0200 (BRST)
Rik van Riel <riel@conectiva.com.br> wrote:

>  It's on my patches page:
> 
>  	http://surriel.com/patches/
> 
>  cheers,
The patch is works. Here is the test.
w.c
-------
#include <stdio.h>
main()
{
while(1);
}

-------
start 5 w as normal user..
start 5 w as root user.

Enabel the fairsched 
echo 1 > /proc/sys/kernel/fairsched
  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  976 root      20   0   248  248   204 R    13.1  0.0   0:28 w
  974 root      20   0   248  248   204 R    12.9  0.0   0:28 w
  975 root      20   0   248  248   204 R    12.9  0.0   0:28 w
  973 root      17   0   248  248   204 R    12.5  0.0   0:29 w
  972 root      14   0   248  248   204 R    11.9  0.0   0:30 w
  968 hugang    20   0   252  252   208 R     7.1  0.0   0:18 w
  970 hugang    20   0   252  252   208 R     7.1  0.0   0:17 w
  967 hugang    20   0   252  252   208 R     5.9  0.0   0:19 w
  969 hugang    20   0   252  252   208 R     5.9  0.0   0:17 w
  966 hugang    14   0   252  252   208 R     5.9  0.0   0:20 w

Disabel the fairsched
echo 0 > /proc/sys/kernel/fairsched
  969 hugang    16   0   252  252   208 R     9.7  0.0   0:20 w
  970 hugang    16   0   252  252   208 R     9.7  0.0   0:19 w
  966 hugang    16   0   252  252   208 R     9.5  0.0   0:23 w
  974 root      16   0   248  248   204 R     9.5  0.0   0:32 w
  968 hugang    16   0   252  252   208 R     9.5  0.0   0:20 w
  975 root      16   0   248  248   204 R     9.5  0.0   0:32 w
  976 root      16   0   248  248   204 R     9.5  0.0   0:32 w
  972 root      16   0   248  248   204 R     9.5  0.0   0:34 w
  967 hugang    16   0   252  252   208 R     9.1  0.0   0:21 w
  973 root      16   0   248  248   204 R     8.9  0.0   0:33 w

-- 
		- Hu Gang

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
  2002-11-27 12:08 ` Rik van Riel
  2002-11-27 13:52   ` hugang
@ 2002-11-27 15:19   ` Frederik Dannemare
  1 sibling, 0 replies; 7+ messages in thread
From: Frederik Dannemare @ 2002-11-27 15:19 UTC (permalink / raw)
  To: Rik van Riel; +Cc: linux-kernel

Rik van Riel wrote:
> On Wed, 27 Nov 2002, Frederik Dannemare wrote:
> 
>>do we have an effective way to limit max cpu usage per user? I haven't been
>>able to find much useful info except for an old thread on lkml, where Rik
>>van Riel mentions[1] a 2.2 kernel patch by Conectiva.
>>
>>Anybody knows if this patch (or similar functionality) been ported to 2.4
>>(or 2.5)?
> 
> It's on my patches page:
> 
> 	http://surriel.com/patches/
> 

Great. Many thanks. I'll go test it right away.

--
Frederik


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
  2002-11-27 10:11 Limiting max cpu usage per user (old Conectiva patch) Frederik Dannemare
  2002-11-27 12:08 ` Rik van Riel
@ 2002-11-27 20:09 ` Martin Waitz
  1 sibling, 0 replies; 7+ messages in thread
From: Martin Waitz @ 2002-11-27 20:09 UTC (permalink / raw)
  To: Frederik Dannemare; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]

hi :)

On Wed, Nov 27, 2002 at 11:11:50AM +0100, Frederik Dannemare wrote:
> do we have an effective way to limit max cpu usage per user?

i'm working on a resource container implementation for linux
for my diploma thesis.

resource container provide a hierarchical way to account and
limit resources.
this way not only per user limits can be achieved, but any
policy you can think of (per service, per client, ...)

the work is due january, but interested people could have
a look at the (undocumented for now ;) source earlier.

-- 
CU,		  / Friedrich-Alexander University Erlangen, Germany
Martin Waitz	//  [Tali on IRCnet]  [tali.home.pages.de] _________
______________/// - - - - - - - - - - - - - - - - - - - - ///
dies ist eine manuell generierte mail, sie beinhaltet    //
tippfehler und ist auch ohne grossbuchstaben gueltig.   /
			    -
Wer bereit ist, grundlegende Freiheiten aufzugeben, um sich 
kurzfristige Sicherheit zu verschaffen, der hat weder Freiheit 
noch Sicherheit verdient.
			Benjamin Franklin  (1706 - 1790)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
@ 2002-11-27 23:11 Marc-Christian Petersen
  2002-11-28 12:34 ` Frederik Dannemare
  0 siblings, 1 reply; 7+ messages in thread
From: Marc-Christian Petersen @ 2002-11-27 23:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: Frederik Dannemare

Hi Frederik,

I can offer you a really nice small patch from Karol Golab. Find it here:

- http://www.tls-technologies.com/CPU/cpu-intro.html

works great for me.

ciao, Marc

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Limiting max cpu usage per user (old Conectiva patch)
  2002-11-27 23:11 Marc-Christian Petersen
@ 2002-11-28 12:34 ` Frederik Dannemare
  0 siblings, 0 replies; 7+ messages in thread
From: Frederik Dannemare @ 2002-11-28 12:34 UTC (permalink / raw)
  To: Marc-Christian Petersen; +Cc: linux-kernel

Marc-Christian Petersen skrev:
> Hi Frederik,
> 
> I can offer you a really nice small patch from Karol Golab. Find it here:
> 
> - http://www.tls-technologies.com/CPU/cpu-intro.html
> 
> works great for me.

Thanks a lot. I'll check it out for sure.

--
Frederik



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-11-28 12:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-27 10:11 Limiting max cpu usage per user (old Conectiva patch) Frederik Dannemare
2002-11-27 12:08 ` Rik van Riel
2002-11-27 13:52   ` hugang
2002-11-27 15:19   ` Frederik Dannemare
2002-11-27 20:09 ` Martin Waitz
  -- strict thread matches above, loose matches on Subject: below --
2002-11-27 23:11 Marc-Christian Petersen
2002-11-28 12:34 ` Frederik Dannemare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox