mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bill Davidsen <davidsen@tmr.com>
To: Peter Chubb <peterc@gelato.unsw.edu.au>
Cc: Ram Gupta <ram.gupta5@gmail.com>,
	linux mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: RSS Limit implementation issue
Date: Thu, 30 Mar 2006 22:31:32 -0500	[thread overview]
Message-ID: <442CA294.7010902@tmr.com> (raw)
In-Reply-To: <17452.39743.625417.599298@wombat.chubb.wattle.id.au>

Peter Chubb wrote:

>>>>>>"Bill" == Bill Davidsen <davidsen@tmr.com> writes:
>>>>>>            
>>>>>>
>
>Bill> Ram Gupta wrote:
>
>Bill> If you want to make rss a hard limit the result should be
>Bill> swapping, not failure to run. I'm not sure the limit in that
>Bill> form is a good idea, and before someone reminds me, I do
>Bill> remember liking it better a few years ago.
>
>Bill> If you can come up with a better way to adjust rss to get better
>Bill> overall greater throughput while being fair to all processes, go
>Bill> to it. But in general these things are a tradeoff, like
>Bill> swappiness, you tune until the volume of complaints reaches a
>Bill> minimum.
>
>What I did in one experiment was to:
>     1.  delay swapin requests if the process was over its rsslimit,
>         until it fell below, and
>     2.  Poke the swapper to try to swap out the current process's
>         pages in that case.
>
>The problem with the approach is that it behaved poorly under memory
>pressure.  If a process's optimum working set was larger than its RSS
>limit, then either it was delayed to the point of glaciality, or it
>could saturate the swap device (and so disturb other processes's
>operation). 
>
>  
>
I'm paying close attention, but that's kind of the problem people have, 
memory pressure gets high and the processes don't run. I thought of 
"swap out two to swap in one" as a way to dribble the rss down, but I 
doubt it's a magic solution. Swap kills, so does not swap and no memory. 
Obvious solution is to make the rss limit hard and keep it small, I 
don't think that's the answer.

-- 
bill davidsen <davidsen@tmr.com>
  CTO TMR Associates, Inc
  Doing interesting things with small computers since 1979


  reply	other threads:[~2006-03-31  3:27 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-09 21:10 Ram Gupta
2006-02-09 23:07 ` Alan Cox
2006-02-10 14:50   ` Ram Gupta
2006-02-10 16:31     ` Kyle Moffett
2006-02-10 22:20     ` Rik van Riel
2006-03-23 16:55   ` Ram Gupta
2006-03-29 20:16     ` Bill Davidsen
2006-03-30 21:41       ` Roger Heflin
2006-04-04 19:28         ` Bill Davidsen
2006-04-05 18:50           ` Roger Heflin
2006-04-07  2:55           ` kingsley
2006-03-31  3:00       ` Peter Chubb
2006-03-31  3:31         ` Bill Davidsen [this message]
2006-02-09 23:12 ` Bernd Eckenfels
2006-02-10 21:41 ` Bill Davidsen
     [not found] <mail.linux.kernel/728201270602091310r67a3f2dcq4788199f26a69528@mail.gmail.com>
     [not found] ` <06Feb11.024837est.33911@gpu.utcc.utoronto.ca>
2006-02-13 14:52   ` Ram Gupta
     [not found]     ` <06Feb13.151216est.821021@ugw.utcc.utoronto.ca>
2006-02-13 20:37       ` Ram Gupta
     [not found] <5ErmY-5vN-5@gated-at.bofh.it>
     [not found] ` <5EGm2-2eZ-27@gated-at.bofh.it>
     [not found]   ` <5TBku-7fu-3@gated-at.bofh.it>
2006-03-24 23:06     ` 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=442CA294.7010902@tmr.com \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterc@gelato.unsw.edu.au \
    --cc=ram.gupta5@gmail.com \
    /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

Powered by JetHome