Page Replacement Algorithms - Challenges and Trends: September 2017
Page Replacement Algorithms - Challenges and Trends: September 2017
Page Replacement Algorithms - Challenges and Trends: September 2017
net/publication/319997969
CITATIONS READS
3 5,011
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Rajesh Ramachandran on 23 September 2017.
112
112 Hitha Paulson, Dr. Rajesh R
International Journal of Computer & Mathematical Sciences
IJCMS
ISSN 2347 – 8527
Volume 6, Issue 9
September 2017
The second major problem faced is to find the no First in First Out (FIFO) page replacement algorithm
of frames to be allocated in the main memory to a often suffers from this.
process. It is the number of frames relocated which
influences the page fault rate to a certain extend.
The least number of frames allocated to a process
depends on system architecture and on the number
of pages that could be referenced by a single
instruction. Certain instructions refer multiple pages
even for its fetch[12]. Certain allocation policies
followed are *Equal Allocation – where all n
processes get m/n frames when m is the total
number of frames. The remaining frames are kept in
free pool. *Proportional Allocation - Distribute the
frames proportionally according to the size of the
process. So if the size of process i is S_i, and S is the Fig :
sum of all S_i, then the allocation for process P_i is 2 Belady's Anomaly in FIFO algorithm [3]
a_i = m * S_i / S [3]. Now a days various memory types with varying life
When the memory frames allotted filled up time and speed of access are used. They demands
completely, in certain cases processes goes on much less page fault rate with less read and write to
of its time for paging rather than utilising CPU. This memory. These are the base challenges faced by
problem is termed as Thrashing. Adding up of more algorithm designers in page replacement
processes (increasing multiprogramming level ) is
also another cause for thrashing. Fig: 1 illustrates IV. BASE TECHNIQUES
Thrashing
First in First out: Here usually a linked list is used
for page management. The list is created according
to the time of arrival of pages to main memory.
When a page fault occurs delete one at the head and
attach the newly added page to the tail of the list. In
certain implementations rather than using a linked
list , a time stamp field is used to identify the order
of page arrival. Another implementation is : when a
fault occurs the page pointed by the pointer is
replaced and at the same place the new page is
swapped in. After this, the pointer moves to the next
page [4]. An average of 50 percent hit ratio is
reported by FIFO algorithms.
Least Recently Used (LRU): Usually the page
references from a process follow the fact that they
cluster in a same area. This algorithm believes in
Fig: 1 Thrashing [3] this principle and selects the victim page as that
To prevent thrashing grant processes with which is not been demanded for access for a long
adequate frames as they really need presently and time. The implementation of this technique is a bit
also should control the level of multiprogramming in difficult since a proper history recording is needed
a system. Working Set Algorithm proposed reduced for the technique. Tagging of each page reference
thrashing to certain extend. To lessen thrashing, with its time is one technique of implementation[5].
paging algorithms experimented with allocating An average of 60 percent hit ratio is reported by
more number of frames to a process. But in certain LRU algorithms.
algorithms increasing the number of page frames Optimal Algorithm: This algorithm, selects victim
results in an increase in the number of page faults whose reference is furthest.This algorithm is known
for a given memory reference pattern and the to be a non implemental one, since it requires to
phenomenon is known as Belady's Anomaly[1]. the know the future. But it has the best page fault
behaviour reported[4]. Certain threaded
113
113 Hitha Paulson, Dr. Rajesh R
International Journal of Computer & Mathematical Sciences
IJCMS
ISSN 2347 – 8527
Volume 6, Issue 9
September 2017
114
114 Hitha Paulson, Dr. Rajesh R
International Journal of Computer & Mathematical Sciences
IJCMS
ISSN 2347 – 8527
Volume 6, Issue 9
September 2017
115
115 Hitha Paulson, Dr. Rajesh R
International Journal of Computer & Mathematical Sciences
IJCMS
ISSN 2347 – 8527
Volume 6, Issue 9
September 2017
[11] Xian Tang, Xiaofeng Meng, “ACR: an Adaptive [13] Babu et al., “ Enhanced Hybrid LRU Page
Cost-Aware Buffer Replacement Algorithm for Replacement Algorithm” International Journal of
Flash Storage Devices,” Eleventh International Advanced Research in Computer Science and
Conference on Mobile Data Management, IEEE Software Engineering 6(1), January - 2016, pp. 417-
Computer Society, pp 33-42 , 2010. 421
[12] Pooja Khulbe,Shruti Pant, “Hybrid (LRU) Page- [14] Yeskendir Sultanov, “Design and Implementation of
Replacement Algorithm”, International Journal of Page Replacement Algorithms based on an Inverted
Computer Applications (0975 – 8887), Volume 91 – Page Table”, International Journal of Advanced
No.16,,pp 25-28 April 2014. Engineering Technology and Application . No. 2,
35-39 (2016)
116
116 Hitha Paulson, Dr. Rajesh R