From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 19 12:45:51 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A932C106564A; Thu, 19 Apr 2012 12:45:51 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 2419D8FC08; Thu, 19 Apr 2012 12:45:50 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3JCjjgn008511; Thu, 19 Apr 2012 15:45:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3JCjjAB031703; Thu, 19 Apr 2012 15:45:45 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3JCjiiu031702; Thu, 19 Apr 2012 15:45:44 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 19 Apr 2012 15:45:44 +0300 From: Konstantin Belousov To: Sushanth Rai Message-ID: <20120419124544.GJ2358@deviant.kiev.zoral.com.ua> References: <1334601684.58522.YahooMailClassic@web180001.mail.gq1.yahoo.com> <1334792265.20401.YahooMailClassic@web180012.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZlrxixA2Sx//Vzpg" Content-Disposition: inline In-Reply-To: <1334792265.20401.YahooMailClassic@web180012.mail.gq1.yahoo.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: alc@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: mlockall() on freebsd 7.2 + amd64 returns EAGAIN X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 12:45:51 -0000 --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--