Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Oct 2012 19:34:56 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Alan Cox <alc@rice.edu>
Cc:        Tim LaBerge <tlaberge@juniper.net>, "freebsd-arch@freebsd.org Arch" <freebsd-arch@FreeBSD.org>, Jason Evans <jasone@FreeBSD.org>, Marcel Moolenaar <marcel@xcllnt.net>
Subject:   Re: Behavior of madvise(MADV_FREE)
Message-ID:  <92742.1350761696@critter.freebsd.dk>
In-Reply-To: <5082F0F3.1070102@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>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
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 ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?92742.1350761696>