Finding Physical Addresses of Local Memory for Reserving Memory with Grub's Memmap

Hi,

I have a system with two CPUs, and each CPU has local RAM. I want to reserve memory for each CPU using grub’s memmap. For this, I need to know the physical addresses of each local memory. How can I find out these addresses?

Thank you.

Maybe try with dmidecode

Here’s an example output of: sudo dmidecode -t 20

$ sudo dmidecode -t 20
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.4 present.

Handle 0x0013, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x0007FFFFFFF
	Range Size: 2 GB
	Physical Device Handle: 0x0010
	Memory Array Mapped Address Handle: 0x0012
	Partition Row Position: 1
	Interleave Position: 1

Handle 0x0014, DMI type 20, 19 bytes
Memory Device Mapped Address
	Starting Address: 0x00080000000
	Ending Address: 0x000BFFFFFFF
	Range Size: 1 GB
	Physical Device Handle: 0x0011
	Memory Array Mapped Address Handle: 0x0012
	Partition Row Position: 1
	Interleave Position: 1