numactl/test
Lu zhiping 43ff68b8ba Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
..
README Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
bind_range Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
checkaffinity Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
checktopology Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
distance.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
ftok.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
mbind_mig_pages.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
migrate_pages.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
move_pages.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
mynode.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
node-parse.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
nodemap.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
numademo Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
pagesize.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
prefered.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
printcpu Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
randmap.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
realloc_test.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
regress Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
regress-io Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
regress2 Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
runltp Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
shmtest Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
tbitmap.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00
tshared.c Import Upstream version 2.0.12 2022-06-27 15:01:33 +08:00

README

Various simple test scripts to verify some parts of the NUMA API.

To do a full regression test run make test

You should have at least two nodes on a NUMA system for the test suite.

The tests in regress assume that there is enough memory free on nodes 0/1.
They consider PREFERRED/INTERLEAVE not hitting the first choice node an 
error. 

They also require a relatively idle machine to avoid too much
noise from memory allocation from other processes. Without
that regress1 might fail.

You can run the tests under valgrind with VALGRIND=valgrind make test
Older valgrind versions incorrectly report a uninitialized byte error
on set_mempolicy. That is a false positive.

TBD: more detailed unit tests for mbind / shm / {get,set}_mempolicy
Currently everything is tested using numactl only.