diff options
author | Cyril Hrubis <chrubis@suse.cz> | 2019-03-06 17:16:33 +0100 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2019-03-07 13:43:18 +0100 |
commit | 55ee8a5adcf32d46372b32c0e470e42a82165c67 (patch) | |
tree | 9728efbf52573a4ac965246a5787921921ead298 /runtest | |
parent | b70e19de2815985581c915ba01d995d0206d9dd1 (diff) |
syscalls: Add set_mempolicy numa tests.
This is initial attempt to replace numa.sh tests that despite having
been fixed several times have still many shortcommings that wouldn't
easy to fix. It's not finished nor 100% replacement at this point but it
should be pretty good start.
The main selling points of these testcases are:
The memory allocated for the testing is tracked exactly. We are using
get_mempolicy() with MPOL_F_NODE | MPOL_F_ADDR that returns the node ID on
which specified address is allocated on to count pages allocated per node after
we set desired memory policy.
We also check for free memory on each numa memory mode and skip nodes
that don't have sufficient amount of memory for a particular test. The
tests checks usuall for twice as much memory per each node in order to
allow for allocations to be "misplaced".
The tests for file based shared interleaved mappings are no longer
mapping a single small file but rather than that we accumulate statistic
for larger amount of files over longer period of time and we also allow
for small offset (currently 10%). We should probably also increase the
number of samples we take as currently it's about 5MB in total on x86
although I haven't managed to make this test fail so far. This also
fixes the test on Btrfs where the synthetic test that expects the pages
to be distributed exactly equally fails.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
CC: Michal Hocko <mhocko@kernel.org>
CC: Vlastimil Babka <vbabka@suse.cz>
CC: Jan Stancek <jstancek@redhat.com>
Acked-by: Jan Stancek <jstancek@redhat.com>
Diffstat (limited to 'runtest')
-rw-r--r-- | runtest/numa | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtest/numa b/runtest/numa index 12aedbb4b..7885be90c 100644 --- a/runtest/numa +++ b/runtest/numa @@ -11,3 +11,8 @@ move_pages09 move_pages09 move_pages10 move_pages10 move_pages11 move_pages11 move_pages12 move_pages12 + +set_mempolicy01 set_mempolicy01 +set_mempolicy02 set_mempolicy02 +set_mempolicy03 set_mempolicy03 +set_mempolicy04 set_mempolicy04 |