Date: Sat, 20 Oct 2012 15:12:22 -0500 From: Alan Cox <alc@rice.edu> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: Tim LaBerge <tlaberge@juniper.net>, "freebsd-arch@freebsd.org Arch" <freebsd-arch@FreeBSD.org>, Jason Evans <jasone@FreeBSD.org>, Alan Cox <alc@rice.edu>, Marcel Moolenaar <marcel@xcllnt.net> Subject: Re: Behavior of madvise(MADV_FREE) Message-ID: <508305A6.4090106@rice.edu> In-Reply-To: <92742.1350761696@critter.freebsd.dk> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?508305A6.4090106>