Search squid archive

Re: top reports twice memory as much as Total in mgr:mem

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

 



El dÃa Tue, 19 Oct 2010 23:48:07 +1300, Amos Jeffries <squid3@xxxxxxxxxxxxx>
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@xxxxxxxxxxx                                   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@xxxxxxxxxxx




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux