From owner-freebsd-stable@FreeBSD.ORG Sat Sep 6 07:11:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD1F216A4BF; Sat, 6 Sep 2003 07:11:05 -0700 (PDT) Received: from totem.fix.no (totem.fix.no [80.91.36.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6A6C43FEA; Sat, 6 Sep 2003 07:11:04 -0700 (PDT) (envelope-from anders@fix.no) Received: by totem.fix.no (Postfix, from userid 1000) id 462C020244; Sat, 6 Sep 2003 16:11:08 +0200 (CEST) Date: Sat, 6 Sep 2003 16:11:08 +0200 From: Anders Nordby To: stable@FreeBSD.org Message-ID: <20030906141108.GA13082@totem.fix.no> Mail-Followup-To: Anders Nordby , stable@FreeBSD.org, tjr@FreeBSD.org, ports@FreeBSD.org, adrian@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Key: http://anders.fix.no/pgp/ X-PGP-Key-FingerPrint: 1E0F C53C D8DF 6A8F EAAD 19C5 D12A BC9F 0083 5956 X-message-flag: Outlook : A program to spread viri, but it can do mail too. User-Agent: Mutt/1.5.1i cc: ports@FreeBSD.org cc: adrian@freebsd.org cc: tjr@FreeBSD.org Subject: Squid memory leaks in -stable using libc malloc X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 14:11:05 -0000 Hi, Using Squid with libc's malloc, I'm seeing a big difference between what top reports as memory used for the squid process (SIZE) and what Squid's cache manager reports that Squid has allocated (total KB allocated in the memory utilization page). Squid is using around twice as much memory as expected, and seems to grow without bounds (I run out of memory every now and then). I've tried configuring malloc.conf with H (as suggested by tjr), but it didn't help. Using Squid with dlmalloc however (--enable-dlmalloc), seems to stop the memory leaks. For my own purposes, I'll be using dlmalloc from now unless someone has other suggestions. For the record, I'm using 4.8-RELEASE and Squid 2.5.STABLE3 (recently installed from ports with all the patches there). I have Squid servers with 4 GB RAM, and cache_mem is set to 2 GB currently. Cheers, -- Anders.