Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 19:33:39 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        Alan Cox <alc@rice.edu>
Cc:        Jason Evans <jasone@freebsd.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Tim LaBerge <tlaberge@juniper.net>, "freebsd-arch@freebsd.org Arch" <freebsd-arch@freebsd.org>
Subject:   Re: Behavior of madvise(MADV_FREE)
Message-ID:  <FC99AD0B-88AA-4D96-BDA8-1B566297B62A@xcllnt.net>
In-Reply-To: <508305A6.4090106@rice.edu>
References:  <9FEBC10C-C453-41BE-8829-34E830585E90@xcllnt.net> <4835.1350062021@critter.freebsd.dk> <E6A52D27-0D6A-4175-9ECA-ADE25BFF35C2@xcllnt.net> <F71ACE9D-297E-4565-BB8D-D95D46D90708@freebsd.org> <F67D539D-8BE3-4817-8466-C76DE43AE252@xcllnt.net> <5082F0F3.1070102@rice.edu> <92742.1350761696@critter.freebsd.dk> <508305A6.4090106@rice.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Oct 20, 2012, at 1:12 PM, Alan Cox <alc@rice.edu> wrote:

> On 10/20/2012 14:34, Poul-Henning Kamp wrote:
>> --------
>> In message<5082F0F3.1070102@rice.edu>, Alan Cox writes:
>>=20
>>> 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 ?   :-)
>>=20
>>> 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 ?
>>=20
>=20
> My recollection is that Marcel said that the memory was acquired via =
sbrk(2).

Correct.

--=20
Marcel Moolenaar
marcel@xcllnt.net





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FC99AD0B-88AA-4D96-BDA8-1B566297B62A>