diff options
author | Arnd Bergmann <[email protected]> | 2018-01-09 17:26:24 +0100 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2018-01-10 08:22:47 -0700 |
commit | 4c1baad223906943b595a887305f2e8124821dad (patch) | |
tree | 47b232153aab074ebc41a6bb2bc71fd31ae8f02f /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 912ec316686df352028afb6efec59e47a958a24d (diff) |
kselftest: fix OOM in memory compaction test
Running the compaction_test sometimes results in out-of-memory
failures. When I debugged this, it turned out that the code to
reset the number of hugepages to the initial value is simply
broken since we write into an open sysctl file descriptor
multiple times without seeking back to the start.
Adding the lseek here fixes the problem.
Cc: [email protected]
Reported-by: Naresh Kamboju <[email protected]>
Link: https://bugs.linaro.org/show_bug.cgi?id=3145
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions