Brendan Ang

Search

Search IconIcon to open search

Cache Write Policies

Last updated Nov 8, 2022 Edit Source

# Cache Write Policies

How do we keep memory updated while writing on the cache?

# Write-through

Every write to the cache will lead to subsequent writes to the rest of the memory hierarchy, L1 -> L2 -> Main Memory -> Disk.

# Advantages

# Disadvantages

# Write-back

Only write memory to rest of the memory hierarchy on cache replacement.

Maintain the state of each cache line as the following

# Disadvantages