Memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
dc0d32

Memory

Post by dc0d32 »

I know it is a stupid question, but...

i want to know whether the RAM we install in our PC is always contiguous or can be fragmented [talking in terms of address ranges]. bcos i haven't seen a single machine with RAM split up. at the same time, under VMWare, we have some 1M portion wandering here n there. So, What abt real HW?
JoeKayzA

Re:Memory

Post by JoeKayzA »

AFAIK, the memory is normally not fragmented, but devices that use memory mapped IO overload certain regions in memory, thus these regions must not be used for storing data (this would trigger funny or not so funny behaviour by the corresponding device :D), so you could consider them as 'holes'.

You should find out about these things in the BIOS' memory map, the FAQ should contain something about it. When you interpret the memory map correctly, you shouldn't experience problems with memory holes.

I think I can remember Brendan talking about NUMA-systems (AMD Opteron), where memory is arranged in a non-contiguos manner entirely (where each processor has its own region in the physical address space), but I'm really not sure about this. However, if you interpret the memory map correctly, you shouldn't have problems with this either.

cheers Joe
Kemp

Re:Memory

Post by Kemp »

Yeah, in NUMA systems each node's memory can be at completely different non-contiguous addresses. The memory map will be invaluable for avoiding holes whether you support these systems or not.
dc0d32

Re:Memory

Post by dc0d32 »

GRUB provided memory map is reliable, i suppose?
AR

Re:Memory

Post by AR »

The GRUB one is the BIOS Memory Map, it just gets it for you. As for the overall reliability, we can only hope that there aren't any BIOS' with a broken memory map function.
Post Reply