From owner-freebsd-arch@FreeBSD.ORG Sat Oct 20 20:12:26 2012 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13C495F8; Sat, 20 Oct 2012 20:12:26 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh11.mail.rice.edu (mh11.mail.rice.edu [128.42.199.30]) by mx1.freebsd.org (Postfix) with ESMTP id CB1E08FC0C; Sat, 20 Oct 2012 20:12:25 +0000 (UTC) Received: from mh11.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh11.mail.rice.edu (Postfix) with ESMTP id 0AAE24C0311; Sat, 20 Oct 2012 15:12:25 -0500 (CDT) Received: from mh11.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh11.mail.rice.edu (Postfix) with ESMTP id 08EF74C0310; Sat, 20 Oct 2012 15:12:25 -0500 (CDT) X-Virus-Scanned: by amavis-2.7.0 at mh11.mail.rice.edu, auth channel Received: from mh11.mail.rice.edu ([127.0.0.1]) by mh11.mail.rice.edu (mh11.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id F6ttEqlLRiuj; Sat, 20 Oct 2012 15:12:24 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh11.mail.rice.edu (Postfix) with ESMTPSA id 748034C030F; Sat, 20 Oct 2012 15:12:24 -0500 (CDT) Message-ID: <508305A6.4090106@rice.edu> Date: Sat, 20 Oct 2012 15:12:22 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111113 Thunderbird/8.0 MIME-Version: 1.0 To: Poul-Henning Kamp Subject: Re: Behavior of madvise(MADV_FREE) References: <9FEBC10C-C453-41BE-8829-34E830585E90@xcllnt.net> <4835.1350062021@critter.freebsd.dk> <5082F0F3.1070102@rice.edu> <92742.1350761696@critter.freebsd.dk> In-Reply-To: <92742.1350761696@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tim LaBerge , "freebsd-arch@freebsd.org Arch" , Jason Evans , Alan Cox , Marcel Moolenaar X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Oct 2012 20:12:26 -0000 On 10/20/2012 14:34, Poul-Henning Kamp wrote: > -------- > In message<5082F0F3.1070102@rice.edu>, Alan Cox writes: > >> I'm sympathetic. Once upon a time, I was often called upon to explain >> to network administrators why their idle web cache didn't have oodles of >> "free" memory and how this wasn't a problem. > You too ? :-) > >> I think that you're being a bit too pessimistic here. If your use case >> really corresponds to "this memory is free and will not be reused (or >> reallocated for a very long time)" > Which brings me to a question I have wondered: Why not simply > munmap(2) it until you need it again ? > My recollection is that Marcel said that the memory was acquired via sbrk(2).