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)
Thu, Nov 7, 1:02 AM
Unknown Object (File)
Thu, Oct 17, 10:52 AM
Unknown Object (File)
Thu, Oct 17, 1:13 AM
Unknown Object (File)
Tue, Oct 15, 2:50 PM
Unknown Object (File)
Oct 13 2024, 4:12 AM
Unknown Object (File)
Oct 11 2024, 9:36 AM
Unknown Object (File)
Oct 9 2024, 6:29 PM
Unknown Object (File)
Oct 7 2024, 7:53 PM
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 Not Applicable
Unit
Tests Not Applicable