mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Muthian Sivathanu <muthian_s@yahoo.com>
To: David Schwartz <davids@webmaster.com>, linux-kernel@vger.kernel.org
Subject: RE: limit resident memory size
Date: Thu, 12 Jun 2003 16:03:41 -0700 (PDT)	[thread overview]
Message-ID: <20030612230341.27168.qmail@web40603.mail.yahoo.com> (raw)
In-Reply-To: <MDEHLPKNGKAHNMBLJOLKOEBMDKAA.davids@webmaster.com>

well, the goal is to enforce strict upper bounds on
how much resources a process can consume, including
memory, disk bandwidth etc.  I understand that this
may not give the best aggregate system performance,
but so is any proportional sharing scheme.  The impact
of swapping/paging on the other processes can be
minimized by rate-limiting the disk I/O that the
process does, for swapping or anything else.

Muthian.

--- David Schwartz <davids@webmaster.com> wrote:
> 
> > I would like to limit the maximum resident memory
> size
> > of a process within a threshold, i.e. if its
> virtual
> > memory footprint exceeds this threshold, it needs
> to
> > swap out pages *only* from within its VM space.
> 
> 	Why? If you think this is a good way to be nice to
> other processes, you're
> wrong.
> 
> > First, is there a way this can be done at
> application
> > level ? The setrlimit interface seems to contain
> an
> > option for specifying max resident set size, but
> it
> > doesnt seem like it is implemented as of 2.4 -- am
> I
> > wrong ?
> 
> > If the kernel doesnt currently support it, is
> there an
> > efficient way (data structure etc) to traverse the
> > resident set of a *process* in lru fashion ?  All
> the
> > page replacement and swapping code work on the
> entire
> > page lists -- is there any simple way to group
> these
> > per process ?
> 
> 	One process paging and swapping excessively will
> hurt other processes that
> aren't. What's your outer problem? What you're
> trying to do doesn't seem to
> have any rational purpose.
> 
> 	DS
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

  reply	other threads:[~2003-06-12 22:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-12 20:55 Muthian Sivathanu
2003-06-12 22:15 ` David Schwartz
2003-06-12 23:03   ` Muthian Sivathanu [this message]
2003-06-12 23:13   ` Timothy Miller
2003-06-12 23:37     ` David Schwartz
2003-06-13 17:02       ` Muthian Sivathanu
2003-06-13  2:07   ` Rik van Riel
2003-06-13 10:21   ` jlnance

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=20030612230341.27168.qmail@web40603.mail.yahoo.com \
    --to=muthian_s@yahoo.com \
    --cc=davids@webmaster.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®