You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mempolicy.c:
- new file
- provides libcrun_set_mempolicy as wrapper to set_mempolicy(2)
mempolicy.h:
- new file
- define libcrun_set_mempolicy
mempolicy_internal.h:
- new file
- define memory policy mode and flags maps to be shared and updated
in one single place
- numa python bindings are not available on most distros. This makes
numa features detection challenging for crun test suite without
causing false positives.
This header provides shared common definitions with
tests_mempolicy_helper.c that is used by the test suite and avoid
duplicate code around
container.c:
- add call to libcrun_set_mempolicy in libcrun_container_run_internal
tests/tests_mempolicy_helper.c:
- new file
- print a list of numa features detected during the build
- shares info from mempolicy_internal.h
tests/test_mempolicy.py:
- new file
- add both negative and positive tests for mempolicy.c
- tests will run if hw supports numa or skip
Makefile.am:
- update
- changes verified also with make distcheck
global: add build require on numactl-devel or equivalent
Signed-off-by: Fabio M. Di Nitto <[email protected]>
0 commit comments