Merge pull request #1386 from martin-frbg/bignuma

Limit MAX_CPU to 1024 for now
This commit is contained in:
Martin Kroeker 2017-12-05 19:52:52 +01:00 committed by GitHub
commit e2469a9ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -90,9 +90,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#if defined(BIGNUMA)
// max number of nodes as defined in numa.h
// max cpus as defined in sched.h
// max cpus as defined in most sched.h
// cannot use CPU_SETSIZE directly as some
// Linux distributors set it to 4096
#define MAX_NODES 128
#define MAX_CPUS CPU_SETSIZE
#define MAX_CPUS 1024
#else
#define MAX_NODES 16
#define MAX_CPUS 256