[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Limiting memory with ulimit
- To: Ilya Konstantinov <linux-il(at-nospam)future.galanet.net>
- Subject: Re: Limiting memory with ulimit
- From: guy keren <choo(at-nospam)actcom.co.il>
- Date: Fri, 13 Apr 2001 03:06:42 +0300 (EET DST)
- cc: "Nadav Har'El" <nyh(at-nospam)math.technion.ac.il>, Linux-IL <linux-il(at-nospam)cs.huji.ac.il>
- In-Reply-To: <20010412141617.A8609@pollux.galanet.net>
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
On Thu, 12 Apr 2001, Ilya Konstantinov wrote:
> On Thu, Apr 12, 2001 at 02:01:10PM +0300, Nadav Har'El wrote:
> > This is weird... I tried it, and indeed the ulimit -d seems to have no
> > effect! Is this a bug in Linux's handling of this limit? (I'm using kernel
> > 2.2.16 and zsh 3.0.8).
>
> Okay, this should pretty much solve it:
> http://www.davin.ottawa.on.ca/archive/modperl/2000-03/msg00808.phtml
btw, as you can see, this is not a bug. it goes to show you that when you
do something - you should do it right. if you _assume_ that data segments
are what is used yb your program, and they are not, you've made a
non-conservative system management choice... what if the program instead
just overflows the stack (for example)? your limit won't work even on a
non-linux system. thus, limiting virtual memory size is something that
makes sense (also is limiting file size, for other similar problems).
this was just some observation.
--
guy
"For world domination - press 1,
or dial 0, and please hold, for the creator." -- nob o. dy
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il