On Tue, Jan 16, 2024 at 08:16:38AM +0100, Janne Johansson wrote:

> 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.


But do note that OpenBSD is not great in using many cores, expect it
to not scale in a linear way. It's best to make decisison on actual
measurments.

        -Otto

Reply via email to