Performance Analysis
Performance counters show a program's IPC is very low at 0.3, with many last-level cache misses. Which pairs the likely situation with a remedy?
- AThe CPU spends much time stalled on memory; change data layout or apply blocking to use caches effectively
- BComputation is too fast; raise the frequency
- CThere are too few branches; add more
Show answer and explanation
Answer: A. The CPU spends much time stalled on memory; change data layout or apply blocking to use caches effectively
Modern CPUs can execute several instructions per cycle, so an IPC of 0.3 means they are waiting most of the time. Many last-level cache misses suggest long waits for data from main memory. Effective remedies reduce cache misses: laying data out at consecutive addresses, reordering loops, or blocking so data is reused many times.
- A. Correct. These are classic memory-bound symptoms.
- B. Raising frequency does not shorten memory waits.
- C. Adding branches does not help.