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

From: Roberto Suarez Soto <robe_at_allenta.com>
Date: Wed, 20 Oct 2010 12:15:38 +0200

El día Tue, 19 Oct 2010 21:24:29 +0000, Amos Jeffries <squid3_at_treenet.co.nz>
escribía:

> If its actually leaking its likely this:
> http://www.squid-cache.org/Versions/v2/2.7/changesets/
>
> The latest bug-fix snapshot of 2.7.STABLE9 is the best 2.7 to go with.

        I'm afraid that didn't fix it. We're using latest 2.7.STABLE9 now
(retrieved on 20101014), and it's still happening. I also used
"memory_pools_limit 512 MB", but didn't help much.

        But we've got a new lead: it seems that the iPhone 4 establishes
connections for very long (don't know how much, but who told me implied that
it could be days), and my guess is that it could make squid unable to reuse
the memory invested in those connections. So I'll try to set
"client_lifetime" to a conservative amount (one hour, several hours) and see
if that helps. Yes, I know it's a sketchy theory :-)

        My next step would be to use "half_closed_clients on", but I'm afraid
that might break more things that it'd fix.

        How much memory should squid spend when it has many opened
connections? In our case, I can see about 3000 connections to squid in
"ESTABLISHED" state, and they don't seem to go down. I've run calamaris
against one of the access.logs and it says that there are a lot of
"long" (i.e., > 10e10 msec) connections. They are the ones that carry more
traffic. Would it make sense for squid to use a lot of memory to attend these
many long connections?

        Thanks,

-- 
        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 Wed Oct 20 2010 - 10:15:50 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 20 2010 - 12:00:03 MDT