From owner-freebsd-arch@FreeBSD.ORG Thu Aug 14 18:36:20 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 06A6112E for ; Thu, 14 Aug 2014 18:36:20 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D60772CF0 for ; Thu, 14 Aug 2014 18:36:19 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id DE8EBB922 for ; Thu, 14 Aug 2014 14:36:18 -0400 (EDT) From: John Baldwin To: arch@freebsd.org Subject: Bumping cpuset_t size and MAXCPU on amd64 to 256 Date: Thu, 14 Aug 2014 14:35:59 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20140415; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201408141435.59323.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 14 Aug 2014 14:36:19 -0400 (EDT) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2014 18:36:20 -0000 There was an earlier thread about this a few months ago and after fixing a few other places (already committed) the patch below has survived a universe build. Does anyone have any objections to these going in? Note that the _cpuset.h change changes the size of 'cpuset_t' in userland for all platforms. Due to the way the cpuset system calls work (and the libc routines), this should not be an ABI change (the caller always encodes the size of the set as an argument to the system call). Also, note that on amd64 the kernel won't actually handle more than 255 CPUs (a few places still use u_char which Adrian is preparing to beat into submission, but we also can't support APIC IDs > 0xfe until we grow true x2APIC support). Index: sys/amd64/include/param.h =================================================================== --- sys/amd64/include/param.h (revision 269991) +++ sys/amd64/include/param.h (working copy) @@ -65,7 +65,7 @@ #if defined(SMP) || defined(KLD_MODULE) #ifndef MAXCPU -#define MAXCPU 64 +#define MAXCPU 256 #endif #else #define MAXCPU 1 Index: sys/sys/_cpuset.h =================================================================== --- sys/sys/_cpuset.h (revision 269991) +++ sys/sys/_cpuset.h (working copy) @@ -38,7 +38,7 @@ #define CPU_SETSIZE MAXCPU #endif -#define CPU_MAXSIZE 128 +#define CPU_MAXSIZE 256 #ifndef CPU_SETSIZE #define CPU_SETSIZE CPU_MAXSIZE -- John Baldwin