Den tis 16 jan. 2024 kl 01:16 skrev Gustavo Rios <rios.gust...@gmail.com>:
> Hi folks.
> I have a simple question :  How many cores does OBSD support ?

amd64 says

#define MAXCPUS 64 /* bitmask */

but different arches have different limits.

i386 has 32, ppc64 has 48, sparc64 has 256, HP/PA has 4 and so on.

/sys/arch/<name of arch goes here>/include/cpu.h
is where it is set.

For amd64, I believe the limit is set so that each cpu can have a bit
in a uint64 in various structs used to keep track on the cores without
using far larger and more cpu intensive lists or arrays.

-- 
May the most significant bit of your life be positive.

Reply via email to