Re: Squid memory leaks in -stable using libc malloc
From: Anders Nordby (anders_at_fix.no)
Date: 09/07/03
- Previous message: Torfinn Ingolfsen: "Re: Scanner for 4.8"
- In reply to: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Next in thread: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Reply: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Reply: David Schultz: "Re: Squid memory leaks in -stable using libc malloc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 7 Sep 2003 17:20:51 +0200 To: Mike Harding <mvh@ix.netcom.com>
Hi,
On Sat, Sep 06, 2003 at 08:17:19AM -0700, Mike Harding wrote:
> Squid uses more memory than you assign to cache_mem, this is
> documented in the Squid FAQ, section 8. cache_mem is sort of a
> 'suggested' value, it's normal for squid to use a lot more memory than
> cache_mem.
I know this, and I know the contents of the FAQ. However, there's a huge
difference between what top reports as memory used (SIZE) and what cache
manager reports as total allocated KB. In a running process I have just
now, top says Squid uses 1235 MB of memory, while cache manager reports
663 MB allocated (contents of /proc/<pid>/map attached). That's after
running for around 10 hours. If I use dlmalloc (I do on one system), the
numbers are 2291 MB according to top and 2221 MB according to cache
manager after running for 30 hours. Do you see the difference? To me,
there seems to be a leak, or at least very unfavourable results with
phkmalloc and Squid.
BTW, in the first example I gave here, I (still) use phkmalloc with H
configured in malloc.conf, although H did not seem to make a difference.
> If you are happy with dmalloc, though, go ahead and use it, just check
> out the squid FAQ about memory usage. I don't think that there is
> anything wrong with FreeBSD's malloc, it just has different
> performance characteristics.
I agree that there doesn't have to be something technically wrong with
(phk)malloc. However, if there is, someone may have an interest in
following this up (tjr@ seems to be - I talked to him on IRC about
this).
Cheers,
-- Anders.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
- text/plain attachment: map
- Previous message: Torfinn Ingolfsen: "Re: Scanner for 4.8"
- In reply to: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Next in thread: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Reply: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
- Reply: David Schultz: "Re: Squid memory leaks in -stable using libc malloc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|