LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel Memblocks (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-memblocks-912761/)

prabagaranvt 11-10-2011 12:11 AM

Kernel Memblocks
 
My understanding :

Linux splits a memory node into memory banks. The banks are then logically divided into memory zones.

Question :

There is something called as memory blocks that are found in the bootup code (functions like memblock_init()). Can someone clear me what are these memory blocks and the relationship between memory banks and memory blocks.

Regards,
Prabagaran

gary185 11-11-2011 04:42 PM

hi,
as far as i know it's really the boot loader that figures out the physical memory layout and passes that to the kernel.
each memory bank -- that is physical memory -- is a "node".
a bank or node is memory attached to a specific memory bus.
more than one bank or node would be like a NUMA setup or something.
each node is divided into 3 blocks called "zones".

i think those things you see in memblock exist to allocate memory
before the zone allocator is up and running.
basically i think the whole node is reserved an then later freed to the zone allocator.

again this stuff is kind of architecture specific and has changed over time.


All times are GMT -5. The time now is 12:45 AM.