diff options
author | Andrea Arcangeli <[email protected]> | 2011-12-08 14:33:57 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-12-09 07:50:28 -0800 |
commit | 1dfb059b9438633b0546c5431538a47f6ed99028 (patch) | |
tree | 4e6181dfc2f8f21e01938246842305243c1bdb0e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | b53fc7c2974a50913f49e1d800fe904a28c338e3 (diff) |
thp: reduce khugepaged freezing latency
khugepaged can sometimes cause suspend to fail, requiring that the user
retry the suspend operation.
Use wait_event_freezable_timeout() instead of
schedule_timeout_interruptible() to avoid missing freezer wakeups. A
try_to_freeze() would have been needed in the khugepaged_alloc_hugepage
tight loop too in case of the allocation failing repeatedly, and
wait_event_freezable_timeout will provide it too.
khugepaged would still freeze just fine by trying again the next minute
but it's better if it freezes immediately.
Reported-by: Jiri Slaby <[email protected]>
Signed-off-by: Andrea Arcangeli <[email protected]>
Tested-by: Jiri Slaby <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: "Srivatsa S. Bhat" <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions