From owner-freebsd-hackers@FreeBSD.ORG Sun May 20 20:22:23 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 550CE1065673; Sun, 20 May 2012 20:22:23 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id B47638FC16; Sun, 20 May 2012 20:22:22 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q4KKMIcA058093; Sun, 20 May 2012 22:22:18 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q4KKMIPf058086; Sun, 20 May 2012 22:22:18 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 20 May 2012 22:22:18 +0200 (CEST) From: User Wojtek To: Marko Zec In-Reply-To: <201205201643.01194.zec@fer.hr> Message-ID: References: <201205200901.32613.zec@fer.hr> <201205201643.01194.zec@fer.hr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Sun, 20 May 2012 22:22:18 +0200 (CEST) Cc: alc@freebsd.org, freebsd-hackers@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: superpages and kmem on amd64 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: Sun, 20 May 2012 20:22:23 -0000 >>> vm.pmap.pde.demotions: 31 >> >> No, your conclusion is incorrect. These counts show that 543 superpage >> mappings were created by promotion. > > OK, that sounds promising. Does "created by promotion" count reflect > historic / cumulative stats, or is vm.pmap.pde.promotions the actual number > of superpages active? Or should we subtract vm.pmap.pde.demotions from it to > get the current value? correction to my last answer. something is just wrong IMHO on my 2GB laptop: [root@wojtek ~]# sysctl -ad vm.pmap.pde vm.pmap.pde: 2MB page mapping counters vm.pmap.pde.promotions: 2MB page promotions vm.pmap.pde.p_failures: 2MB page promotion failures vm.pmap.pde.mappings: 2MB page mappings vm.pmap.pde.demotions: 2MB page demotions [root@wojtek ~]# sysctl -a vm.pmap.pde vm.pmap.pde.promotions: 61196 vm.pmap.pde.p_failures: 4796 vm.pmap.pde.mappings: 3051 vm.pmap.pde.demotions: 2306 from description seems like mappings could be current amount , but both it's value as well as promotions-demotions gives nonsense. with 2GB RAM there can not be 3051 or more 2MB pages mapped! and i - at present - doesn't run many large programs actually only some xterms and one compiling task.