From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 12:36:32 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 79D4F1065673; Sat, 9 Jun 2012 12:36:32 +0000 (UTC) (envelope-from rwatson@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 45FF58FC12; Sat, 9 Jun 2012 12:36:32 +0000 (UTC) Received: from [192.168.2.102] (host109-153-160-182.range109-153.btcentralplus.com [109.153.160.182]) by cyrus.watson.org (Postfix) with ESMTPSA id B025146B0C; Sat, 9 Jun 2012 08:36:30 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: "Robert N. M. Watson" In-Reply-To: <20120609100558.GM85127@deviant.kiev.zoral.com.ua> Date: Sat, 9 Jun 2012 13:36:28 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <32F2E0AA-B490-4ED3-988F-09226230652A@freebsd.org> References: <86sje5kkl6.fsf@kopusha.home.net> <20120609083822.GJ85127@deviant.kiev.zoral.com.ua> <86obosluvk.fsf@kopusha.home.net> <20120609090740.GL85127@deviant.kiev.zoral.com.ua> <86k3zglsvm.fsf@kopusha.home.net> <20120609100558.GM85127@deviant.kiev.zoral.com.ua> To: Konstantin Belousov X-Mailer: Apple Mail (2.1257) Cc: Mikolaj Golub , Wojciech Puchar , Alan Cox , 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 12:36:32 -0000 On 9 Jun 2012, at 11:05, Konstantin Belousov wrote: > First, there is nothing which would prevent demotion from happens = while > you iterate over the map, so you could get funyy numbers, like 42 = superpages > for 2M region with your method. >=20 > Second, the superpage size if machine-depended, and even single = machine > could support differently sized superpage. For amd64, hardware can = support > 2M and 1G pages, and for i386 you can get 4M or 2M depending on PAE = config. >=20 > And last, I in fact do not see much use for any 'superpage count'. = Would I > would like to see is the TLB miss count for a region. Then I could = estimate > whether superpage enabling provided some advantage. Just as a note, if > there were no accesses to a region after promotion, then promotion is > the waste. >=20 > Anyway, please do not consider this as discouraging you from doing a > useful work. Despite the rendering and underlying semantic issues, I admit that I = would like to know when superpages are being used by processes -- = perhaps enough information to construct a histogram of page sizes for = each mapping. Robert=