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
F80216593: D36679.id110881.diff
Fri, Mar 29, 7:34 AM
Unknown Object (File)
Dec 20 2023, 7:55 AM
Unknown Object (File)
Nov 28 2023, 11:14 AM
Unknown Object (File)
Nov 28 2023, 11:13 AM
Unknown Object (File)
Nov 28 2023, 11:13 AM
Unknown Object (File)
Nov 27 2023, 12:36 AM
Unknown Object (File)
Nov 8 2023, 11:54 AM
Unknown Object (File)
Nov 4 2023, 3:26 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