Thursday, June 19, 2014

How does Linux Manage memory?

1> Bring pages in only when needed (demand paging of text sections)
2> Keep pages brought into memory as long as possible to avoid reading from slower devices (page cache etc.)
3> Under memory pressure, get rid of redundant copies of data (text pages being freed during memory pressure)
4> If required memory can not be freed as there is only one copy of it (data sections ), move the data to slower medium(swapping onto disk) and book keep the information so that they can be brought back into memory when needed.
5> Use processor MMUs for isolation and privileges. These MMU components (TLBs and caches) act as a cache of page tables.
6> Use optimized algorithms and data structures.

No comments:

Post a Comment