I have few doubts regarding the memory management in a x86_64 Linux Operating System.
If I allocate an array of 2000 bytes (statically -
arr[2000];
or dynamically -malloc(2000);
) from my user space code, are these going to be a contiguous memory in physical memory?If I allocate memory (same above example, statically -
arr[2000];
or dynamically -malloc(2000);
) will there be a page table updation to map to these2000 bytes
in physical memory, so that the future references to these memory addresses can be found from the Page Table Entry?