Page MenuHomeFreeBSD

Bump MAXMEMDOM value to 8 to match amd64
ClosedPublic

Authored by gonzo on Nov 25 2020, 2:18 AM.

Details

Summary

On some of the server-grade ARM64 machines the number of NUMA domains
is higher than 2. When booting GENERIC kernel on such machines the SRAT
parser fails leaving the system with a single domain. To make GENERIC kernel
usable on those server, match the parameter value with the one for amd64 arch.

Test Plan

Tested on Ampere Altra

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

gonzo requested review of this revision.Nov 25 2020, 2:18 AM
This revision is now accepted and ready to land.Dec 1 2020, 5:26 PM
This revision was automatically updated to reflect the committed changes.

I'd be interested in seeing the output of sysctl vm.phys_segs on one of these machines. Can you post it here?

vm.phys_segs:
SEGMENT 0:

start:     0x90000000
end:       0x92000000
domain:    0
free list: 0xffff000000d06400

SEGMENT 1:

start:     0x92780000
end:       0xab600000
domain:    0
free list: 0xffff000000d06400

SEGMENT 2:

start:     0xacf42000
end:       0xba1a0000
domain:    0
free list: 0xffff000000d06400

SEGMENT 3:

start:     0xbf770000
end:       0xbf8a0000
domain:    0
free list: 0xffff000000d06400

SEGMENT 4:

start:     0xbfd30000
end:       0xc0000000
domain:    0
free list: 0xffff000000d06400

SEGMENT 5:

start:     0x80000000000
end:       0x80080000000
domain:    0
free list: 0xffff000000d06400

SEGMENT 6:

start:     0x800c0000000
end:       0x81000000000
domain:    0
free list: 0xffff000000d06400

SEGMENT 7:

start:     0xa0000000000
end:       0xa0e6926f000
domain:    1
free list: 0xffff000000d06640

SEGMENT 8:

start:     0xc0000000000
end:       0xc1000000000
domain:    2
free list: 0xffff000000d06880

SEGMENT 9:

start:     0xe0000000000
end:       0xe0fffffe000
domain:    3
free list: 0xffff000000d06ac0
In D27368#613064, @alc wrote:

I'd be interested in seeing the output of sysctl vm.phys_segs on one of these machines. Can you post it here?

https://reviews.freebsd.org/P463