From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 09:07:44 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 81C79106566B; Sat, 9 Jun 2012 09:07:44 +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 194E28FC15; Sat, 9 Jun 2012 09:07:43 +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 q5997eCR052098; Sat, 9 Jun 2012 12:07:40 +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 q5997ekU055330; Sat, 9 Jun 2012 12:07:40 +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 q5997eKV055329; Sat, 9 Jun 2012 12:07:40 +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: Sat, 9 Jun 2012 12:07:40 +0300 From: Konstantin Belousov To: Mikolaj Golub Message-ID: <20120609090740.GL85127@deviant.kiev.zoral.com.ua> References: <86sje5kkl6.fsf@kopusha.home.net> <20120609083822.GJ85127@deviant.kiev.zoral.com.ua> <86obosluvk.fsf@kopusha.home.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkzoT2Bc9VsM/9ev" Content-Disposition: inline In-Reply-To: <86obosluvk.fsf@kopusha.home.net> 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: Alan Cox , Wojciech Puchar , Robert Watson , Ivan Voras , freebsd-hackers@freebsd.org Subject: Re: SuperPages utilization survey 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: Sat, 09 Jun 2012 09:07:44 -0000 --vkzoT2Bc9VsM/9ev Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 09, 2012 at 12:03:43PM +0300, Mikolaj Golub wrote: >=20 > On Sat, 9 Jun 2012 11:38:22 +0300 Konstantin Belousov wrote: >=20 > KB> 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 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 abo= ut the > >> IV> granularity of procstat, where it marks the entire region if a s= ingle > >> 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 o= f pages > >> mapped to superpages. > >>=20 > >> http://people.freebsd.org/~trociny/procstat-superpages.cnt.1.patch > >>=20 > >> Not sure it is useful enough to be committed. >=20 > KB> Superpage aggregates mappings for several normal-sized pages. > KB> As a consequence, when you iterate over small pages in > KB> sysctl_kern_proc_vmmap(), you account each superpage as many time as > KB> much constituent small pages it contains. >=20 > This is exactly what my intention was to count: how much memory are handl= ed by > superpages (using normal-sized page as a measurement unit), not amount of > superpages. And I think this is what Ivan wanted to know. Do you think it= is > better to return number of superpages? >=20 Well, if I see a report informing me that some 2M region contains 512 super pages, how should I interpret it ? For me, it is only one superpage (mappin= g) that can be created in one 2M region. --vkzoT2Bc9VsM/9ev Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/TElwACgkQC3+MBN1Mb4jaTgCdH1mYx2sqVHLz4D8yon9TSpFX rGoAoNDIlr8KQGNDXLL/2nLZROLqgNM8 =LXsu -----END PGP SIGNATURE----- --vkzoT2Bc9VsM/9ev--