commit | ed66610bc01117d38520f7f50a29db17dfa1cf01 | [log] [tgz] |
---|---|---|
author | Li Wang <liwang@redhat.com> | Wed Mar 23 12:25:57 2016 +0800 |
committer | Cyril Hrubis <chrubis@suse.cz> | Thu Apr 07 15:35:40 2016 +0200 |
tree | 26e18cfc95174fac3f1b7c77986869274ec8a942 | |
parent | 44363705de7b1145274c88ef4af9f48ce1c25348 [diff] |
mm/oom: enable ksm before OOM-KSM testing In the alloc_mem() function, the memory flag is set to 'MADV_MERGEABLE', if (testcase == KSM && madvise(s, length, MADV_MERGEABLE) == -1) return errno; But it still doesn't send the whole item for test, unless the ksm is enabled. Generally, the '../ksm/run' default is 0, it should be changed to 1 to activate ksm. Signed-off-by: Li Wang <liwang@redhat.com>