Re: Squid memory leaks in -stable using libc malloc

From: Anders Nordby (anders_at_fix.no)
Date: 09/07/03

  • Next message: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"
    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"



  • Next message: Mike Harding: "Re: Squid memory leaks in -stable using libc malloc"

    Relevant Pages

    • Re: FreeBSD data size tuning
      ... It seems there is a memory issue in 4.9 where they adapted 5.x things ... RAM and using 2500MB of swap on ide disk, ... With 1GB of RAM you should be able to run squid without any ...
      (freebsd-performance)
    • Re: Squid memory leaks in -stable using libc malloc
      ... Squid uses more memory than you assign to cache_mem, ... documented in the Squid FAQ, ...
      (freebsd-stable)
    • Re: how to get a silent harddisk?
      ... >>Sorry, for me squid is spinning up the disk all the time, even when not in use. ... > cache in memory, and any other program you're running that's not under ... > all the tempfs data and whatever you have the squid cache memory set to, ...
      (Debian-User)
    • Squid memory leaks in -stable using libc malloc
      ... Using Squid with libc's malloc, I'm seeing a big difference between what ... top reports as memory used for the squid process and what Squid's ... Using Squid with dlmalloc however, ...
      (freebsd-stable)
    • Re: squid problem :(
      ... Perhaps the Squid FAQ will help? ... > If anyone uses proxy he have a external IP or HOST like he conected? ... >> You shouldn't have to configure multiple outgoing IP addresses. ...
      (comp.unix.bsd.freebsd.misc)