From d1639e43c589644510198dc53aef87e8908a1507 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 2 May 2023 16:57:12 -0400 Subject: [PATCH] cpuset: increase userland maximum size to 1024 Hardware with more than 256 CPU cores is now available and will become increasingly common. Bump CPU_MAXSIZE (used for userland cpuset_t sizing) to 1024 to define the ABI for FreeBSD 14. This change is reapplied after a change to decouple cpuset from bhyve: commit e17eca327633 ("vmm: Avoid embedding cpuset_t ioctl ABIs"). PR: 269572, 271213 [exp-run] Reviewed by: mjg, jhb Relnotes: yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39941 (cherry picked from commit 76887e84be975698b14699d7d0dfb157d73e9990) --- sys/sys/_cpuset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/_cpuset.h b/sys/sys/_cpuset.h index e7dabe249aac..dde7a4a7e16f 100644 --- a/sys/sys/_cpuset.h +++ b/sys/sys/_cpuset.h @@ -40,7 +40,7 @@ #define CPU_SETSIZE MAXCPU #endif -#define CPU_MAXSIZE 256 +#define CPU_MAXSIZE 1024 #ifndef CPU_SETSIZE #define CPU_SETSIZE CPU_MAXSIZE