v1
2026-10-07
zswap 分离读写请求降低竞争 · v1
拆分 zswap 压缩与解压的 per-CPU acomp 请求和互斥锁,并让同步算法解压走栈上请求,避免 load 等待 store。
原始补丁链接
子 Patch(2)
1/2
mm: zswap: use separate compression and decompression requests
Stores and loads serialize on the same per-CPU acomp request and mutex. A low-priority store can be preempted as soon as the compressor drops its stream lock, while it still holds the mutex. A higher-
2/2
mm: zswap: use stack requests for synchronous decompression
With separate requests for compression and decompression, loads still serialize on the per-CPU decompression mutex. A low-priority load that is preempted after the codec drops its stream lock keeps ho