Wednesday, March 9, 2016

Misc

Linux Memory Model
This post will explain about basics of memory model used in linux.
Ideally all processes allocates memory from Kernel via the real daemon like component MMU. But as a process, how do we know that how much memory is allocated.

By default memory allocated to process is just a virtual memory. Virtual memory is chunks of data into pages mapped to phyisical memory.
Virtual memory ABCD will be mapped may be pApBpCpD. The process of mapping of virtual memory pages into physical pages is done by the old traditional memory manager(MMU). It is upto MMU to map which virtual page to load at runtime to CPU. But we should aware that we need some memory to run the program. IT is upto kernel to take care of all internal activities.

No comments:

Post a Comment