Tags

#Linux

4 posts

Low-Latency Systems Development Topic 15 min read

Context Switches, Page Tables and the TLB

Threads are lighter than processes because the TLB and caches stay usable after the switch, not because the switch itself is cheaper. The TLB has no MESI: when any thread in a process changes the page tables, every core still …

Low-Latency Systems Development #19 26 min read

Scheduling Policies, Priority Inversion and Kernel Tuning

Who runs first and for how long: scheduling classes and time slices, three traps of real-time priorities, two fixes for priority inversion, why HFT often skips PREEMPT_RT, and which knobs a low-latency box turns from BIOS to …

Common Bottlenecks and Optimizations Topic 23 min read

perf: How to Use It, What to Read

stat for the totals, record and report to find the function holding 98% of the samples, annotate to see every sample land on the instruction after an add: a chain of adds, each waiting for the last, and splitting it four ways is …

Low-Latency Systems Development #1 17 min read

CPU Isolation and NUMA

The enemy of a low-latency system is jitter, not the mean. The goal is to make your hot thread the only thing that will ever run on its core: pinning kills migration cost, the isolation stack evicts the tick / RCU / interrupts one …