KSM-overcommit test v.2 (python version)
Hi,
based on your requirements we have created new version
of KSM-overcommit patch (submitted in September).
Describe:
It tests KSM (kernel shared memory) with overcommit of memory.
Changelog:
1) Based only on python (remove C code)
2) Add new test (check last 96B)
3) Separate test to (serial,parallel,both)
4) Improve log and documentation
5) Add perf constat to change time limit for waiting. (slow computer problem)
Functionality:
KSM test start guests. They are connect to guest over ssh. Copy and run allocator.py to guests.
Host can run any python command over Allocator.py loop on client side.
Start run_ksm_overcommit.
Define host and guest reserve variables (host_reserver,guest_reserver). Calculate amount of virtual machine and their memory based on variables host_mem and overcommit.
Check KSM status.
Create and start virtual guests.
Test :
a] serial
1) initialize, merge all mem to single page
2) separate first guset mem
3) separate rest of guest up to fill all mem
4) kill all guests except for the last
5) check if mem of last guest is ok
6) kill guest
b] parallel
1) initialize, merge all mem to single page
2) separate mem of guest
3) verification of guest mem
4) merge mem to one block
5) verification of guests mem
6) separate mem of guests by 96B
7) check if mem is all right
8) kill guest
allocator.py (client side script)
After start they wait for command witch they make in client side. mem_fill class implement commands to fill, check mem and return error to host.
We need client side script because we need generate lot of GB of special data.
Future plane:
We want to add to log information about time spend in task. Information from log we want to use to automatic compute perf contant. And add New tests.
client/tests/kvm/kvm_tests.cfg.sample +17 -0
@@ -118,6 +118,23 @@ variants: test_name = npb test_control_file = npb.control + - ksm_overcommit: + # Don't preprocess any vms as we need to change it's params + vms = '' + image_snapshot = yes + kill_vm_gracefully = no + type = ksm_overcommit + ksm_swap = yes # yes | no + no hugepages + # Overcommit of host memmory + ksm_overcommit_ratio = 3 + # Max paralel runs machine + ksm_paralel_ratio = 4 + variants: + - serial + ksm_test_size = "serial" + - paralel + ksm_test_size = "paralel" - linux_s3: install setup unattended_install type = linux_s3
client/tests/kvm/tests/ksm_overcommit.py new file +605 -0
605 lines not on this page · raw message
client/tests/kvm/unattended/allocator.py new file +213 -0
213 lines not on this page · raw message