From owner-freebsd-current@FreeBSD.ORG Tue Sep 28 18:19:32 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C5C7106566B; Tue, 28 Sep 2010 18:19: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 6D3418FC18; Tue, 28 Sep 2010 18:19:32 +0000 (UTC) Received: from [192.168.2.105] (host86-161-142-69.range86-161.btcentralplus.com [86.161.142.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 33E4F46B8A; Tue, 28 Sep 2010 14:19:31 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: "Robert N. M. Watson" In-Reply-To: <1285692311.2454.11.camel@home-yahoo> Date: Tue, 28 Sep 2010 19:19:28 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <10297FDD-3949-4ED1-88C8-D5C16E0F2069@FreeBSD.org> References: <1285601161.7245.7.camel@home-yahoo> <1285604516.7245.16.camel@home-yahoo> <201009271738.19497.jhb@freebsd.org> <1285692311.2454.11.camel@home-yahoo> To: Sean Bruno X-Mailer: Apple Mail (2.1081) Cc: "sbruno@freebsd.org" , "freebsd-current@FreeBSD.org" , Joshua Neal , John Baldwin Subject: Re: MAXCPU preparations X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 18:19:32 -0000 On 28 Sep 2010, at 17:45, Sean Bruno wrote: > Working on a dynamic version today. I'll spam it over to you for = review > later. =20 >=20 > I'm moving the percpu struct definitions outside of struct = memory_type, > allocating quantity kern.smp.maxcpus, removing the boundary checks = based > on MEMSTAT_MAXCPU and then removing MEMSTAT_MAXCPU all together. Sounds like the right answer. Make sure to also keep the adapt the use = of maxcpus from crashdumps so that we can also size the data structure = when analyzing cores (or /dev/kmem or firewire). Robert=