<div dir="ltr">ok, I'll do it</div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-08 21:30 GMT-03:00 Marcus Kool <span dir="ltr"><<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 09/08/2015 09:23 PM, Jorgeley Junior wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ok, read that already, i set cache_mem to 5GB, so is not ok?<br>
</blockquote>
<br></span>
No. Squid will use more than 6 GB with cache_mem set to 5 GB.<br>
I suggest that you use 2500 MB and after Squid runs for 1 hour, see what the total process size is.<br>
<br>
Marcus<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2015-09-08 20:25 GMT-03:00 Marcus Kool <<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>>>:<span class=""><br>
<br>
<br>
<br>
    On 09/08/2015 10:39 AM, Jorgeley Junior wrote:<br>
<br>
        I have 8GB physical memory and my swap is 32GB.<br>
        I didn't increase the swap yet, should I?<br>
<br>
<br>
    You must start with reading the memory FAQ: <a href="http://wiki.squid-cache.org/SquidFaq/SquidMemory" rel="noreferrer" target="_blank">http://wiki.squid-cache.org/SquidFaq/SquidMemory</a><br>
<br>
    The general rule for all processes applies: make sure that a process is *not* larger than 80% of the physical memory.<br>
    In your case, you must reduce cache_mem and make sure that Squid does not use more than 6 GB.<br>
<br>
    A swap of 32 GB is fine for a system with 8 GB physical memory.<br>
<br>
    I also suggest to consider a memory upgrade.<br>
<br>
    Marcus<br>
<br>
<br></span>
        2015-09-08 9:23 GMT-03:00 Marcus Kool <<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>>>>:<span class=""><br>
<br>
<br>
<br>
             On 09/08/2015 08:11 AM, Jorgeley Junior wrote:<br>
<br>
                 Thank you all, this is the output:<br>
                 vm.overcommit_memory = 0<br>
                 vm.swappiness = 60<br>
                 I have a Redhat 6.6<br>
<br>
<br>
             The value of vm.overcommit_memory is OK.<br>
             The default value for vm.swappiness is way too high. It means that Linux swaps out parts of processes when they are idle for a while.<br>
             For better overall system performance, you want those processes in memory as long as possible and not swapped out so I recommend to change it to 15.<br>
             This implies that the OS has 15% of the physical memory available for file system buffers which is plenty.<br>
<br>
             You only mentioned that the swap is 32 GB.  What is the size of the physical memory ?<br>
<br>
             Did you already increase the swap ?<br>
<br>
             Marcus<br>
<br>
<br>
                 2015-09-05 15:08 GMT-03:00 Marcus Kool <<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>>><br></span>
        <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a> <mailto:<a href="mailto:marcus.kool@urlfilterdb.com" target="_blank">marcus.kool@urlfilterdb.com</a>>>>>:<span class=""><br>
<br>
                      On Linux, an important sysctl parameter that determines how Linux behaves with respect to VM allocation is vm.overcommit_memory (should be 0).<br>
                      And vm.swappiness is important to tune servers (should be 10-15).<br>
<br>
                      Which version of Linux do you have and what is the output of<br>
                          sysctl -a | grep -e vm.overcommit_memory -e  vm.swappiness<br>
<br>
                      Marcus<br>
<br>
<br>
                      On 09/04/2015 07:04 PM, Jorgeley Junior wrote:<br>
<br>
                          Thanks Amos, i will increase the swap<br>
<br>
                          Em 04/09/2015 17:22, "Amos Jeffries" <<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>><br></span>
        <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>>> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>><br>
                 <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a> <mailto:<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>>>>>><span class=""><br>
        escreveu:<br>
<br>
                               On 5/09/2015 7:16 a.m., Jorgeley Junior wrote:<br>
                                > Thanks Amos, my swap is 32GB, so that's causing the error as you said.<br>
                                > Which is the better choice: increase the swap size or reduce the<br>
                                > cache_mem???<br>
                                ><br>
<br>
                               Both probably. 128 GB swap I suspect you will need.<br>
<br>
                               Increase the swap so the system lets Squid use more virtual memory.<br>
<br>
                               Decrease the cache_mem so that Squid does not actually end up using the<br>
                               swap for its main worker processes. That is a real killer for performance.<br>
<br>
<br>
                               Amos<br>
<br>
<br>
<br>
                          _______________________________________________<br>
                          squid-users mailing list<br>
        <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>>><br></span>
        <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>>>><div><div class="h5"><br>
        <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
<br>
<br>
                 --<br>
                 *_<br>
                 _*<br>
                 *_<br>
                 _*<br>
<br>
             _______________________________________________<br>
             squid-users mailing list<br>
        <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>>><br>
        <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
<br>
<br>
        --<br>
        *_<br>
        _*<br>
        *_<br>
        _*<br>
<br>
    _______________________________________________<br>
    squid-users mailing list<br>
    <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a> <mailto:<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>><br>
    <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
<br>
<br>
<br>
<br>
--<br>
*_<br>
_*<br>
*_<br>
_*<br>
</div></div></blockquote><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div style="text-align:left"><font size="4"><b><u><br></u></b></font></div><div style="text-align:left"><font size="4"><b><u><img src="https://lh6.googleusercontent.com/-xODPvbH2piQ/T6RqD0dqXjI/AAAAAAAAAPk/0I8Y3aq0mYM/h120/linuxano+assinatura+e-mail.png"><br></u></b></font></div></div>
</div>