跳转至

Linux Infrastructure

Linux 是现代 Infrastructure 的共同底座。

不管上层是 Kubernetes、数据库、交易系统、AI 训练平台还是移动端服务后端,最终很多能力都会落到:

  1. process
  2. thread
  3. scheduler
  4. virtual memory
  5. filesystem
  6. network stack
  7. cgroups / namespaces
  8. observability

当前模块

Low Latency

关注低延迟系统的运行约束:

  1. p99 / p999
  2. jitter
  3. CPU affinity
  4. NUMA
  5. cache locality
  6. busy polling
  7. lock-free ring buffer
  8. benchmark

Network Stack

关注 Linux 网络路径:

  1. NIC 到用户态
  2. NAPI
  3. softirq
  4. RSS / RPS / XPS
  5. TCP low latency
  6. UDP multicast

学习目标

你需要能把 Runtime API 和底层 Infrastructure 连起来:

socket / epoll
  -> NIC / DMA / NAPI / softirq / socket queue / scheduler

mmap
  -> VMA / page table / page fault / page cache / filesystem

futex
  -> atomic / wait queue / scheduler