Get the latest tech news
Exploring How Cache Memory Works
Even though we often hear terms like L1, L2, cache block size, etc., most programmers have a limited understanding of what cache really is. This is a beginner-friendly primer on how cache works.
Executing the same command in my older MacBook Pro running on an Intel Core i9, I get different values for L1, L2, and L3 cache sizes: These tags supply the rest of the address bits to let us distinguish between different memory locations that map to the same cache block. To avoid memory leaks and cache misses if the data gets larger, we can store these as separate values instead of bundling them inside a single struct.
Or read this on Hacker News