Browse > Article
http://dx.doi.org/10.9708/jksci.2020.25.03.011

Cache Memory and Replacement Algorithm Implementation and Performance Comparison  

Park, Na Eun (Dept. of Convergence Security Engineering, Sungshin Women's University)
Kim, Jongwan (Smith College of Liberal Arts, Sahmyook University)
Jeong, Tae Seog (Dept. of Business Administration, Sahmyook University)
Abstract
In this paper, we propose practical results for cache replacement policy by measuring cache hit and search time for each replacement algorithm through cache simulation. Thus, the structure of each cache memory and the four types of alternative policies of FIFO, LFU, LRU and Random were implemented in software to analyze the characteristics of each technique. The paper experiment showed that the LRU algorithm showed hit rate and search time of 36.044% and 577.936ns in uniform distribution, 45.636% and 504.692ns in deflection distribution, while the FIFO algorithm showed similar performance to the LRU algorithm at 36.078% and 554.772ns in even distribution and 45.662% and 489.574ns in bias distribution. Then LFU followed, Random algorithm was measured at 30.042% and 622.866ns at even distribution, 36.36% at deflection distribution and 553.878ns at lowest performance. The LRU replacement method commonly used in cache memory has the complexity of implementation, but it is the most efficient alternative to conventional alternative algorithms, indicating that it is a reasonable alternative method considering the reference information of data.
Keywords
Cache Replacement; LRU; LFU; FIFO; Random Replacement;
Citations & Related Records
Times Cited By KSCI : 1  (Citation Analysis)
연도 인용수 순위
1 Seon Kim, Sungjae Lee, Inhwan Lee, "Buffer Cache Block Replacement Algorithm Based on LRU and Prefetching," Journal of The Korean Institute of Information Scientists and Engineers Vol. 37, No. 2B, pp. 298-303, The Korean Institute of Informativon Scientists and Engineers, Korea, November 2010.
2 Hyoil Lee, Sooyoung Kim, Jonghyun Kim, "Performance Analysis of Replacement Policies for Internet Proxy Cache," Journal of The 1999 Fall Conference of The Korea Society For Simulation, pp. 138-143, The Korea Society For Simulation, Korea, October 1999.
3 Jungmin Yoo, Hoongyu Choi, Ted "Taekyong" Kwon, Yanghee Choi, "Performance comparison of Cache replacement policy in Named Data Network," Proceedings of Symposium of the Korean Institute of communications and Information Sciences (Fall), pp. 7-8, Korea Institute Of Communication Sciences, Korea, November 2013.
4 Do Young Jung, Yong Surk Lee, "Cache Replacement Policy Based on Dynamic Counter for High Performance Processor," Journal of the Institute of Electronics Engineers of Korea Vol. 50, No. 4, pp. 52-58, The Institute of Electronics and Information Engineers, Korea, Apirl 2013.
5 Duk Jun Bang, "An Adaptive Cache Replacement Policy to Evict Dirty Block for Last-Level-Cache," The Graduate School Sejong University, February 2015.
6 Inkook Chun, Yonghae Kong, Sangho Ha, "Easily written data structure in C language," Saengneung Publisher, 2019.
7 Microsoft docs, C/C++ Compiler and build tools errors and warnings, https://docs.microsoft.com.
8 Jongjung Woo, "Computer Architecture," Hanbit Academy, 2014.
9 Jeong-Gook Koh, "Design and Implementation or a Web-based Simulator for Educating Page Replacement Algorithms," Journal of Korea Multimedia Society, Vol. 15, No. 4, Korea Multimedia Society, Korea, pp. 552-559, April 2012.   DOI
10 Chang-Gweon Son, Seung-Gi Lee, Seung-Gu Lee, Seung-HeeKim, "An Exploratory Study on the Effects of Reference Locality on Page Replacement Performance," The Journal of Korean Institute of Information Technology, Vol. 15, No. 9, pp. 37-47, Korean Institute of Information Technology, Korea, September 2017, DOI: 10.14801/jkiit.2017.15.9.37
11 Mikyung Lee, Duki Lee, Mincheol Shin, Sanghyun Park, "SWSC(Sequential Write Spatial Clock) Buffer Replacement Algorithm For Mobile Flash Storage," Proceedings of the Korea Information Processing Society Conference, Vol. 21, No. 2, pp. 771-774, Korea Information Processing Society, Korea, November 2014.
12 Donghee Lee, Sam H. Noh, Sang Lyul Mim, Yookun Cho, "LRFU: A Block Replacement Policy which exploits Infinite History of References," Journal of KISS(A): Computer Systems and Theory Vol. 24, No. 7, pp. 632-641, The Korean Institute of Information Scientists and Engineers, Korea, July 1997.
13 Seunghoon Lee, Jongmoo Choi, Seongje Cho, Yookun Cho, "Memory Reference Patterns and Page Replacement Policies," Journal of The Korean Institute of Information Scientists and Engineers Vol. 27, No. 2, pp. 50-52, The Korean Institute of Information Scientists and Engineers, Korea, October 2000.
14 Jae-Seung Ko, Joon-Won Lee, Heon-Young Yeom, "An Alternative Scheme to LRU for Efficient Page Replacement," Journal of KISS(A): Computer Systems and Theory Vol. 23, No. 5, pp. 478-4 86, The Korean Institute of Information Scientists and Engineers, Korea, May 1996.
15 JongIck Lee, SeungIl Sonh, MoonKey Lee. "The Performance Comparison of the True-LRU and the Pseudo-LRU Algorithm in Cache Memory," Journal of KISS(A): Computer Systems and Theory Vol. 23, No. 11, pp. 1148-1160, The Korean Institute of Information Scientists and Engineers, Korea, November 1996.