Architecting for performance. A top-down approach
summary
Top-down layering maps design principles through data structures, OS and hardware to measurable gains: a 4096×4096 matrix gave ~10× throughput difference between row and column traversals, explained by hardware perf counters: L1/L3/TLB showing massive cache/TLB misses. Microbenchmarks compare chaining vs open addressing, show RAMFS vs SSD/HDD is about 10× faster, and IO-scheduler + TRIM tuning favors noop on SSDs. Recommendations: use CAS/lock-free, tune NUMA and large pages, bind threads, and consider disabling deep C-states.
AI-written summary · about
chapters (22)
- 0:00Intro
- 4:07Cohesion
- 4:59Property Placeholder
- 5:49Abstractions
- 6:47Cyclomatic Complexity
- 7:38Algorithms Complexity
- 8:05Matrix Traversal
- 13:52Caching
- 16:50Design Asynchronous
- 17:57Memory Access Patterns
- 19:41Data Structures
- 23:32Lock Free Algorithms
- 24:52Cache Oblivious Algorithms
- 25:28Object Oriented Programming
- 26:48Data-Oriented Design
- 27:58Thread Affinity
- 30:25Large Pages
- 35:11False Sharing
- 38:28Zero Bit Recording
- 39:40Solid State Drive
- 43:25My Latency Hierarchical Model
- 46:06Bibliography
