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)
Dec 15 2022, 7:58 PM
Unknown Object (File)
Dec 14 2022, 2:33 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 Not Applicable
Unit
Tests Not Applicable