Directory-based cache coherence
In computer engineering, directory-based cache coherence is a type of cache coherence mechanism, where directories are used to manage caches in place of bus snooping.[src] Bus snooping methods scale poorly due to the use of broadcasting.[src] These methods can be used to target both performance and scalability of directory systems.[src]
In computer engineering, directory-based cache coherence is a type of cache coherence mechanism, where directories are used to manage caches in place of bus snooping.[src] Bus snooping methods scale poorly due to the use of broadcasting.[src] These methods can be used to target both performance and scalability of directory systems.[src] It can be observed that directory overhead scales linearly with the number of processors.[src] While this may be fine for a small number of processors, when implemented in large systems the size requirements for the directory becomes excessive.[src] For example, with a block size of 32 bytes and 1024 processors, the storage overhead ratio becomes 1024/(32×8) = 400%.[src] In this case the directory entry uses 1 bit for a group of processors for each cache line.[src] For the same example as Full Bit Vector format if we consider 1 bit for 8 processors as a group, then the storage overhead will be 128/(32×8)=50%.[src] This is a significant improvement over the Full Bit Vector format.[src] ==Sparse directory format== A cache only stores a small subset of blocks in main memory at a particular time.[src] Hence most of the entries in the directory will belong to uncached blocks.[src] In the sparse directory format the wastage is reduced by storing only the cached blocks in the directory.[src] Consider a processor with a cache size of 64KB with a block size of 32 bytes and the main memory size to be 4MB.[src] The maximum number of entries that the directory can have in the sparse directory format is 2048.[src] If the directory has an entry for all the blocks in the memory the number of entries in the directory will be 131072.[src] Thus it is evident that the storage improvement provided by sparse directory format is very significant.[src] ==Number-balanced binary tree format== In this format the directory is decentralised and distributed among the caches that share a memory block.[src] Different caches that share a memory block are arranged in the form of a binary tree.[src] The cache that accesses a memory block first is the root node.[src] Each memory block has the root node information (HEAD) and Sharing counter field (SC).[src] The SC field has the number of caches that share the block.[src] Each cache entry has pointers to the next sharing caches known as L-CHD and R-CHD.[src] A condition for this directory is that the binary tree should be number balanced, i.e.[src] the number of nodes in the left sub tree must be equal to or one greater than the number of nodes in the right subtree.[src] All the subtrees should also be number balanced.[src] ==Chained directory format== In this format the memory holds the directory pointer to the latest cache that accessed the block and each cache has the pointer to the previous cache that accessed the block.[src] So when a processor sends a write request to a block in memory, the processor sends invalidations down the chain of pointers.[src] In this directory when a cache block is replaced we need to traverse the list in order to change the directory which increases latency.[src] In order to prevent this doubly linked lists are widely used now in which each cached copy has pointers to previous and the next cache that accesses the block.[src]
32 sentences · 32 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Directory-based cache coherence." encyclopegia.org, 2026, https://encyclopegia.org/wiki/directory-based-cache-coherence. Accessed 27 November 2026.
Chicago
"Directory-based cache coherence." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/directory-based-cache-coherence.
APA
encyclopegia.org. (2026). Directory-based cache coherence. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/directory-based-cache-coherence
Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON