From owner-freebsd-hackers Wed Oct 23 12:14: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABFD737B401 for ; Wed, 23 Oct 2002 12:14:03 -0700 (PDT) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id E356A43E6A for ; Wed, 23 Oct 2002 12:14:02 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id g9NJDuU7000794; Wed, 23 Oct 2002 12:13:56 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id g9NJDuv5000793; Wed, 23 Oct 2002 12:13:56 -0700 (PDT) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Wed, 23 Oct 2002 12:13:56 -0700 From: David Schultz To: Poul-Henning Kamp Cc: Danny Braniss , freebsd-hackers@FreeBSD.ORG Subject: Re: malloc Message-ID: <20021023191355.GA728@HAL9000.homeunix.com> Mail-Followup-To: Poul-Henning Kamp , Danny Braniss , freebsd-hackers@FreeBSD.ORG References: <20021023185024.GA468@HAL9000.homeunix.com> <44584.1035399419@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44584.1035399419@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Poul-Henning Kamp : > >A harder problem to solve is fragmentation for long-running > >servers, where the RSS tends to creep upwards over time as virtual > >memory fills with holes. > > This is where you want to run phkmalloc with the 'H' option. > It practically makes it a non-issue last I tried. Perhaps phkmalloc could be made self-tuning with regards to 'H'; I doubt many people know when to use that feature. For example, you might have a heuristic where phkmalloc detects that the program has been running for a long time or has called malloc() and free() many times, so it starts using madvise() on some free pages. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message