Hi,<div>I've a new issue now with OOM.</div><div>I've disabled it for all the containers modifying /cgroup/<container>/memory.oom_control, but some minutes ago OOM-Killer has been executed, writing in syslog:</div>

<div><br></div><div><div><font face="courier new, monospace">kernel: Out of memory: Kill process 19981 (httpd) score 12 or sacrifice child</font></div><div><font face="courier new, monospace">kernel: Killed process 20859 (httpd) total-vm:1022216kB, anon-rss:416736kB, file-rss:124kB</font></div>

<div><font face="courier new, monospace">kernel: httpd invoked oom-killer: gfp_mask=0x0, order=0, oom_adj=0, oom_score_adj=0</font></div><div><font face="courier new, monospace">kernel: httpd cpuset=<container> mems_allowed=0</font></div>

<div><font face="courier new, monospace">kernel: Pid: 19987, comm: httpd Not tainted 3.3.6 #4</font></div><div><font face="courier new, monospace">kernel: Call Trace:</font></div><div><font face="courier new, monospace">kernel: [<ffffffff8110f07b>] dump_header+0x8b/0x1e0</font></div>

<div><font face="courier new, monospace">kernel: [<ffffffff8110eb4f>] ? find_lock_task_mm+0x2f/0x80</font></div><div><font face="courier new, monospace">kernel: [<ffffffff811f93c5>] ? security_capable_noaudit+0x15/0x20</font></div>

<div><font face="courier new, monospace">kernel: [<ffffffff8110f8b5>] oom_kill_process+0x85/0x170</font></div><div><font face="courier new, monospace">kernel: [<ffffffff8110fa9f>] out_of_memory+0xff/0x210</font></div>

<div><font face="courier new, monospace">kernel: [<ffffffff8110fc75>] pagefault_out_of_memory+0xc5/0x110</font></div><div><font face="courier new, monospace">kernel: [<ffffffff81041cfc>] mm_fault_error+0xbc/0x1b0</font></div>

<div><font face="courier new, monospace">kernel: [<ffffffff81506873>] do_page_fault+0x3c3/0x460</font></div><div><font face="courier new, monospace">kernel: [<ffffffff81171253>] ? sys_newfstat+0x33/0x40</font></div>

<div><font face="courier new, monospace">kernel: [<ffffffff81503075>] page_fault+0x25/0x30</font></div></div><div><br></div><div>and killing a process outside the container that has invoked it. But I've disable OOM-killer completely for containers processes!</div>
<div>I think this is a bug in kernel code. </div><div><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 2:23 PM, China <span dir="ltr"><<a href="mailto:china@email.it" target="_blank">china@email.it</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <div>I had misunderstood the proc_sys_vm_vfs_cache_pressure functioning.</div><div>The mechanism works great when the containers need more memory than free one. Until that the kernel doesn't free the slab objects.</div>


<div>Good!</div><div><div><div><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 1:52 PM, China <span dir="ltr"><<a href="mailto:china@email.it" target="_blank">china@email.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Sorry, <div>i've tried that some days ago (setting first to 1000, next 10000 and finally to the maximum1410065408) but the issue remains!</div><div><div>My server has about 1800000 files and 500000 directories.</div>

<div>

<br></div><div>Thank you<div><div><br><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 1:44 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Fri, Aug 24, 2012 at 6:37 PM, China <<a href="mailto:china@email.it" target="_blank">china@email.it</a>> wrote:<br>
> Often, after some hours, the containers occupy a lot of SLAB cache (over<br>
> 100~200MB), specially dentry and ext3_inode_cache.<br>
<br>
</div>Try this: <a href="http://www.linuxinsight.com/proc_sys_vm_vfs_cache_pressure.html" target="_blank">http://www.linuxinsight.com/proc_sys_vm_vfs_cache_pressure.html</a><br>
<br>
I set mine at 1000 for a system with lots of files (> 1M) and<br>
relatively small memory (2GB). Not an lxc system though.<br>
<span><font color="#888888"><br>
--<br>
Fajar<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><br>Davide Belloni<br>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><br>Davide Belloni<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Davide Belloni<br>
</div>