CPUs and architecture

What is the typical size of a cache line (cache block) in many CPUs?

  1. A1 byte
  2. B64 bytes
  3. C64 MB
Show answer and explanation

Answer: B. 64 bytes

Most CPUs transfer data between cache and main memory in 64-byte lines. Neighboring addresses are often used together (spatial locality), so fetching them as a block is efficient, and it matches DRAM bursts (8 transfers × 8 bytes = 64 bytes in DDR4). In multithreaded code, beware of false sharing, where separate variables in the same line cause cores to contend for it.

  • A. Transferring one byte at a time would be inefficient.
  • B. Correct. 64 bytes is typical.
  • C. 64 MB is on the order of an entire cache's capacity, not a line size.

Related calculators

Books on CPUs and architecture Ad

As an Amazon Associate I earn from qualifying purchases.

More CPUs and architecture questions

  1. In a pipeline, when the next instruction immediately uses the result of the previous one (a data hazard), which technique passes the result directly to the next instruction without waiting for it to be written to the register?
  2. Which correctly describes little-endian byte order?
  3. Which technique lets one CPU core process instructions from multiple threads at the same time to make better use of the core's execution units?
  4. In microcontrollers and similar devices, which scheme assigns peripheral registers to the same address space as memory and operates them with ordinary memory read/write instructions?
  5. What is the role of the watchdog timer built into microcontrollers?

Comparisons in this topic