Limit RAM usage
- From: Martin Hierholzer <usenet@xxxxxxxxxxxxxxxx>
- Date: Fri, 21 Jan 2011 02:02:49 -0800 (PST)
Hi,
I want to limit the amount of actual RAM usage processes can use. The /
etc/security/limits.conf (or the ulimit command) offer several memory
limits: data, stack, as and rss.
"data" and "stack" seem not to be comprehensive enough, processes can
still use much more RAM even than the sum of both. On the other hand,
limiting "as" is sometimes too strict, as processes might use more
virtual than real memory (I suppose e.g. when using file mapping). So
"rss" seems the right setting, but that simply has no effect, which is
consistent with the comment in the man page: "Ignored in Linux 2.4.30
and higher"
So how can I actually implement a limit on the real amount of RAM (on
a 2.6 kernel of course...)?
Cheers and thanks in advance,
Martin
.
- Follow-Ups:
- Re: Limit RAM usage
- From: Richard Kettlewell
- Re: Limit RAM usage
- From: Lawrence D'Oliveiro
- Re: Limit RAM usage
- From: Kevin Snodgrass
- Re: Limit RAM usage
- From: The Natural Philosopher
- Re: Limit RAM usage
- Prev by Date: Re: How2 partition Win7 for linux installation?
- Next by Date: Re: Limit RAM usage
- Previous by thread: Re: RAID Setup with Offline Spare
- Next by thread: Re: Limit RAM usage
- Index(es):
Relevant Pages
|