Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 31s8 days 9 hours 54 minutes 31 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 31s8 days 9 hours 54 minutes 31 seconds.

Sign in to watch this lesson
The OS on the Hot Path · 4:26
A hot loop on an isolated core can still stall when memory surprises it. On a Mac we measure a hot path that appends to a lazily mapped log: about one page fault per 16 KB page and a p99 near 0.8 µs, falling to zero faults and a p99 of one clock tick with prefaulting, a pool instead of malloc, or mlock, while a single fork() brings back over three thousand copy-on-write faults. Then, on Linux, huge pages and TLB reach, why THP is turned off, mlockall and MAP_POPULATE, and NUMA first-touch with numactl.