About
This project simulates four different computer hardware caching methods in software, using the LRU strategy to handle evictions. For a trace file with millions of lines, the program can simulate cache performance in under a second on an ubuntu VM.
Source Code
Available Cache Types
- direct-mapped
- two-way set-associative
- four-way set associative
- fully associative
Verbose Output

Direct-Mapped Caching in Verbose Mode

Four-Way Set-Associative Caching in Verbose Mode
Comparing All Cache Types

Four-Way Set-Associative Caching in Verbose Mode
