Skip to content

Commit e2469a9

Browse files
authored
Merge pull request #1386 from martin-frbg/bignuma
Limit MAX_CPU to 1024 for now
2 parents 5b71f3a + 28ae3ca commit e2469a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

driver/others/init.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
9090

9191
#if defined(BIGNUMA)
9292
// max number of nodes as defined in numa.h
93-
// max cpus as defined in sched.h
93+
// max cpus as defined in most sched.h
94+
// cannot use CPU_SETSIZE directly as some
95+
// Linux distributors set it to 4096
9496
#define MAX_NODES 128
95-
#define MAX_CPUS CPU_SETSIZE
97+
#define MAX_CPUS 1024
9698
#else
9799
#define MAX_NODES 16
98100
#define MAX_CPUS 256

0 commit comments

Comments
 (0)