[Devel] [PATCH vz9 1/2] prctl: add option to manage memory allocation scopes

2023-04-04 Thread Alexander Atanasov
Currently there is no way to hint the kernel to avoid triggering page reclaims. This is useful in networked file systems, which can deadlock in the synchronous reclaim path and to reduce jitter when streaming which can be induced by a synchronouse reclaim. To aid the userspace add interface to man

[Devel] [PATCH vz9 2/2] selftests/prctl: test managing memory allocation scopes

2023-04-04 Thread Alexander Atanasov
Add basic tests to verify memory allocation flags operations via prctl(...). https://jira.sw.ru/browse/PSBM-141577 Signed-off-by: Alexander Atanasov --- tools/testing/selftests/prctl/Makefile| 5 +- tools/testing/selftests/prctl/memflags-test.c | 96 +++ 2 files changed,