9 Memory Management Strategies
9 Memory Management Strategies
Strategies
BY PRATYUSA MUKHERJEE, ASSISTANT PROFESSOR (I)
KIIT DEEMED TO BE UNIVERSITY
• The OS keeps a table indicating which parts of the memory are available (hole) and which are occupied.
• Initially, entire memory is available and is considered one large block or hole.
• It enhances the efficiency because it is sized to a given process’s needs
• Thus holes of various size are scattered throughout memory
• When a process arrives, it is allocated memory from a hole large enough to accommodate it
• Process exiting frees its partition, adjacent free partitions combined
• Operating system maintains information about: a) allocated partitions b) free partitions (hole)
• Hence it gives a dynamic approach to memory allocation.
• A reference to byte 52 in
segment 2 is mapped to 4300
+ 52 = 4352.
Disadvantage??
Because address translation works from the outer table inwards towards other
tables, we call it Forward mapped page table.
• The outer page table thus has 242 entries which is also huge.
• So to prevent such huge outer table, we will divide it into further smaller pieces.Thus giving a
three level paging scheme. Thus address would look like:
Disadvantage of Hierarchical
Paging?