Find a file
Ed Maste 9051987e40 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
2023-08-03 17:41:26 -04:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
bin ls: Improve POSIX compatibility for -g and -n. 2023-07-18 10:03:09 -07:00
cddl dtrace: Add WITH_DTRACE_ASAN 2023-08-02 09:15:08 -04:00
contrib MFV: xz 5.4.4. 2023-08-03 00:52:36 -07:00
crypto ssh: comment deprecated option handling for retired local patches 2023-08-02 10:21:34 -04:00
etc etc: Automatically generate BSD.lib${libcompat}.dist lists 2023-07-27 05:10:44 +01:00
gnu Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
include arm64 lib32: prepare arm64 headers to redirect to arm 2023-07-25 18:59:26 -05:00
kerberos5 kerberos5: Migrate from COMPAT_32BIT to generic COMPAT_LIBCOMPAT 2023-07-09 18:49:21 +01:00
lib Clean up libm use of the __ieee754_ prefix 2023-08-03 21:51:53 +02:00
libexec libexec: Automatically generate rtld-elf list and generalise TAGS 2023-07-27 05:10:45 +01:00
release release: Fix make :@ modifier syntax 2023-07-27 08:36:12 +01:00
rescue Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sbin nvmecontrol: fix typos 2023-08-03 12:14:19 +02:00
secure libcrypto: add missing symbols to the FIPS provider 2023-07-20 15:05:12 -04:00
share em(4): remove reference to CNVi 2023-08-03 13:26:28 -07:00
stand kboot: Fix a typo in a source code comment 2023-08-02 11:35:50 +02:00
sys amd64: Bump MAXCPU to 1024 (from 256) 2023-08-03 17:41:26 -04:00
targets local.dirdeps.mk skip N_host_libs for non-FreeBSD host 2023-05-04 11:58:39 -07:00
tests tests: Add MAP_32BIT flag test 2023-08-01 23:23:15 +03:00
tools dtrace: Add WITH_DTRACE_ASAN 2023-08-02 09:15:08 -04:00
usr.bin man: fix man -K search 2023-08-02 16:46:57 -04:00
usr.sbin bhyve: Fully reset the fwctl state machine if the guest requests a reset. 2023-08-01 15:45:41 -04:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: use llvm16 job by default and make llvm15 manual 2023-06-22 20:26:34 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore .gitignore: Ignore LSP generated .cache 2023-03-07 10:04:18 -05:00
CONTRIBUTING.md CONTRIBUTING.md: reinsert double spaces 2023-07-10 12:24:24 -06:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS MAINTAINERS: Add myself to stand 2023-05-07 22:30:10 -06:00
Makefile universe: Demote armv6 to an extra architecture. 2023-07-27 22:30:41 -06:00
Makefile.inc1 Makefile.inc1: Enable requesting the universe toolchain. 2023-08-01 14:01:57 -07:00
Makefile.libcompat Makefile.inc1: Enable requesting the universe toolchain. 2023-08-01 14:01:57 -07:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc iflib(9): Remove support for cloning pseudo interfaces 2023-08-03 23:10:18 +02:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTES: add a note about lua config files in loader 2023-07-24 23:35:25 -05:00
UPDATING amd64: Bump MAXCPU to 1024 (from 256) 2023-08-03 17:41:26 -04:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.