Re: [squid-users] xmalloc and out of memory errors in messages log

From: Henrik Nordstrom <[email protected]>
Date: Fri, 10 Oct 2003 07:04:51 +0200 (CEST)

How large is your Squid process after it has rebuilt the cache index?

How large is the process shortly before it dies?

total in use from mallinfo should be nearly 100% normally.. if it is much
less then the malloc library is not working well for Squid as it then is
keeping a lot more memory allocated from the OS than Squid is using.

Regards
Henrik

On Fri, 10 Oct 2003, Tay Teck Wee wrote:

> Can anyone help? Thanks.
>
> --
> Wolf
>
> --- Tay Teck Wee <wolfpacks01@yahoo.com.sg> wrote: >
> --- Robert Collins <robertc@squid-cache.org> wrote:
> > >
> > On Tue, 2003-10-07 at 17:17, Tay Teck Wee wrote:
> > >
> > > > The Total Accounted Memory (seen from cachemgr)
> > > always
> > > > shows about 60-70% of the size of the squid
> > > process,
> > > > i.e. when squid process is at 500M, Total
> > > Accounted
> > > > Memory is about 350M. This ratio is maintained
> > > > throughout the squid process lifetime.
> > > >
> > > > One thing peculiar is that under Memory usage
> > for
> > > > squid via mallinfo(): the total in use is always
> > > 100%.
> > > >
> > > >
> > > > From Memory Utilization->In Use->KB column, the
> > > top 3
> > > > are:
> > > > StoreEntry 356131
> > > > MD5 digest 118711
> > > > mem_node 65677
> > > >
> > >
> > > Well you've got 356MB of StoreEntries - cache
> > index
> > > elements. How much
> > > mem cache and disk cache do you ahve in your
> > > configuration?
> >
> > cache_mem 64 MB
> > cache_dir aufs /cdata1 16000 36 256
> > cache_dir aufs /cdata2 16000 36 256
> > cache_dir aufs /cdata3 16000 36 256
> >
> > BTW the physical RAM is 2G.
> >
> > Thanks.
> >
> > >
> > > Cheers,
> > > Rob
> > >
> > >
> > > --
> > > GPG key available at:
> > >
> > <http://members.aardvark.net.au/lifeless/keys.txt>.
> > >
> >
> > > ATTACHMENT part 2 application/pgp-signature
> > name=signature.asc
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > A free party for the most "shiok" photo!
> > http://sg.yahoo.com/shiok
>
> __________________________________________________
> Do You Yahoo!?
> A free party for the most "shiok" photo!
> http://sg.yahoo.com/shiok
>
Received on Thu Oct 09 2003 - 23:04:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:20:27 MST