16. Fallacies and Pitfalls
Description
A fallacy is a widely believed idea that is false; a pitfall is an easily made mistake. Recognizing them is a core skill when judging architecture claims.
| Type | Statement | Why it is wrong / the correct view |
|---|---|---|
| Fallacy | "A higher clock rate means a faster computer." | Performance = IC × CPI × T. Clock alone ignores CPI, instruction count, memory and power. |
| Pitfall | Using MIPS to compare machines | Ignores what each instruction does; use execution time on real workloads. |
| Pitfall | Ignoring Amdahl's Law | Speeding up a small fraction gives a small total gain; serial fractions cap parallel speedup. |
| Fallacy | "Adding cores gives linear speedup." | Synchronization, bandwidth and serial code limit scaling. |
| Fallacy | "Peak performance is what programs get." | Real code reaches a fraction of peak (memory-bound, imbalance). Use the roofline. |
| Fallacy | "A performance improvement also improves energy efficiency." | Faster techniques (e.g. wider speculation) can cost more energy per task. |
| Fallacy | "Bigger caches/more associativity are always better." | They raise hit time, energy and area; there is an optimum. |
| Pitfall | Forgetting false sharing and data alignment | Silent slowdowns on multicore and SIMD code. |
| Fallacy | "Disks fail at the rate implied by the MTTF." | Field failure rates are often higher than the datasheet suggests. |
| Fallacy | "ARM and x86 both use weak memory models." | x86 is TSO (strong); ARM/RISC-V are relaxed. |
| Pitfall | Treating speculation as free | Wrong paths waste energy and can leak data (Spectre). |
| Pitfall | Ignoring tail latency in large services | Fan-out makes rare slow events common (Topic 14). |
| Fallacy | "One big server can handle a WSC-scale job." | Network latency, memory and failure rates force scale-out designs. |
| Pitfall | Under-provisioned cooling and power for new servers | Capacity, not just hardware, limits a data center. |
| Fallacy | "Benchmarks stay valid forever." | Workloads change; benchmarks must be updated and representative. |
| Fallacy | "Domain-specific chips will replace CPUs." | They accelerate fixed kernels; general-purpose CPUs still run everything else. |
| Pitfall | Assuming VLIW compilers can always find enough parallelism | Unpredictable cache misses and branches defeat static scheduling (Itanium). |
Key Formulas
None new. Re-check the formulas in Topics 1, 4, 6 and 13 against each statement above.
Steps
To test a claim: (1) identify the metric (time, energy, throughput), (2) write the relevant equation, (3) look for the hidden variable the claim ignores (CPI, serial fraction, miss penalty, power), (4) answer with numbers if possible.
Worked Example
Claim: "Machine A runs at 4 GHz, machine B at 3 GHz, so A is faster." Same program: A has CPI 2.4 → time per instruction 2.4 / 4 = 0.60 ns; B has CPI 1.5 → 1.5 / 3 = 0.50 ns. B is faster (1.2×) despite the lower clock.
Claim: "Doubling cores doubles speed." For f = 0.9: 4 cores → 1/(0.1 + 0.225) = 3.08; 8 cores → 1/(0.1 + 0.1125) = 4.71, not 6.15 or 8.
Python / Assembly
def time_per_instr_ns(cpi, ghz):
return cpi / ghz
print(time_per_instr_ns(2.4, 4.0), time_per_instr_ns(1.5, 3.0)) # 0.6 0.5
amdahl = lambda f, n: 1 / ((1 - f) + f / n)
print(round(amdahl(0.9, 4), 2), round(amdahl(0.9, 8), 2)) # 3.08 4.71
Notes
- Treat each claim as "True/False: explain"; always give the reason, not only the verdict.
- WSC fallacies: expecting high single-server performance without counting network delay; pitfalls: scaling difficulty and excess power use, such as insufficient cooling.
References: [HP6] "Fallacies and Pitfalls" section at the end of every chapter; [PH-RV] same sections; Schroeder & Gibson, "Disk Failures in the Real World," FAST 2007;
All rights remain with the original author (Algo-holics). Publishing here does not grant a license to copy or reuse this text. Copyright & license. If you noticed a mistake or copyright issues, please contact: lebroskiofficial@proton.me