public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* limit resident memory size
@ 2003-06-12 20:55 Muthian Sivathanu
  2003-06-12 22:15 ` David Schwartz
  0 siblings, 1 reply; 8+ messages in thread
From: Muthian Sivathanu @ 2003-06-12 20:55 UTC (permalink / raw)
  To: linux-kernel

Hi,

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.

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 ?

thanks for any pointers,
Muthian.

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

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

end of thread, other threads:[~2003-06-13 16:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-12 20:55 limit resident memory size Muthian Sivathanu
2003-06-12 22:15 ` David Schwartz
2003-06-12 23:03   ` Muthian Sivathanu
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

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