From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 9 09:46:58 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 2F5E7106566C; Sat, 9 Jun 2012 09:46:58 +0000 (UTC) (envelope-from to.my.trociny@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 226B88FC0A; Sat, 9 Jun 2012 09:46:56 +0000 (UTC) Received: by mail-we0-f182.google.com with SMTP id g1so1354125wer.13 for ; Sat, 09 Jun 2012 02:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:x-comment-to:sender:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=6PrMMs6amnIrNuBIbVyZGNXTMdItJrsNJJZksA4c6Kg=; b=FCH98CUTUKqLl7g82egbYxDIpvKsh/ISJNvroMSHzEHPRwyl6rS3Q2rRzeENI8BPma 8BaBgHtRLzPyU17edti0/N90l7kvSEhJRAwlO3MY3LNVHCfAwZnfkjhsbwIJr6P+v0cB WTgZXgLUrF26Pu1oltFhEWsPPiw9V4RTfDr8NMY/eTSTJ3VaixiMApjnDh1/lgt6bZUH 3Xbfr1BmXju0m/YmWEPnhiYdv65v+qsmYm9wupzE+SqA0zj5PrThcb6O4YGoFVvCNJFL YD4lZd/D54Y0ACN23WJ2edCQ7e48jC2SyJDOMW/NpoXZ6pchND2KNzVuLd423l0ai/B6 wK1g== Received: by 10.180.92.65 with SMTP id ck1mr6882318wib.14.1339235216689; Sat, 09 Jun 2012 02:46:56 -0700 (PDT) Received: from localhost ([95.69.173.122]) by mx.google.com with ESMTPS id ei4sm12507619wid.5.2012.06.09.02.46.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 09 Jun 2012 02:46:55 -0700 (PDT) From: Mikolaj Golub To: Konstantin Belousov 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> X-Comment-To: Konstantin Belousov Sender: Mikolaj Golub Date: Sat, 09 Jun 2012 12:46:53 +0300 In-Reply-To: <20120609090740.GL85127@deviant.kiev.zoral.com.ua> (Konstantin Belousov's message of "Sat, 9 Jun 2012 12:07:40 +0300") Message-ID: <86k3zglsvm.fsf@kopusha.home.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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:46:58 -0000 On Sat, 9 Jun 2012 12:07:40 +0300 Konstantin Belousov wrote: KB> Well, if I see a report informing me that some 2M region contains 512 super KB> pages, how should I interpret it ? For me, it is only one superpage (mapping) KB> that can be created in one 2M region. Well, if I see a report like below: PID START END PRT RES PRES SUP REF SHD FL TP PATH 48568 0x800c00000 0x820c00000 rw- 131072 0 51712 2 0 --S df it tells me that for the region 0x800c00000-0x820c00000 (512Mb) we have 131072 * 4k = 512Mb resident and 51712 * 4k = 202Mb (a litle less than a half of the region) promoted (mapped) to superpages. If I had number of superpages here I would need additional knowledge (a superpage size) to calculate how effectively superpages are used. But actually, no much difference for me. To get a number of superpages is it enough just to divide the result obtained counting normal-sized pages by (2M/4k) factor? -- Mikolaj Golub