amd64: Bump MAXCPU to 1024 (from 256)
Hardware with more than 256 CPU cores is currently available and will become increasingly common over FreeBSD 14's lifetime. Increase MAXCPU in the amd64 GENERIC kernel configuration to 1024. Earlier commits increased some related limits. These prerequisite commits include at least: - d7ed40243769 Increase MAX_APIC_ID safeguard to 0x800 -d1639e43c5
cpuset: increase userland maximum size to 1024 Global and allocated arrays sized by MAXCPU result in excessive bloat on systems with lower core counts. In addition, some code used u_char (8 bits) to hold a CPU index, which is not valid if MAXCPU is greater than 256. A number of recent commits addressed these sorts of issues, including at least: -133935d26f
pf: atomically increment state ids -74ac712f72
vmm: Dynamically allocate a couple of per-CPU state save areas -78cfa762eb
callout: Move per-CPU callout state into the dpcpu region -42f722e721
amd64: store pcids pmap data in pcpu zone -9801e7c275
smp_topo: dynamically allocate group array -9fb6718d1b
smp: Dynamically allocate the stoppcbs array -2bb16c6352
x86: retire use of intr_bind There are some additional allocations still to be converted and more scalability work is required to make effective use of very high core count systems, but this change allows us to boot on these systems and provides a Kernel Binary Interface (KBI) for the FreeBSD 14 release that supports these configurations. Special thanks to AMD for providing hardware to test these changes. PR: 269572 Reviewed by: des Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36838
This commit is contained in:
parent
7ff9ae90f0
commit
9051987e40
4
UPDATING
4
UPDATING
@ -27,6 +27,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW:
|
|||||||
world, or to merely disable the most expensive debugging functionality
|
world, or to merely disable the most expensive debugging functionality
|
||||||
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
|
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)
|
||||||
|
|
||||||
|
20230803:
|
||||||
|
MAXCPU has been increased to 1024 in the amd64 GENERIC kernel config.
|
||||||
|
Out-of-tree kernel modules will need to be rebuilt.
|
||||||
|
|
||||||
20230724:
|
20230724:
|
||||||
CAM has been mechanically updated s/u_int(64|32|16|8)_t/uint\1_t/g
|
CAM has been mechanically updated s/u_int(64|32|16|8)_t/uint\1_t/g
|
||||||
to move to the standard uintXX_t types from the old, traditional
|
to move to the standard uintXX_t types from the old, traditional
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
#ifdef SMP
|
#ifdef SMP
|
||||||
#ifndef MAXCPU
|
#ifndef MAXCPU
|
||||||
#define MAXCPU 256
|
#define MAXCPU 1024
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define MAXCPU 1
|
#define MAXCPU 1
|
||||||
|
Loading…
Reference in New Issue
Block a user