]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/functional: add memlock tests
authorAlexandr Moshkov <dtalexundeer@yandex-team.ru>
Thu, 5 Jun 2025 06:59:11 +0000 (11:59 +0500)
committerThomas Huth <thuth@redhat.com>
Wed, 11 Jun 2025 10:17:57 +0000 (12:17 +0200)
commitec3a7a7150462b2d1be5b71c2e4fc6338366da25
tree3bfb79dd4f439fae66e675445e941139c1ac92ec
parent23c90999f64598439990f9a599d6cb25df90eccf
tests/functional: add memlock tests

Add new tests to check the correctness of the `-overcommit memlock`
option (possible values: off, on, on-fault) by using
`/proc/{qemu_pid}/status` file to check in VmSize, VmRSS and VmLck
values:

* if `memlock=off`, then VmLck = 0;
* if `memlock=on`, then VmLck > 0 and almost all memory is resident;
* if `memlock=on-fault`, then VmLck > 0 and only few memory is resident.

Signed-off-by: Alexandr Moshkov <dtalexundeer@yandex-team.ru>
Message-ID: <20250605065908.299979-3-dtalexundeer@yandex-team.ru>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/functional/meson.build
tests/functional/test_memlock.py [new file with mode: 0755]