Home > OS >  After the increase in the Linux host a memory chips, physical addresses how to extend, the kernel ca
After the increase in the Linux host a memory chips, physical addresses how to extend, the kernel ca

Time:10-19

A Linux host has 8 g memory chips, added a 8 g memory chips, how to extend the physical address, whether through physical address to distinguish what is the current use of memory chips, for example, I could do some differentiation with two memory chips, the Linux kernel can distinguish between the two memory chips?

CodePudding user response:

The Linux kernel is can distinguish between the two memory chips, can through the user mode command to see
$sudo LSHW - short - C memory or dmidecode - type 17

X86 memory bank is through PCI bus link, at the time of PCI bus enumeration
Can know the address and size of each memory bank, generally don't have to do special processing,
After all is by the BIOS initialization, PCI after read and write the corresponding configuration information, by the kernel memory
Management system of unified management, can also be reserved for the kernel incoming parameters when the kernel boot
Memory usage, detailed information can be see to the parameters of the kernel in the document

CodePudding user response:

Through the address can't know how, or even develop this function, is also a specific chipset related,

For example, two memory chips, memory can be opened or closed in the BIOS Setup "channel interleaving" mode,

CodePudding user response:

refer to the second floor sazhufa response:
by address can't know how, or even to develop this function, is also a specific chipset related,

For example, two memory chips, memory can be opened or closed in the BIOS Setup "channel interleaving" mode,

Could you through other way to learn? Or if the closed channel, can realize through the memory address, which know root?

CodePudding user response:

reference 1/f, the snow tiger - JL reply:
is the Linux kernel can distinguish between the two memory chips, can through the user mode command to see
$sudo LSHW - short - C memory or dmidecode - type 17

X86 memory bank is through PCI bus link, at the time of PCI bus enumeration
Can know the address and size of each memory bank, generally don't have to do special processing,
After all is by the BIOS initialization, PCI after read and write the corresponding configuration information, by the kernel memory
Management system of unified management, can also be reserved for the kernel incoming parameters when the kernel boot
Memory usage, detailed information can be view into the kernel parameter document

The kernel starts, the physical address is the BIOS packaging good, although you can see, there are two memory chips, but how to distinguish from the perspective of memory programming now used by the page or physical address belongs to which memory chips?
  • Related