Re: [squid-users] top reports twice memory as much as Total in mgr:mem

From: Roberto Suarez Soto <robe_at_allenta.com>
Date: Tue, 19 Oct 2010 13:19:31 +0200

El día Tue, 19 Oct 2010 23:48:07 +1300, Amos Jeffries <squid3_at_treenet.co.nz>
escribía:

> > Probably memory leak. However, it is not reliably reproducible.
> > Anyway, a restart will return memory to OS.
> see question 4 of the memory FAQ:
> http://wiki.squid-cache.org/SquidFaq/SquidMemory

        Related to this, in question 6 says this:

        "Additionally, most operating systems do not allow processes to
shrink in size. When a process gives up memory by calling free, the total
process size does not shrink. So the process size really represents the
maximum size your Squid process has reached."

        I'm not sure I understand this. Does it mean that Squid could grow a
lot, beyond what cache_mem and other settings would imply, and then be unable
to free memory even if it's not using it?

        An example with numbers: suppose I have "cache_mem 50 MB" and
"memory_pools_limit 50 MB", but that's not enough for my current load and
squid grows to double that size. Even if the load of requests becomes very
low afterwards, does it mean that it won't be able to shrink because the OS
has already allocated memory for it?

        In that case, would it be better to set a high cache_mem and
memory_pools_limit value so it's squid who manages its memory? As I
understand it, squid would get quite big from the start but then it wouldn't
grow so much because it'd be able to manage its pool of memory. Does this
make sense?

        Thanks in advance,

-- 
        Roberto Suarez Soto                             Allenta Consulting
        robe_at_allenta.com                                   www.allenta.com
                                                           +34 881 922 600
Este correo electrónico contiene información estrictamente confidencial y es
de uso exclusivo del destinatario, quedando prohibida a cualquier otra
persona su revelación, copia, distribución, o el ejercicio de cualquier
acción relativa a su contenido. Si ha recibido este mensaje por error, por
favor conteste a su remitente mediante correo electrónico y proceda a
borrarlo de su sistema. Rogamos nos comunique inmediatamente sobre cualquier
inconveniente que pueda tener usted en relación al envío de este tipo de
correo electrónico. 
Sus datos personales serán tratados de forma confidencial y no serán cedidos
a terceros ajenos a ALLENTA CONSULTING, S.L. En cualquier caso, podrá ejercer
los derecho de oposición, acceso, rectificación y cancelación de acuerdo con
lo establecido en la Ley Orgánica 15/99, de 13 de diciembre, de Protección de
Datos de Carácter Personal dirigiéndose a ALLENTA CONSULTING, S.L. en
C/Enrique Mariñas 36, 2º piso, oficina 8, 15009 – A Coruña  o en la dirección
de electrónico info_at_allenta.com
Received on Tue Oct 19 2010 - 11:19:42 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 19 2010 - 12:00:02 MDT