mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: hugang <hugang@soulinfo.com>
To: Rik van Riel <riel@conectiva.com.br>
Cc: tux@sentinel.dk, linux-kernel@vger.kernel.org
Subject: Re: Limiting max cpu usage per user (old Conectiva patch)
Date: Wed, 27 Nov 2002 21:52:23 +0800	[thread overview]
Message-ID: <20021127215223.429d5ae6.hugang@soulinfo.com> (raw)
In-Reply-To: <Pine.LNX.4.44L.0211271008370.4103-100000@imladris.surriel.com>

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

  reply	other threads:[~2002-11-27 13:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-27 10:11 Frederik Dannemare
2002-11-27 12:08 ` Rik van Riel
2002-11-27 13:52   ` hugang [this message]
2002-11-27 15:19   ` Frederik Dannemare
2002-11-27 20:09 ` Martin Waitz
2002-11-27 23:11 Marc-Christian Petersen
2002-11-28 12:34 ` Frederik Dannemare

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=20021127215223.429d5ae6.hugang@soulinfo.com \
    --to=hugang@soulinfo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=riel@conectiva.com.br \
    --cc=tux@sentinel.dk \
    /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®