diff options
author | David Rientjes <rientjes@google.com> | 2016-05-21 01:58:56 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-21 02:58:30 +0200 |
commit | f0508977787b3bcfd54e82111ab50d6245b9f4df (patch) | |
tree | 2ee4d47b6d18ad76ddcb919fe3bd76f4d4e1bdc4 /mm/page_alloc.c | |
parent | MM: increase safety margin provided by PF_LESS_THROTTLE (diff) | |
download | linux-f0508977787b3bcfd54e82111ab50d6245b9f4df.tar.xz linux-f0508977787b3bcfd54e82111ab50d6245b9f4df.zip |
mm, thp: khugepaged should scan when sleep value is written
If a large value is written to scan_sleep_millisecs, for example, that
period must lapse before khugepaged will wake up for periodic
collapsing.
If this value is tuned to 1 day, for example, and then re-tuned to its
default 10s, khugepaged will still wait for a day before scanning again.
This patch causes khugepaged to wakeup immediately when the value is
changed and then sleep until that value is rewritten or the new value
lapses.
Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1605181453200.4786@chino.kir.corp.google.com
Signed-off-by: David Rientjes <rientjes@google.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions