Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2011 22:11:53 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Boris Kochergin <spawk@acm.poly.edu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Getting swapped-out memory per process
Message-ID:  <20111226201153.GQ50300@deviant.kiev.zoral.com.ua>
In-Reply-To: <4EF8C4B1.5050308@acm.poly.edu>
References:  <4EF8C4B1.5050308@acm.poly.edu>

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

--uXC0L8K1G2d8ohZ2
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 26, 2011 at 02:02:09PM -0500, Boris Kochergin wrote:
> Hi.
>=20
> Is there a way, from userspace, to get the amount of memory a given=20
> process currently has swapped out?
The VM does not track memory 'per process'. Simplifying to the point
where the statement becomes false, it assigns the memory pages to the
vm objects, and allows to map objects into process address space.

Pageout works on the page by page basis, regardless of the page ownership
(for the normal pages, using some definition of normal). Since one page
can and often is mapped into several address spaces, accounting on the
per-process is meaningless or causes the stress of the imagination of
somebody who defines the accounting policy.

--uXC0L8K1G2d8ohZ2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk741QgACgkQC3+MBN1Mb4gZjgCePktiCpgLoDSFtaoZZdaSPwOK
1+4An1xgdW17YNzSJ/NCpZkcEj75/rpp
=SL/q
-----END PGP SIGNATURE-----

--uXC0L8K1G2d8ohZ2--



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