|author||Huang Ying <email@example.com>||2017-10-13 15:58:29 -0700|
|committer||Linus Torvalds <firstname.lastname@example.org>||2017-10-13 16:18:33 -0700|
mm, swap: use page-cluster as max window of VMA based swap readahead
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://email@example.com Fixes: ec560175c0b6fce ("mm, swap: VMA based swap readahead") Signed-off-by: "Huang, Ying" <firstname.lastname@example.org> Reported-by: Minchan Kim <email@example.com> Acked-by: Minchan Kim <firstname.lastname@example.org> Acked-by: Michal Hocko <email@example.com> Cc: Johannes Weiner <firstname.lastname@example.org> Cc: Rik van Riel <email@example.com> Cc: Shaohua Li <firstname.lastname@example.org> Cc: Hugh Dickins <email@example.com> Cc: Fengguang Wu <firstname.lastname@example.org> Cc: Tim Chen <email@example.com> Cc: Dave Hansen <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
Diffstat (limited to 'Documentation')
1 files changed, 0 insertions, 10 deletions
diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-swap b/Documentation/ABI/testing/sysfs-kernel-mm-swap
index 587db52084c7..94672016c268 100644
@@ -14,13 +14,3 @@ Description: Enable/disable VMA based swap readahead.
still used for tmpfs etc. other users. If set to
false, the global swap readahead algorithm will be
used for all swappable pages.
-Date: August 2017
-Contact: Linux memory management mailing list <email@example.com>
-Description: The max readahead size in order for VMA based swap readahead
- VMA based swap readahead algorithm will readahead at
- most 1 << max_order pages for each readahead. The
- real readahead size for each readahead will be scaled
- according to the estimation algorithm.