SetAssociative
Set-associative is a cache organization used in computer memory systems. In a set-associative cache, the cache is divided into multiple sets. Each memory address maps to exactly one set, but within that set the data can be stored in any one of several cache lines. The number of lines per set is called the associativity; common configurations include 2-way, 4-way, and 8-way sets. The total number of cache lines equals the number of sets times the associativity, and each line holds a block of memory and a tag.
Addressing in a set-associative cache typically divides the memory address into a tag, an index (which selects
Performance-wise, increasing associativity reduces conflict misses compared with direct-mapped caches and generally improves hit rates, but