<div dir="ltr">after increased shared memory(/dev/shm on linux), it does not help, still don't know why mlock fails, or how much memory it needs to mlock to avoid failing.</div><br><div class="gmail_quote"><div dir="ltr">On Sun, Jul 15, 2018 at 9:47 PM Gordon Hsiao <<a href="mailto:capcoding@gmail.com">capcoding@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Just upgraded squid to 4.1, however if I enabled shared_memory_locking I failed to start squid:</div><div><br></div>"FATAL: shared_memory_locking on but failed to mlock(/squid-tls_session_cache.shm, 2101212): (12) Out of memory"<br><div><br></div><div>How do I know how much memory it is trying to mlock? is 2101212(~2MB) the shm size of not, any way to debug/looking-into/config this size?</div><div><br></div><div>Again I disabled cache etc for a memory restricted environment, also used the minimal configuration with a few enable-flags, in the meantime I want to avoid memory overcommit from squid(thus mlock)</div><div><br></div><div>Regards,</div><div>Gordon</div></div>
</blockquote></div>