Re: Setting memory size limit over processes

2005-10-28 Thread Muli Ben-Yehuda
On Fri, Oct 28, 2005 at 07:14:20AM +0200, Lionel Elie Mamane wrote: > On Wed, Oct 26, 2005 at 11:20:42AM +0200, Noam Meltzer wrote: > > > I'm trying to set a size limit over processes for some system. I > > tried setting 'ulimit -m' (memory size limit), but it had no effect. > > You need to use

Re: Setting memory size limit over processes

2005-10-27 Thread Lionel Elie Mamane
On Wed, Oct 26, 2005 at 11:20:42AM +0200, Noam Meltzer wrote: > I'm trying to set a size limit over processes for some system. I > tried setting 'ulimit -m' (memory size limit), but it had no effect. You need to use "ulimit -d" and "ulimit -s". > 'ulimit -v' (virtual memory) it can restrict the

Re: Setting memory size limit over processes

2005-10-27 Thread Noam Meltzer
Hi Muli, Yet again, you made me smarter. Thanks!!! Noam On 10/27/05, Muli Ben-Yehuda <[EMAIL PROTECTED]> wrote: > The man page tells you: it only affects calls to madvise() specifying > MADVISE_WILLNEED. In other words, if the application is kind enough to > tell the system how many pages it wil

Re: Setting memory size limit over processes

2005-10-27 Thread Muli Ben-Yehuda
On Thu, Oct 27, 2005 at 10:36:22AM +0200, Noam Meltzer wrote: > Hi Muli, > > First, 10x for the input. > Anyhow, what I'm trying to figure out is why RLIMIT_RSS (or ulimit -m) > has no effect at all. The man page tells you: it only affects calls to madvise() specifying MADVISE_WILLNEED. In other

Re: Setting memory size limit over processes

2005-10-27 Thread Noam Meltzer
Hi Muli, First, 10x for the input. Anyhow, what I'm trying to figure out is why RLIMIT_RSS (or ulimit -m) has no effect at all. Noam On 10/26/05, Muli Ben-Yehuda <[EMAIL PROTECTED]> wrote: > On Wed, Oct 26, 2005 at 11:20:42AM +0200, Noam Meltzer wrote: > > Hi, > > I'm trying to set a size limit

Re: Setting memory size limit over processes

2005-10-26 Thread Muli Ben-Yehuda
On Wed, Oct 26, 2005 at 11:20:42AM +0200, Noam Meltzer wrote: > Hi, > I'm trying to set a size limit over processes for some system. > I tried setting 'ulimit -m' (memory size limit), but it had no effect. > After playing around with ulimit (at the end, i will put the > configuration in /etc/securi

Setting memory size limit over processes

2005-10-26 Thread Noam Meltzer
Hi, I'm trying to set a size limit over processes for some system. I tried setting 'ulimit -m' (memory size limit), but it had no effect. After playing around with ulimit (at the end, i will put the configuration in /etc/security/limits.conf) I found that when I change: 'ulimit -v' (virtual memory)