Re: [squid-users] Squid eating all memory

From: Alexandre Correa <[email protected]>
Date: Fri, 13 Oct 2006 10:40:14 -0300

my squid too
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
squid 12673 4.4 41.5 1103404 1066856 ? Sl Oct12 52:14 (squid) -D -s

[root@california squid]# free -t
             total used free shared buffers cached
Mem: 2565608 2542024 23584 0 72568 867072
-/+ buffers/cache: 1602384 963224
Swap: 2096440 144 2096296
Total: 4662048 2542168 2119880

i think that�s the size o cache_dir ...

i have 2 cache_dir, 25GB each..

and, squid use +- 20MB for each GB of cache_dir (64bit)

i�m using --enable-dlmalloc ... without this.. when squid reach
1200000 of VSZ .. it�s crash...

regards,
Alexandre J. Correa
Onda Internet
www.ondainternet.com.br
On 10/13/06, Emilio Casbas <ecasbas@unav.es> wrote:
> Henrik Nordstrom wrote:
> > tis 2006-10-10 klockan 21:25 -0300 skrev Charles Regan:
> >
> >> I am using 2.6STABLE3 on kernel 2.6.8-2
> >> After a couple of hours Squid took all mem available.
> >>
> >
> > It didn't.
> >
> > It's just a matter of how to read the amount of free memory in Linux.
> > It's not easy as the OS uses any free memory as buffer/cache for the
> > filesystem.
> >
> > Under normal operation there should be around 5-12MB "free" memory, if
> > not there is something wrong..
> >
> >
> >> What is causing this ? I had the same problem when using 2.5.
> >>
> >> Mem: 906752k total, 902464k used, 4288k free, 32168k buffers
> >> Swap: 3911816k total, 4k used, 3911812k free, 637096k cached
> >>
> >
> > You have 657 MB free. Plenty free memory there.
> >
> > "free -t"
> >
> >
> >> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> >> 2781 proxy 15 0 174m 168m 2616 S 1.0 19.0 1:31.55 squid
> >>
> >
> > And Squid is using 168 MB.
> >
> >
> > So everything is just in order. It's just that Linux does not have a
> > simple "free memory" value. The best approximation is the "Free +/-
> > buffers/cache".
> >
> > Regards
> > Henrik
> >
>
> Hi,
>
> Henrik what do you think from these memory values?
>
> [root@proxy root]# free -t
> total used free shared buffers cached
> Mem: 2075036 2068700 6336 0 475280 595452
> -/+ buffers/cache: 997968 1077068
> Swap: 4194256 248 4194008
> Total: 6269292 2068948 4200344
>
>
> PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
> 2424 squid 15 0 1122M 864M 1440 S 3.9 42.6 1999m 0 squid
>
>
> Thanks
> Emilio C.
>

-- 
----------------------------------------------------------------
  / 7
  /_(
  |_|
  |_|         Abra�os
  |_|         Let�s Rock!
  |_| /\
 /\|=|/ /
 \ |_| /       Alexandre J. Correa
 ) _  \       http://fotolog.net/alexandrecorrea
 / |_|  \      alexandre@sabbath.com.br
/  -=-o /
\  /~\_/
 \/
Received on Fri Oct 13 2006 - 07:40:21 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST