From owner-svn-src-head@FreeBSD.ORG Thu Jul 21 10:14:27 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8AD71065672; Thu, 21 Jul 2011 10:14:27 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4088B8FC08; Thu, 21 Jul 2011 10:14:27 +0000 (UTC) Received: by gxk28 with SMTP id 28so675729gxk.13 for ; Thu, 21 Jul 2011 03:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=V1Bl3MGHVNi+lk77JEMgmkXy4BQ1PpCWE6UAaRnxAbQ=; b=KRhFXm79Q1D9mOlsMhfXqW5M/2yWtXZ3ivm7Whq45AN/0dFIpFZ+1/Sryh+Q1D/8yr +42KHIuxfqa+CVkx/pFwEyd9o/bf0yHsVZXSm/Nj30U1yxS3NK2cbZngC7RZHmI/OzxG iUs20CpXjYaTlggbAjXJoUOTGsqiYvvACKXe8= MIME-Version: 1.0 Received: by 10.236.136.106 with SMTP id v70mr68923yhi.406.1311243266663; Thu, 21 Jul 2011 03:14:26 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.236.105.169 with HTTP; Thu, 21 Jul 2011 03:14:26 -0700 (PDT) In-Reply-To: <86zkk8pqrn.fsf@gmail.com> References: <201107191300.p6JD0UU7073447@svn.freebsd.org> <86zkk8pqrn.fsf@gmail.com> Date: Thu, 21 Jul 2011 12:14:26 +0200 X-Google-Sender-Auth: CSODT7iM6Ppcy0p6FjON33lB48M Message-ID: From: Attilio Rao To: Pan Tsu , Sean Bruno Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r224217 - in head/sys: amd64/include ia64/include mips/conf sys X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 10:14:27 -0000 2011/7/20 Pan Tsu : > Attilio Rao writes: > >> Author: attilio >> Date: Tue Jul 19 13:00:30 2011 >> New Revision: 224217 >> URL: http://svn.freebsd.org/changeset/base/224217 >> >> Log: >> =C2=A0 Bump MAXCPU for amd64, ia64 and XLP mips appropriately. >> =C2=A0 From now on, default values for FreeBSD will be 64 maxiumum suppo= rted >> =C2=A0 CPUs on amd64 and ia64 and 128 for XLP. All the other architectur= es >> =C2=A0 seem already capped appropriately (with the exception of sparc64 = which >> =C2=A0 needs further support on jalapeno flavour). >> >> =C2=A0 Bump __FreeBSD_version in order to reflect KBI/KPI brekage introd= uced >> =C2=A0 during the infrastructure cleanup for supporting MAXCPU > 32. Thi= s >> =C2=A0 covers cpumask_t retiral too. >> >> =C2=A0 The switch is considered completed at the present time, so for wh= atever >> =C2=A0 bug you may experience that is reconducible to that area, please = report >> =C2=A0 immediately. >> >> =C2=A0 Requested by: =C2=A0 =C2=A0 =C2=A0 marcel, jchandra >> =C2=A0 Tested by: =C2=A0pluknet, sbruno >> =C2=A0 Approved by: =C2=A0 =C2=A0 =C2=A0 =C2=A0re (kib) >> >> Modified: >> =C2=A0 head/sys/amd64/include/param.h >> =C2=A0 head/sys/ia64/include/param.h >> =C2=A0 head/sys/mips/conf/XLP >> =C2=A0 head/sys/mips/conf/XLP64 >> =C2=A0 head/sys/mips/conf/XLPN32 >> =C2=A0 head/sys/sys/param.h >> >> Modified: head/sys/amd64/include/param.h >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >> --- head/sys/amd64/include/param.h =C2=A0 =C2=A0Tue Jul 19 12:41:57 2011= =C2=A0 =C2=A0 =C2=A0 =C2=A0(r224216) >> +++ head/sys/amd64/include/param.h =C2=A0 =C2=A0Tue Jul 19 13:00:30 2011= =C2=A0 =C2=A0 =C2=A0 =C2=A0(r224217) >> @@ -65,7 +65,7 @@ >> >> =C2=A0#if defined(SMP) || defined(KLD_MODULE) >> =C2=A0#ifndef MAXCPU >> -#define MAXCPU =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 32 >> +#define MAXCPU =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 64 >> =C2=A0#endif >> =C2=A0#else >> =C2=A0#define MAXCPU =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 > > Do you plan to bump MEMSTAT_MAXCPU, too? > > =C2=A0$ vmstat -z > =C2=A0vmstat: memstat_sysctl_uma: Too many CPUs > =C2=A0$ vmstat -m > =C2=A0vmstat: memstat_sysctl_malloc: Too many CPUs > > =C2=A0$ sysctl kern. | grep smp.\*cpus > =C2=A0kern.smp.maxcpus: 64 > =C2=A0kern.smp.cpus: 2 > Jeeeez, we seriously need to fix this getting rid of the static values. Anyway, can you try the following patch?: http://www.freebsd.org/~attilio/memstat_maxcpu.diff It is going to add some memory overhead for i386 case. Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein