From owner-freebsd-stable@FreeBSD.ORG Wed Mar 7 08:23:56 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01024106564A; Wed, 7 Mar 2012 08:23:56 +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 63BCE8FC16; Wed, 7 Mar 2012 08:23:54 +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 q278NcHi027854; Wed, 7 Mar 2012 10:23:38 +0200 (EET) (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 q278NcNj086714; Wed, 7 Mar 2012 10:23:38 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q278NcDP086713; Wed, 7 Mar 2012 10:23:38 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 7 Mar 2012 10:23:38 +0200 From: Konstantin Belousov To: Luke Marsden Message-ID: <20120307082338.GD75778@deviant.kiev.zoral.com.ua> References: <1331061203.2218.38.camel@pow> <4F569DFF.8040807@mac.com> <1331080581.2589.28.camel@pow> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6fxres9eYHxJ4LJN" Content-Disposition: inline In-Reply-To: <1331080581.2589.28.camel@pow> 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=-3.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, PLING_QUERY autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-fs@freebsd.org, freebsd-stable@freebsd.org, freebsd-questions@freebsd.org, team@hybrid-logic.co.uk Subject: Re: FreeBSD 8.2 - active plus inactive memory leak!? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2012 08:23:56 -0000 --6fxres9eYHxJ4LJN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 07, 2012 at 12:36:21AM +0000, Luke Marsden wrote: > Thanks for your email, Chuck. >=20 > > > Conversely, if a page *does not* occur in the resident > > > memory of any process, it must not occupy any space in the active + > > > inactive lists. > >=20 > > Hmm...if a process gets swapped out entirely, the pages for it will be = moved=20 > > to the cache list, flushed, and then reused as soon as the disk I/O com= pletes.=20 > > But there is a window where the process can be marked as swapped out = (and=20 > > considered no longer resident), but still has some of it's pages in phy= sical=20 > > memory. >=20 > There's no swapping happening on these machines (intentionally so, > because as soon as we hit swap everything goes tits up), so this window > doesn't concern me. >=20 > I'm trying to confirm that, on a system with no pages swapped out, that > the following is a true statement: >=20 > a page is accounted for in active + inactive if and only if it > corresponds to one or more of the pages accounted for in the > resident memory lists of all the processes on the system (as per > the output of 'top' and 'ps') No. The pages belonging to vnode vm object can be active or inactive or cached but not mapped into any process address space. --6fxres9eYHxJ4LJN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk9XGwkACgkQC3+MBN1Mb4gEEgCfeS6aA0sX9T+NgXGhplLSE3DA 7xEAnRS1EdCLMcsOI8u3ADhCURXYNhyh =kFBk -----END PGP SIGNATURE----- --6fxres9eYHxJ4LJN--