From owner-cvs-all@FreeBSD.ORG Tue Dec 23 16:17:58 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED0F416A4CE; Tue, 23 Dec 2003 16:17:58 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F6E243D31; Tue, 23 Dec 2003 16:17:58 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 2D23B5C7B6; Tue, 23 Dec 2003 16:17:58 -0800 (PST) Date: Tue, 23 Dec 2003 16:17:58 -0800 From: Alfred Perlstein To: John Baldwin Message-ID: <20031224001758.GT60229@elvis.mu.org> References: <200312231354.hBNDsGi3005135@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern subr_smp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2003 00:17:59 -0000 * John Baldwin [031223 09:04] wrote: > > On 23-Dec-2003 Alfred Perlstein wrote: > > alfred 2003/12/23 05:54:16 PST > > > > FreeBSD src repository > > > > Modified files: > > sys/kern subr_smp.c > > Log: > > Introduce mp_maxcpus which can be used by libkvm utils to find out > > how many CPUs the system was compiled for. > > Export the variable via a sysctl node 'kern.smp.maxcpus' as well. > > Why does libkvm care about more than mp_maxid? See mbuf.c from netstat(1). basically some arrays in the kernel are based on MAXCPU so it has to know how much to copy. - Alfred Perlstein - Research Engineering Development Inc. - email: bright@mu.org cell: 408-480-4684