From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 11 10:20:49 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 908EC106568C for ; Mon, 11 Jun 2012 10:20:49 +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 401D98FC17 for ; Mon, 11 Jun 2012 10:20:49 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Se1jp-0000bu-Lj for freebsd-hackers@freebsd.org; Mon, 11 Jun 2012 12:20:45 +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 ; Mon, 11 Jun 2012 12:20:45 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Jun 2012 12:20:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Mon, 11 Jun 2012 12:20:32 +0200 Lines: 53 Message-ID: References: <1073159468.20120602121458@serebryakov.spb.ru> <4FC9D420.6010203@FreeBSD.org> <4FC9D68D.60405@FreeBSD.org> <4FC9FDBE.6080401@FreeBSD.org> <4FCFE714.6070502@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD92FCDDBAD220341696BF1A6" 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 In-Reply-To: <4FCFE714.6070502@FreeBSD.org> X-Enigmail-Version: 1.3.5 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: Mon, 11 Jun 2012 10:20:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD92FCDDBAD220341696BF1A6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/06/2012 01:26, Florian Smeets wrote: > On 05.06.12 16:29, Mark Felder wrote: >> On Sat, 02 Jun 2012 06:49:18 -0500, Florian Smeets w= rote: >> >>> As far as i understand it does at least enable usage of pages up to 4= MB, >>> perhaps someone should teach mysql about the FreeBSD's limits? >>> If you look at the output i sent, it certainly changes from using no >>> superpage mappings at all to using them to some degree, if you script= >>> can be trusted >> >> Wow, this is a nice find. If someone were to add a patch for FreeBSD's= =20 >> superpages we might be able to get a nice little performance boost wit= h =20 >> little effort. Even the increase to 4MB for now is a welcome improveme= nt. =20 >> I'll make sure to put this in my toolbox.... >=20 > I played with this some more. MySQL does not seem to use superpages. > After a mysqld restart Ivan's script and procstat showed superpage > mappings for mysqld, but it seems once MySQL "touches" the memory it's > not in superpages anymore. I looked at the MySQL code a bit and one > would need to add FreeBSD support in a couple of places. Perhaps I'll > find some time to try this, but i cannot make any promises. If I understand how superpages are promoted correctly, you may get a nice effect simply by changing malloc()s of 2MB+ sizes to calloc()s. --------------enigD92FCDDBAD220341696BF1A6 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/VxnEACgkQ/QjVBj3/HSzTYQCfR4Fy9qtg871oD/pSqrQQdIDj EAYAn0FSPovwRGh27bqC99bfcSjN611u =jqZU -----END PGP SIGNATURE----- --------------enigD92FCDDBAD220341696BF1A6--