v4
2026-10-18
zswap 分离读写请求降低竞争 · v4
为zswap压缩和解压请求拆分独立acomp请求及等待/互斥,降低load与store争用。
原始补丁链接
子 Patch(3)
1/3
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/3
crypto: acomp - enforce MAX_SYNC_COMP_REQSIZE
From: Herbert Xu herbert@gondor.apana.org.au Enforce the limit MAX_SYNC_COMP_REQSIZE when an acomp tfm is initialised. All existing algorithms obey this limit. Signed-off-by: Herbert Xu <herbert@
3/3
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