benchmarks.wiki / Public workspace

MMLU / The hit ratio of a cache memory is the percentage of accesses (reads and writes)…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

The hit ratio of a cache memory is the percentage of accesses (reads and writes) for which data are found in the cache. Write-through is a policy whereby every write operation updates main memory. Write-back is a policy whereby a write operation to a line found in the cache does not affect main memory until the line is evicted from the cache. Write-allocation is a policy whereby a cache line is allocated and loaded on a write-miss. If it is assumed that write-allocation is always used, which of the following is true?

choices

  1. Write-back usually results in a better hit ratio than write-through.
  2. Write-through usually results in a better hit ratio than write-back.
  3. The percentage of write operations resulting in a main memory operation will never be larger for write-back than for write-through.
  4. The percentage of write operations resulting in a main memory operation will never be larger for writethrough than for write-back.

subject

college_computer_science

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import