Hardware Security: Advanced Topics and Trends
A task took 10 seconds before mitigations for speculative execution were applied and made 5 million system calls during that time. Assume that the mitigations increase the processing time per system call from 0.4 µs to 0.6 µs and leave the time of everything else unchanged. By what proportion does the total time of the task increase?
- Aabout 10%
- Babout 30%
- Cabout 50%
Show answer and explanation
Answer: A. about 10%
The time spent in system calls is 5 million × 0.4 µs = 2 s before the mitigations and 5 million × 0.6 µs = 3 s after. The increase is 1 s, so the total goes from 10 s to 11 s, an increase of 1 ÷ 10 = 10%. Even though each system call becomes 1.5 times slower (50% more), the effect on the whole is determined by the share of time that part takes (20% here). For this reason, with mitigations such as KPTI, the performance loss is larger for databases and I/O-heavy processing that make many system calls and interrupts.
- A. Correct. (3 − 2) ÷ 10 = 10%.
- B. This mistakes the total system-call time after the mitigations (3 s) for the increase.
- C. This is the increase per system call (0.2 ÷ 0.4), not the increase for the whole task.
Continue: 9 more Hardware Security: Advanced Topics and Trends questions