Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2012 15:45:44 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Sushanth Rai <sushanth_rai@yahoo.com>
Cc:        alc@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: mlockall() on freebsd 7.2 + amd64 returns EAGAIN
Message-ID:  <20120419124544.GJ2358@deviant.kiev.zoral.com.ua>
In-Reply-To: <1334792265.20401.YahooMailClassic@web180012.mail.gq1.yahoo.com>
References:  <1334601684.58522.YahooMailClassic@web180001.mail.gq1.yahoo.com> <1334792265.20401.YahooMailClassic@web180012.mail.gq1.yahoo.com>

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

--ZlrxixA2Sx//Vzpg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Apr 18, 2012 at 04:37:45PM -0700, Sushanth Rai wrote:
> Wiring entire address space seems to have interesting side effect. The
> libc memory allocator calls madvise() to free the dirty unused pages,
> which does nothing when the pages are wired. The allocator unmaps only
> when entire chunk is free (default size of 1MB). That leaves lots for
> free pages which cannot reclaimed even when the system is under memory
> pressure.
>

Yes, and I would argue that this is the proper interpretation of the
wire request.

--ZlrxixA2Sx//Vzpg
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAk+QCPgACgkQC3+MBN1Mb4iJdwCferb9scNqKy/DdASUAjY1lkA6
X6MAnA1JL5mHcJKMqedLj+rR3exP/b/C
=ayHp
-----END PGP SIGNATURE-----

--ZlrxixA2Sx//Vzpg--



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