From owner-freebsd-current@FreeBSD.ORG Tue Sep 28 22:24:36 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 561731065673; Tue, 28 Sep 2010 22:24:36 +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 2ACC18FC14; Tue, 28 Sep 2010 22:24:36 +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 015D646B58; Tue, 28 Sep 2010 18:24:34 -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: <1285699244.2454.63.camel@home-yahoo> Date: Tue, 28 Sep 2010 23:24:32 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1285601161.7245.7.camel@home-yahoo> <1285692311.2454.11.camel@home-yahoo> <201009281429.30747.jhb@freebsd.org> <1285699244.2454.63.camel@home-yahoo> To: sbruno@freebsd.org X-Mailer: Apple Mail (2.1081) Cc: "freebsd-current@FreeBSD.org" , Joshua Neal 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 22:24:36 -0000 On 28 Sep 2010, at 19:40, Sean Bruno wrote: >> If you go fully dynamic you should use mp_maxid + 1 rather than = maxcpus. >=20 > I assume that mp_maxid is the new kern.smp.maxcpus? Can you inject = some > history here so I can understand why one is "better" than the other? So, unlike maxcpus, mp_maxid is in theory susceptible to races in a = brave new world in which we support hotplug CPUs -- a brave new world = we're not yet ready for, however. If you do use mp_maxid, be aware you = need to add one to get the size of the array -- maxcpus is the number of = CPUs that can be used, whereas mp_maxid is the highest CPU ID (counting = from 0) that is used. Robert=