diff options
author | Huang Ying <[email protected]> | 2017-09-06 16:24:33 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2017-09-06 17:27:29 -0700 |
commit | c4fa63092f216737b60c789968371d9960a598e5 (patch) | |
tree | c68329a01a3925a41522ab8ea6b3ae437d97185c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cbc65df240c104bf540af1ad58595bf1eaa5ee10 (diff) |
mm, swap: fix swap readahead marking
In the original implementation, it is possible that the existing pages
in the swap cache (not newly readahead) could be marked as the readahead
pages. This will cause the statistics of swap readahead be wrong and
influence the swap readahead algorithm too.
This is fixed via marking a page as the readahead page only if it is
newly allocated and read from the disk.
When testing with linpack, after the fixing the swap readahead hit rate
increased from ~66% to ~86%.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: "Huang, Ying" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Minchan Kim <[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]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions