GNU-malloc misses mallinfo (Was: squid-1.1.beta13 slowing )

From: Stephane Bortzmeyer <bortzmeyer@dont-contact.us>
Date: Thu, 21 Nov 96 11:00:43 +0100

On Friday 8 November 96, at 13 h 16, the keyboard of Pekka J{rvel{inen
<Pekka.Jarvelainen@voxopm.minedu.fi> wrote:

> I tried gnumalloc, but it didn't help my problem:
...
> > But I don't think that is your problem. You may want to try building
> > squid with GNU libmalloc. Brian Denehy <B-Denehy@adfa.oz.au> reported
> > a significant performance improvement on DEC Alpha when using GNU malloc.

Unfortunately, there is a small side-effect with GNU-malloc. It seems it
doesn't have mallinfo() (I grepped the sources) and Squid finds instead
the libc's mallinfo which of course doesn't know anything about the
GNU-malloc's pool. So you cannot have meaningful cache manager "info":

...
{Resource usage for squid:}
{ CPU Time: 23437 seconds (6907 user 16530 sys)}
{ CPU Usage: 13%}
{ Process Size: rss 218216 KB}
{ Page faults with physical i/o: 160404}
{Memory usage for squid via mallinfo():}
{ Total space in arena: 0 KB}
{ Ordinary blocks: 0 KB 0 blks}
{ Small blocks: 0 KB 0 blks}
{ Holding blocks: 0 KB 0 blks}
{ Free Small blocks: 0 KB}
{ Free Ordinary blocks: 0 KB}
{ Total in use: 0 KB 0%}
{ Total free: 0 KB 0%}
...
Received on Thu Nov 21 1996 - 02:01:07 MST

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