Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Oct 2006 22:44:26 +0200
From:      Ivan Voras <ivoras@fer.hr>
To:        freebsd-current@freebsd.org
Subject:   Re: [PATCH] MAXCPU alterable in kernel config - needs testers
Message-ID:  <egbnv6$crh$1@sea.gmane.org>
In-Reply-To: <200610082011.53649.davidxu@freebsd.org>
References:  <2fd864e0610080423q7ba6bdeal656a223e662a5d@mail.gmail.com> <200610082011.53649.davidxu@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
David Xu wrote:

> I think MAXCPU should not be great than 32, since we currently define
> cpumask_t as an integer which now should be changed to a bitmap and
> a group of operations like we did for sigset_t.

Maybe there should be an option "MANYCPUS" that wraps current calls that
manipulate this int value into calls that operate on a bitmap, so
there's no speed loss in machines with low number of CPUs. Also, why not
use a 64-bit int on 64-bit platforms for the mask? This will cover at
least Niagara 2 by default.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?egbnv6$crh$1>