From owner-svn-src-all@FreeBSD.ORG Thu Mar 22 16:44:45 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F4DC106564A; Thu, 22 Mar 2012 16:44:45 +0000 (UTC) (envelope-from alc@rice.edu) Received: from mh8.mail.rice.edu (mh8.mail.rice.edu [128.42.201.24]) by mx1.freebsd.org (Postfix) with ESMTP id 1C9018FC14; Thu, 22 Mar 2012 16:44:44 +0000 (UTC) Received: from mh8.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh8.mail.rice.edu (Postfix) with ESMTP id 5A1F2291D52; Thu, 22 Mar 2012 11:44:38 -0500 (CDT) Received: from mh8.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh8.mail.rice.edu (Postfix) with ESMTP id 4C26729761F; Thu, 22 Mar 2012 11:44:38 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh8.mail.rice.edu, auth channel Received: from mh8.mail.rice.edu ([127.0.0.1]) by mh8.mail.rice.edu (mh8.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id kxPgSQcOZiHW; Thu, 22 Mar 2012 11:44:38 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh8.mail.rice.edu (Postfix) with ESMTPSA id 70846291C30; Thu, 22 Mar 2012 11:44:37 -0500 (CDT) Message-ID: <4F6B56F3.6030209@rice.edu> Date: Thu, 22 Mar 2012 11:44:35 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111113 Thunderbird/8.0 MIME-Version: 1.0 To: Sergey Kandaurov References: <201203220440.q2M4eMSl007771@svn.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Alan Cox , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r233290 - head/sys/amd64/amd64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 16:44:45 -0000 On 03/22/2012 03:12, Sergey Kandaurov wrote: > On 22 March 2012 08:40, Alan Cox wrote: >> Author: alc >> Date: Thu Mar 22 04:40:22 2012 >> New Revision: 233290 >> URL: http://svn.freebsd.org/changeset/base/233290 >> >> Log: >> Change pv_entry_count to a long. During the lifetime of FreeBSD 10.x, >> physical memory sizes at the high-end will likely reach a point that >> the number of pv entries could overflow an int. >> >> Submitted by: kib >> >> Modified: >> head/sys/amd64/amd64/pmap.c >> > While there, maybe also do something with these semi-debug-ish > vm.pmap.pc_chunk_(allocs|frees) like change them to [u_]long too, move > under debug or just drop them? While they can be useful for someone, > pc_chunk_(allocs|frees) have also an "int" and quite quickly overflow. > Though e.g. vm.pmap.pv_entry_(allocs|frees) have a long. > Yes, in the next month or two I'm going to be making some changes to the way that pmap_collect() works. I will be eliminating a couple of the counters as part of those changes. I will deal with the rest of the counters at the same time. Alan