Looks like you've got it all wrong.
ulimit -m operates in units of 1024 pages each:
Yes. But one page can be more than 1024. In my case - 4096. If I set
ulimit -m 1024, one user can get RSS (in top) 1500 kBytes. I hit this
when my server was drown in swapping, when users ulimits were set to
On 3/5/11 2:36 PM, Dmitry V. Levin wrote:
> Hi,
>
> On Sat, Mar 05, 2011 at 03:36:39PM +0300, Sergey Zhumatiy wrote:
>> Hello!
>>
>> I just had discover (on my back) ulimit command bug.
>> There is "resident set" limit, which is set in PAGES. But ulimit
>> command shows it as kBytes. On by
Hi,
On Sat, Mar 05, 2011 at 03:36:39PM +0300, Sergey Zhumatiy wrote:
> Hello!
>
> I just had discover (on my back) ulimit command bug.
> There is "resident set" limit, which is set in PAGES. But ulimit
> command shows it as kBytes. On by system page size size is 4Kb, so
> difference is fo
Hello!
I just had discover (on my back) ulimit command bug.
There is "resident set" limit, which is set in PAGES. But ulimit
command shows it as kBytes. On by system page size size is 4Kb, so
difference is four times...
Simple test (using raw getrlimit call) shows, that ulimit sets and