Publication:

How Block Cache Eviction Policies Affect the I/O Performance of Applications With Structured Data Access Patterns

Loading...
Thumbnail Image

Date

2020-03-03

Published Version

Published Version

Journal Title

Journal ISSN

Volume Title

Publisher

The Harvard community has made this article openly available. Please share how this access benefits you.

Research Projects

Organizational Units

Journal Issue

Citation

Ozen, Gurer. 2018. How Block Cache Eviction Policies Affect the I/O Performance of Applications With Structured Data Access Patterns. Master's thesis, Harvard Extension School.

Abstract

The Block Cache layer of an operating system stores a subset of recently accessed disk blocks in the main memory to avoid slow disk operations. The performance gain is relative to the likelihood of subsequent accesses for the cached blocks. The eviction policy decides which cached blocks are evicted, and has a huge impact on the system performance. I have developed a testing framework to evaluate different eviction strategies under a cache simulation by using the real world pre-cache access records. The framework also replays post-cache accesses on a real solid state disk to get a more realistic measurement of the performance. I have compared the 2Q, ARC, BRRIP, CAR, CLOCK, CLOCKPRO, LRU, Random2, RRIP, SpatialClock algorithms under various test captures. In addition to classic sequential and random categories, I have focused on database access patterns for B-Tree structured disk files. Testing with disk replay was time consuming but revealed that the reduction of number of I/O requests is not the sole criteria for the performance, and the ordering and locality of the evicted blocks is equally important. The randomized algorithms didn't perform well for this reason, and the 2Q turned out to be the most competitive eviction strategy for the tested workloads.

Description

Other Available Sources

Research Data

Keywords

Cache performance, Page cache, Block cache, SSD, Eviction algorithms, Replacement algorithms, B-Tree files

Terms of Use

This article is made available under the terms and conditions applicable to Other Posted Material (LAA), as set forth at Terms of Service

Endorsement

Review

Supplemented By

Related Stories