Page MenuHomeFreeBSD

cpuset(9): Refer to CPU_SETSIZE not MAXCPU
ClosedPublic

Authored by brooks on Sep 23 2022, 6:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 7:17 PM
Unknown Object (File)
Sat, Oct 18, 8:54 AM
Unknown Object (File)
Thu, Oct 16, 7:09 PM
Unknown Object (File)
Thu, Oct 16, 6:05 PM
Unknown Object (File)
Thu, Oct 16, 5:40 PM
Unknown Object (File)
Tue, Oct 14, 4:51 PM
Unknown Object (File)
Sat, Oct 11, 3:24 AM
Unknown Object (File)
Sep 15 2025, 9:30 AM
Subscribers

Details

Summary

The maximum CPU number a cpuset_t is determined by CPU_SETSIZE. In the
kernel this is MAXCPU, but in userspace it is CPU_SETSIZE which defaults
to 256 and MAXCPU is 1 because it being set to a larger value is gated
on SMP being defined which is not generally the case in userspace.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47502
Build 44389: arc lint + arc unit