Re: [squid-users] Worried Mallinfo

From: Henrik Nordstrom <>
Date: Fri, 23 Mar 2001 23:59:07 +0100

The % figure is % of the process size of Squid that is actually in use.
Has nothing to do with how much RAM your box has. In your cachemgr
output Squid is using 100776 KB.

Explanation: UNIX memory allocation is done in two levels. UNIX and
malloc(). The UNIX level gives each process a large virtual block of
contigous address space. malloc() then divides this large block up in
smaller chunks as requested by the application. Malloc also maintains
it's own idea of what is in use or not. This saves UNIX from having to
keep track of each and every memory allocation/deallocation done by the

The fact that the % is more than 100 is only a slight calculation error
in Squid, caused by a minor misunderstanding of what the values returned
by mallinfo() actually represents.. (it is off by the "Holding blocks").

Henrik Nordstrom
Squid hacker
Ben Mckellar wrote:
> Hi,
> I am a little worried at the following configuration viewed throught
> cachemgr.cgi .
> Particularly due to the fact I just put in an additional 384MB RAM to make a
> total of 512MB RAM.  Yet why do I still see the following result of 105%
> memory in use ?
Received on Fri Mar 23 2001 - 17:11:51 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:50 MST