mckenney perfbook 2023
Record metadata
cite: P. E. McKenney (ed.), Is Parallel Programming Hard, And, If So, What Can You Do About It?, edition v2023.06.11a, kernel.org, 2023. url: https://mirrors.edge.kernel.org/pub/linux/kernel/people/paulmck/perfbook/perfbook.2023.06.11a.pdf status: read anchors: setup#1
Not cited by the article. Read for lines/contention-and-the-shared-file.md on 28 November 2026 (claude-code); pages as printed in this edition.
- p. 22, §3.2.1: data moves "in units of 'cache lines' … usually ranging from 32 to 256 bytes"; a storing CPU "must also ensure that no other CPU has a copy of that cacheline"; a variable read often and never updated "can be replicated across all CPUs' caches".
- p. 23, Table 3.1 (eight-socket Xeon Platinum 8176, 2.10 GHz): same-CPU CAS 7.0 ns; off-socket CAS 442.9 ns; cross-interconnect CAS 944.8 ns (1,984.2 clock periods).
- p. 51, §5.2.1: statistical counting provides "a counter per thread … so that each thread updates its own counter"; the total is read "by simply summing up all of the threads' counters, relying on the commutative and associative properties of addition".
- pp. 127–128, ch. 8: data ownership parcels data out "so that a given piece of data is accessed and modified by only one of the threads"; "perhaps the most underappreciated synchronization mechanism in existence".
Not read: ch. 9 (deferred processing, read-copy-update); Appendix C (memory barriers and cache coherence in detail).