Skip to content

mm,swap: skip swap readahead for instant IO (like zswap)

Rik van Riel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm,swap: extract swap single page readahead into its own functionmm/swap_state.c+25 -152 replies
2/2mm,swap: skip swap readahead if page was obtained instantaneouslymm/swap_state.c+11 -33 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mm,swap: skip swap readahead for instant IO (like zswap)

Both with frontswap/zswap, and with some extremely fast IO devices, swap IO will be done before the "asynchronous" swap_readpage() call has returned.

In that case, doing swap readahead only wastes memory, increases latency, and increases the chances of needing to evict something more useful from memory. In that case, just skip swap readahead.