mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
When the VMA based swap readahead was introduced, a new knob
/sys/kernel/mm/swap/vma_ra_max_order
was added as the max window of VMA swap readahead. This is to make it
possible to use different max window for VMA based readahead and
original physical readahead. But Minchan Kim pointed out that this will
cause a regression because setting page-cluster sysctl to zero cannot
disable swap readahead with the change.
To fix the regression, the page-cluster sysctl is used as the max window
of both the VMA based swap readahead and original physical swap
readahead. If more fine grained control is needed in the future, more
knobs can be added as the subordinate knobs of the page-cluster sysctl.
The vma_ra_max_order knob is deleted. Because the knob was introduced
in v4.14-rc1, and this patch is targeting being merged before v4.14
releasing, there should be no existing users of this newly added ABI.
Link: http://lkml.kernel.org/r/[email protected]
Fixes: ec560175c0 ("mm, swap: VMA based swap readahead")
Signed-off-by: "Huang, Ying" <[email protected]>
Reported-by: Minchan Kim <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Shaohua Li <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Fengguang Wu <[email protected]>
Cc: Tim Chen <[email protected]>
Cc: Dave Hansen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
17 lines
640 B
Plaintext
17 lines
640 B
Plaintext
What: /sys/kernel/mm/swap/
|
|
Date: August 2017
|
|
Contact: Linux memory management mailing list <[email protected]>
|
|
Description: Interface for swapping
|
|
|
|
What: /sys/kernel/mm/swap/vma_ra_enabled
|
|
Date: August 2017
|
|
Contact: Linux memory management mailing list <[email protected]>
|
|
Description: Enable/disable VMA based swap readahead.
|
|
|
|
If set to true, the VMA based swap readahead algorithm
|
|
will be used for swappable anonymous pages mapped in a
|
|
VMA, and the global swap readahead algorithm will be
|
|
still used for tmpfs etc. other users. If set to
|
|
false, the global swap readahead algorithm will be
|
|
used for all swappable pages.
|