Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2012 11:38:22 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Mikolaj Golub <trociny@freebsd.org>
Cc:        Alan Cox <alc@freebsd.org>, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>, Robert Watson <rwatson@freebsd.org>, Ivan Voras <ivoras@freebsd.org>, freebsd-hackers@freebsd.org
Subject:   Re: SuperPages utilization survey
Message-ID:  <20120609083822.GJ85127@deviant.kiev.zoral.com.ua>
In-Reply-To: <86sje5kkl6.fsf@kopusha.home.net>
References:  <jqac8f$6mn$1@dough.gmane.org> <alpine.BSF.2.00.1206011429160.20357@wojtek.tensor.gdynia.pl> <CAF-QHFXsi3SaF-rmFK-qM89LfnStKwRWN1-HRM4yg4Bt_SFAOg@mail.gmail.com> <86sje5kkl6.fsf@kopusha.home.net>

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

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

On Sat, Jun 09, 2012 at 10:31:17AM +0300, Mikolaj Golub wrote:
>=20
> On Fri, 1 Jun 2012 14:54:48 +0200 Ivan Voras wrote:
>=20
>  IV> On 1 June 2012 14:35, Wojciech Puchar <wojtek@wojtek.tensor.gdynia.p=
l> wrote:
>  >>> http://people.freebsd.org/~ivoras/stuff/spsurvey.py
>=20
>  ...
>=20
>  IV> If anyone posts more data, I'll analyse it. I'm more worried about t=
he
>  IV> granularity of procstat, where it marks the entire region if a single
>  IV> superpage exists in it - it means any such analysis is only
>  IV> approximate.
>=20
> Here is a patch (for kernel and procstat) that allows to see amount of pa=
ges
> mapped to superpages.
>=20
> http://people.freebsd.org/~trociny/procstat-superpages.cnt.1.patch
>=20
> Not sure it is useful enough to be committed.

Superpage aggregates mappings for several normal-sized pages.
As a consequence, when you iterate over small pages in
sysctl_kern_proc_vmmap(), you account each superpage as many time as
much constituent small pages it contains.

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

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

iEYEARECAAYFAk/TC34ACgkQC3+MBN1Mb4hc4QCfSIxNSXxqps0HBccBbXYQfv+X
opcAnRoP7eT+az82ghZZm+3HwUNnjdAX
=Hxjs
-----END PGP SIGNATURE-----

--qhD8kUEc5MK9MdKG--



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