Cache Sizes
Common cache sizes depend on the level of cache (L1, L2, L3, or L4) and the architecture (mobile, desktop, server, or embedded systems). Here’s a general breakdown:
1. L1 Cache (Instruction & Data)
- Size: 16KB – 128KB per core
- Latency: ~1-4 cycles
- Associativity: 4-way to 8-way set-associative
- Use case: Extremely fast, directly connected to the CPU core for low-latency access
2. L2 Cache
- Size: 256KB – 8MB per core
- Latency: ~10-20 cycles
- Associativity: 8-way to 16-way
- Use case: Acts as a backup for L1, slightly slower but much larger
3. L3 Cache (Shared across multiple cores)
- Size: 2MB – 128MB (varies by CPU type)
- Latency: ~30-50 cycles
- Associativity: 12-way to 32-way
- Use case: Shared between cores, reducing memory access bottlenecks
4. L4 Cache (Rare, used in some high-end CPUs & GPUs)
- Size: 32MB – 256MB
- Latency: ~100+ cycles
- Use case: Mostly in enterprise CPUs or GPUs for large-scale data processing
Cache Sizes by Platform
If we’re working on RISC-V cache design, the sizes can vary depending on core type and target application.
Comments
Post a Comment