From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 1 12:24:05 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 D39C5106564A for ; Fri, 1 Jun 2012 12:24:05 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id 89FBA8FC08 for ; Fri, 1 Jun 2012 12:24:05 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SaQtY-0003hc-Gi for freebsd-hackers@freebsd.org; Fri, 01 Jun 2012 14:23:56 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2012 14:23:56 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2012 14:23:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 01 Jun 2012 14:23:42 +0200 Lines: 48 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB7704D04AF6E675191513EF3" X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0) Gecko/20120213 Thunderbird/10.0 X-Enigmail-Version: 1.3.5 Subject: 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: Fri, 01 Jun 2012 12:24:05 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB7704D04AF6E675191513EF3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable hello, I was wondering how much usage superpages get in real-world systems, and made a small script to parse the output of "procstat -va": http://people.freebsd.org/~ivoras/stuff/spsurvey.py The results from three systems (with the script being run as root) are he= re: http://people.freebsd.org/~ivoras/stuff/spsurvey_desktop.txt http://people.freebsd.org/~ivoras/stuff/spsurvey_mixserver.txt http://people.freebsd.org/~ivoras/stuff/spsurvey_webserver.txt What I get from it is that they are really under-utilized, probably because it's a rare occasion that every single page in a 2 MB region is touched to enable its promotion. The only good case seems to be the third one, with the database accessing the whole memory range a lot, but the statistics which procstat reports is inaccurate: there could be only a single superpage in the whole region and procstat will make the region with the "S" flag. If there's anyone else wishing to run the script and post the results, it could be useful to see. --------------enigB7704D04AF6E675191513EF3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk/ItE8ACgkQ/QjVBj3/HSyfIgCfevuhs0GLU6PVm29UO6veZSw+ zI8AnjYX554Y0wyGn9FmCMEnoyU4pO9/ =41xB -----END PGP SIGNATURE----- --------------enigB7704D04AF6E675191513EF3--