arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.14646cs.DS
收藏

缓存替换算法

Cache Replacement Algorithm

Sarwan Ali

摘要:

高速缓存替换算法用于通过存储处理器当时以及可能在将来所需的信息来优化处理器处理信息所花费的时间,使得如果处理器需要该信息,则可以立即提供该信息。有许多技术(LIFO,FIFO,LRU,MRU,Hybrid)用于组织信息,使处理器几乎一直处于忙碌状态。但每种技术都有一定的局限性。我们试图克服这些限制。我们使用概率图模型(PGM),它使用有向或无向图给出随机变量之间的条件依赖。在我们的研究中,我们利用贝叶斯网络技术来预测未来的请求处理器。研究的主要目标是提高缓存命中率,但不是通过增加缓存的大小,也减少或保持开销。通过使用PGM技术,我们在最好的情况下实现了比经典算法多7%的缓存命中率。这证明了我们的技术的成功,就缓存命中而言。此外,预先驱逐被证明是一种更好的技术,以获得更多的缓存命中。结合使用PGM的预驱逐和预取给我们的结果,旨在实现作为本研究的唯一目的。

英文摘要:

Cache replacement algorithms are used to optimize the time taken by processor to process the information by storing the information needed by processor at that time and possibly in future so that if processor needs that information, it can be provided immediately. There are a number of techniques (LIFO, FIFO, LRU, MRU, Hybrid) used to organize information in such a way that processor remains busy almost all the time. But there are some limitations of every technique. We tried to overcome those limitations. We used Probabilistic Graphical Model(PGM), which gives conditional dependency between random variables using directed or undirected graph. In our research, we exploited the Bayesian network technique to predict the future request by processor. The main goal of the research was to increase the cache hit rate but not by increasing the size of cache and also reducing or maintaining the overhead. We achieved 7% more cache hits in best case scenario than those classical algorithms by using PGM technique. This proves the success of our technique as far as cache hits are concerned. Also, pre-eviction proves to be a better technique to get more cache hits. Combining both pre-eviction and pre-fetching using PGM gives us the results which were intended to achieve as the sole purpose of this research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑