Re: cgroup memory limit problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CC'ing cgroups list

Balbir

2011/11/10 Balbir Singh <bsingharora@xxxxxxxxx>:
> 2011/11/10 Arkadiusz Miśkiewicz <arekm@xxxxxxxx>:
>>
>> Hi,
>>
>> I have a machine with 6GB of ram and a cgroup for apache processes limited to
>>                memory.limit_in_bytes = "5100M";
>>                memory.soft_limit_in_bytes = "5000M";
>>
>
> Can you please send the output of memory.stat?
>
>> Unfortunately when apache processes ate all ram assigned to their cgroup load
>> on whole machine jumps the roof.
>>
>> cgroup aware OOM kicks in, kills one process and that doesn't help.
>>
>> If I'm fast enough I notice and then apache processes require tons of kill -9
>> (I'm doing "killall -9 apache" in a while (true) loop for 20-30s) to get
>> killed (and that not always succeeds - sometimes I'm unable to kill these and
>> I'm just doing sysrq u, s, b after few minutes.. if I'm lucky. Sometimes I
>> cannot do any command).
>>
>> This all happens on 2.6.38.8 kernel.
>> http://ixion.pld-linux.org/~arekm/cgroup-eaten-memory-failure-1.txt
>> for kernel log. It ends with reboot of the machine.
>>
>
> From the logs
>
> "Nov  9 20:48:53 tm2 kernel: [18300.349106] Task in /somecgroup/httpd
> killed as a result of limit of /somecgroup/httpd
> Nov  9 20:48:53 tm2 kernel: [18300.349110] memory: usage 5222400kB,
> limit 5222400kB, failcnt 282869
> Nov  9 20:48:53 tm2 kernel: [18300.349113] memory+swap: usage 0kB,
> limit 9007199254740991kB, failcnt 0"
>
> It seems like you've disabled swap, is that correct?
>
> Balbir
>
--
To unsubscribe from this list: send the line "unsubscribe cgroups" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux