Tech Blog

Tech Blog

Dev notes, gotchas and things worth writing down

  • · 9 min read ZH

    TLB miss 的实际代价:一次大页 benchmark 的测量与分析

    用指针追逐测量 4KB 页与 2MB 大页下的随机访存延迟。实测加速比约 1.1 倍,明显低于 TLB 覆盖范围相差 512 倍所暗示的量级。perf 计数显示两组 dTLB miss 率分别为 30.35% 与 0.01%,TLB 机制符合预期;差距有限的原因是单次 TLB miss 的代价约为 12 纳秒,远低于「四次内存访问」的常见估计。

  • · 1 min read EN

    Hello, this is xingcihang.com

    A new home online — where I'll share my journey building indie apps, product updates and dev notes.