er to fit the
number of disks. See the code for details.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/multi_disk.py | 346 ++
client/virt/guest-os.cfg.sample |6 +-
client/virt/subtests.cfg.sample | 48 +-
3 files changed, 363 insertio
Hi,
This patch adds support for custom disk specification in multi_disk test. It
allows us to specify any feature supported by params dictionary for additional
disks, disk-by-disk or using some logic to create custom setups.
Please see the detailed description in patches.
Pull request:
https:/
-off-by: Lukas Doktor
---
client/tests/kvm/tests/cdrom.py | 128 +++
client/virt/subtests.cfg.sample |5 +-
2 files changed, 106 insertions(+), 27 deletions(-)
diff --git a/client/tests/kvm/tests/cdrom.py b/client/tests/kvm/tests/cdrom.py
index ebd3e8c
= "/dev/sd*"
image_raw_device_stg = yes
image_format_stg = raw
drive_index_stg = 3
drive_format_stg = scsi-block
indirect_image_select_stg = -1
Signed-off-by: Lukas Doktor
---
client/virt/base.cfg.sample |2 ++
client/virt/virt_vm.py | 22 ++
Hi,
this patch adds support for indirect image_name specification. The purpose is
to set wildcard + offset instead of the exact name.
I'm using it for testing devices I add in the test. Eg. I use pre_script =
"modprobe scsi_debug" which adds new /dev/sg? device. I know it's the last
device so
* Add ehci controller when usbstick is selected
* Add default number of usb_max_port
With those mini-changes it's possible to run every test with usb_stick
block device without further test/cfg modifications.
Signed-off-by: Lukas Doktor
---
client/virt/guest-hw.cfg.sample |2 ++
c
uot; (bool) which is
required for this test.
Signed-off-by: Lukas Doktor
---
client/virt/kvm_vm.py |6 ++-
client/virt/subtests.cfg.sample | 35 +
client/virt/tests/dd_test.py| 105 +++
3 files changed, 144 insertions(+), 2
Minor fixes in memory_move test.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py |4 +---
client/virt/subtests.cfg.sample |1 +
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/client/tests/kvm/tests/cgroup.py b/client/tests/kvm/tests/cgroup.py
index
This test tests the memory pinning via cpuset.mems cgroup feature. It
changes cgroups with different node setting.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 99 ++
client/virt/subtests.cfg.sample |3 +
2 files changed, 102
can force test to set smp by cgroup_use_half_smp.
When nothing is specified it tries to run on current VM(s).
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 75 +++---
client/virt/guest-hw.cfg.sample | 12 --
c
Hi,
I find out (IMO) better solution of smp parameter in cgroup testing. It doesn't
need any changes to import order and it. Also now when cgroup_speeds is set the
test calculates SMP from it.
See pull request on:
https://github.com/autotest/autotest/pull/225
Kind regards,
Lukáš Doktor
--
To
settings.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests-shared.cfg.sample |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/tests-shared.cfg.sample
b/client/tests/kvm/tests-shared.cfg.sample
index c6304b3..bda982d 100644
--- a/client/tests/kvm
Adds option to create raw images with dd (non-sparse file unlike
qemu-img one).
Signed-off-by: Lukas Doktor
---
client/virt/virt_vm.py | 38 ++
1 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/client/virt/virt_vm.py b/client/virt/virt_vm.py
Currently boot and snapshot parameters are either 'yes' or not present.
This patch enables specify 'yes', 'no' or not present. 'no' option
is necessarily eg. when -snapshot is present and we want to override
the 'snapshot=off' value on one devi
ic".
NOTE: scsi-block and scsi-generic are passthrough devices and can
be used only with physical HW (/dev/sd*, resp. /dev/sg*)
Signed-off-by: Lukas Doktor
---
client/virt/guest-hw.cfg.sample |8
client/virt/kvm_vm.py | 29 +
2 fi
was impossible to set those targets
directly from cmd-line, although hot-plug worked fine.
Pull request:
https://github.com/autotest/autotest/pull/170
Regards,
Lukáš Doktor
Signed-off-by: Lukas Doktor ldok...@redhat.com
--
To unsubscribe from this list: send the line "unsubscribe kvm&qu
* Add cgroup_memory_limit_kb, cgroup_memory_move_mb variables into cfg
to allow user specify the amount of tested/stressed memory
* Use iflag=fullblock to force allocate the full blocks in dd
* FIX cpu enumeration in cpuset subtest
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests
Hi guys,
Please find the cpu_cfs_util test which tests the usage of CFS scheduler when
cpu.cfs_quota_us is set. It start-ups enough VMs to overcome twice all host's
CPUs and sets 50% quota for each process. In theory the utilisation should be
exactly 100%. We measure the difference between all
This test tests the cpu.cfs_* subsystem. It's focused on known issue with
multiple threads in related cpu cgroup with defined cpu.cfs_quota_us. CFS
might schedule those threads very inefficiently.
* Add TestCpuCFS
Signed-off-by: Lukas Doktor
---
client/tests/kvm/subtests.cfg.sample |
* Move LoadPerCpu into cgroup_common.py (cgroup-kvm will need it too)
* [FIX] Use etraceback
* Code cleanup
---
client/tests/cgroup/cgroup.py| 79 ++
client/tests/cgroup/cgroup_common.py | 22 +
2 files changed, 35 insertions(+), 66 deletions(-)
Tests the cpuset.cpus cgroup feature. It stresses all VM's CPUs
while switching between cgroups with different setting.
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup_common.py |4 +
client/tests/kvm/tests/cgroup.py | 108 +-
2 files ch
Tests the cpuset.cpus cgroup feature. It stresses all VM's CPUs
and changes the CPU affinity. Verifies correct behaviour.
* Add TestCpusetCpus test
* import cleanup
* private function names cleanup
---
client/tests/cgroup/cgroup_common.py |2 +
client/tests/kvm/tests/cgroup.py | 211
Hi,
This patchset fixes some issues in cgroup_common.py library and adds 2 new
tests to cgroup-kvm test.
Please find the details in each patch.
Sent to upstream as pull req. 103:
https://github.com/autotest/autotest/pull/103
Regards,
Lukáš
--
To unsubscribe from this list: send the line "uns
upied CPUs. With thread
overcommit the scheduler should stabilize accordingly to speeds
value.
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup_common.py |8 +-
client/tests/kvm/tests/cgroup.py | 258 +-
2 files changed, 260 insertions(+), 6 dele
Hi guys,
I have a new kvm cgroup test for you.
This time it's in cpu cgroup and it uses cpu.shares capability. It modifies
the number of shares/time_slices which each process gets from the scheduler
As the verification is kind of tricky I'm testing only three different
scenerios and only symetric
st
* Adds assign_vm_into_cgroup() function
* Code cleanup
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup_common.py | 16 +---
client/tests/kvm/tests/cgroup.py | 158 +++---
2 files changed, 145 insertions(+), 29 deletions(-)
diff --git a/client/te
This subtest tests the memory.limit_in_bytes cgroup capability by running
VM which demands more memory than permitted by it's cgroup. Everything
over the limit should be swapped out.
* Adds TestMemoryLimit test
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py |
This subtest tests the memory.move_charge_at_immigrate cgroup capability.
It changes memory cgroup while running memory intense app inside the guest.
* Adds TestMemoryMove test
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 85 +-
1
Hi guys,
I have three new subtests for kvm cgroup test. First one tests the
freezer cgroup subsystem, the two following tests the memory cgroup
subsystem.
* Add TestFreezer subtest (second pass)
* Add MemoryMove subtest
* Add MemoryLimit subtest
* New assign_vm_into_cgroup() function
* Minor
st
* Adds assign_vm_into_cgroup() function
* Code cleanup
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup_common.py | 16 +---
client/tests/kvm/tests/cgroup.py | 159 +++---
2 files changed, 146 insertions(+), 29 deletions(-)
diff --git a/client/te
st
* Adds assign_vm_into_cgroup() function
* Code cleanup
Signed-off-by: Lukas Doktor ldok...@redhat.com
Please see the pull request for updates:
https://github.com/autotest/autotest/pull/55
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@
the host
file)
* improved logging
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 234 +-
1 files changed, 203 insertions(+), 31 deletions(-)
diff --git a/client/tests/kvm/tests/cgroup.py b/client/tests/kvm/tests/cgroup.py
index 6c64532
Hi guys,
I have a new subtest which tests the 'devices' cgroup subsystem and improve the
logging a bit.
Please find the pull request on github:
https://github.com/autotest/autotest/pull/48
Cheers,
Lukáš
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message
different speed limits and verifies the correct
behaviour.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 317 --
1 files changed, 300 insertions(+), 17 deletions(-)
diff --git a/client/tests/kvm/tests/cgroup.py b/client/tests/kvm
rror.TestError
* get_property: return [""] when no input
* code cleanup
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 10 ++--
client/tests/cgroup/cgroup_common.py | 102 --
2 files changed, 53 insertions(+), 59 deleti
* Use exceptions instead of returns
* cgroup and cgroup-kvm tests were modified to fit
* other code cleanups
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 169 +-
client/tests/cgroup/cgroup_common.py | 140
formating
tracebacks
Signed-off-by: Lukas Doktor
---
client/common_lib/base_utils.py | 24 -
client/tests/kvm/tests/cgroup.py | 262 +-
client/virt/kvm_monitor.py |5 +-
3 files changed, 200 insertions(+), 91 deletions(-)
diff --git a/client/
Hi guys,
This is a patchset with four new tests to KVM specific cgroup testing. Also I
made some modifications into (general) cgroup_common library which makes cgroup
testing better readable and more safe to execute. Please find the details in
each patch.
Also please beware of qemu-kvm bugs wh
different speed limits and verifies the correct
behaviour.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 371 ++
1 files changed, 331 insertions(+), 40 deletions(-)
diff --git a/client/tests/kvm/tests/cgroup.py b/client/tests/kvm
rror.TestError
* get_property: return [""] when no input
* code cleanup
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 10 ++--
client/tests/cgroup/cgroup_common.py | 102 --
2 files changed, 53 insertions(+), 59 deleti
* Use exceptions instead of returns
* cgroup and cgroup-kvm tests were modified to fit
* other code cleanups
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 169 +-
client/tests/cgroup/cgroup_common.py | 140
* functions for adding and removal of drive to vm using host-file or
host-scsi_debug device.
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/cgroup.py | 125 -
1 files changed, 108 insertions(+), 17 deletions(-)
diff --git a/client/tests/kvm
This is a patchset with four new tests to KVM specific cgroup testing. Also I
made some modifications into (general) cgroup_common library which makes cgroup
testing better readable and more safe to execute. Please find the details in
each patch.
Also please beware of qemu-kvm bugs which occurr
mall (10MB) virtio_blk disk
2) Assigns each to different cgroup and sets blkio.weight 100/1000
3) Runs dd with flag=direct (read/write) from the virtio_blk disk
repeatidly
4) After 1 minute checks the results. If the ratio is better then 1:3,
test passes
Signed-off-by: Lukas Doktor
---
cl
[FIX] incorrect prop/dir variable usage
[MOD] Use __del__() instead of cleanup - Simplifies the code with small
drawback (failures can't be handled. Anyway, they are not critical and were
never handled before...)
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup_common.py |
Hi guys,
Do you remember the discussion about cgroup testing in autotest vs. LTP? I hope
there won't be any doubts about this one as ground_test (+ first 2 subtests)
are strictly focused on cgroups features enforced on KVM guest systems. Also
more subtests will follow if you approve the test st
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 44 +++-
client/tests/cgroup/cgroup_client.py | 61 -
2 files changed, 64 insertions(+), 41 deletions(-)
diff --git a/client/tests/cgroup/cgroup.py b/client/tests
Tests the cgroup cpuset (cpu affinity) functionality. It spawn no_cpus+1
cpu-intensive proces', limits the cpu affinity to cpu0 using cgroups and
verifies. Than it do the same on all cpus except the cpu0.
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py |
* slight modification of the subtests executions
* modified clean-up function
* raise errors instead of returns
* more failure checking
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 116 +
client/tests/cgroup/cgroup_client.py |3
Hi,
I changed a bit the structure and added the cpuset test.
The first patch is equal to previous post (including the missing file). Other pa
tches are bugfixies and new cpuset test.
Please let me know if this structure is usable so I can continue in test develop
ment.
Regards,
Lukáš
--
To uns
ecuted and controled using cgroups
* contains smoke, memory, cpu and devices tests which were manually tested to
break cgroup rules and will be used in the cgroup.py subtests
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 239 +
client/te
Hi,
I'm sorry for missing cgroup_common.py in previous patchset. I forgot to add it
to git. You can find it in attached patch.
Regards,
Lukáš
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vg
[new] cgroup_common.py
* library for handling cgroups
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py|5 +-
client/tests/cgroup/cgroup_common.py | 327 ++
2 files changed, 331 insertions(+), 1 deletions(-)
create mode 100755 client
Hi guys,
this test is a basic structure for cgroup testing. It includes memory (mount -t
cgroup -o memory ...) test as an example.
Please let me know if you like this structure so I can make additional cgroup
subtests.
Regards,
Lukáš
--
To unsubscribe from this list: send the line "unsubscrib
ecuted and controled using cgroups
* contains smoke, memory, cpu and devices tests which were manually tested to
break cgroup rules and will be used in the cgroup.py subtests
Signed-off-by: Lukas Doktor
---
client/tests/cgroup/cgroup.py| 236 ++
client/te
Hi,
the tar command must use relative path to strip the leading '/' directories.
Without this patch the kvm autotest's autotest test extracts autotest on guest
into the original location of the autotest on the host. The location might not
correspond with the test location and the test might fa
Signed-off-by: Lukas Doktor
---
client/virt/virt_test_utils.py |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/virt/virt_test_utils.py b/client/virt/virt_test_utils.py
index 2636352..1ef4f69 100644
--- a/client/virt/virt_test_utils.py
+++ b/client/virt
imilar to: the "FIXME: workaround the problem with qemu-kvm stall when too
much data is sent without receiving". Using migration this occures with even
smaller slices.
virtio_console_migration_offline = "serialport:5:4096:1:1"
Signed-off-by: Jiří Župka
Signed-off-by: Lukas
It adds the online and offline migration test for virtio_console. It uses the
loopback inside the guest. The host sends the data and checks it's validity
while the guest is migrated (on localhost, multiple times).
You can find more info in the patch itself.
Regards,
Lukáš Doktor
--
To unsubscr
Signed-off-by: Lukas Doktor
---
client/tests/kvm/scripts/virtio_guest.py | 23 +++
client/tests/kvm/tests/virtio_console.py | 11 +++
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/client/tests/kvm/scripts/virtio_guest.py
b/client/tests/kvm
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/virtio_console.py |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/client/tests/kvm/tests/virtio_console.py
b/client/tests/kvm/tests/virtio_console.py
index 30bdcbf..144aca3 100644
--- a/client/tests/kvm/tests
Hello,
The first patch adds an lseek test. The second one is just a mirror corrections
of critical flags for some of the smoke_test subtests.
The lseek test do what is expected. The result of lseek on
virtconsole/virtserialport should be -ESPIPE or err 29 in python.
Regards,
Lukáš
--
To unsub
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/virtio_console.py | 21 +
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/client/tests/kvm/tests/virtio_console.py
b/client/tests/kvm/tests/virtio_console.py
index 3edd051..2f1d5eb 100644
--- a/client
This patch spreads the virtconsoles and virtserialports across multiple
virtio-serial-pci devices.
There has been a discussion about how to test the communication between various
topologies of virtio_consoles. This patch keeps the old way of configuration
but still lets the user to test the com
From: Jiří Župka
---
client/tests/kvm/tests/virtio_console.py | 16 +++-
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/client/tests/kvm/tests/virtio_console.py
b/client/tests/kvm/tests/virtio_console.py
index d69c0a5..3edd051 100644
--- a/client/tests/kvm/tests/v
This patch modifies current virtio_console test to work on python2.4. It only
modifies the HOST side of the test thus it depends on "[KVM-AUTOTEST][PATCH
2/2][virtio-console] Fix compatibility with python 2.4." patch which fixes the
GUEST side.
Tested on Fedora 13 with python 2.4.6.
--
To unsub
Hi,
this patch calculates the columns' width including the header's one. In
addition it accepts the header of booth types - tuple or list.
Regards,
Lukas
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at
Signed-off-by: Lukas Doktor
---
client/common_lib/utils.py |7 ++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/client/common_lib/utils.py b/client/common_lib/utils.py
index f44dd1e..6b8cdf6 100644
--- a/client/common_lib/utils.py
+++ b/client/common_lib/utils.py
Signed-off-by: Lukas Doktor
Signed-off-by: Jiri Zupka
---
client/tests/kvm/tests/virtio_console.py | 18 +-
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/client/tests/kvm/tests/virtio_console.py
b/client/tests/kvm/tests/virtio_console.py
index 058bb94
After the first part of perf_test there were still data in a buffer which
caused console failures in this test. With this fix all data are read out and
it's possible to use test_perf with console (virtio_console_perf = "console")
Additionaly this patch contains some minor code cleanups.
--
To u
Cheers,
we are back with new version of virtio_console. This version is more similar to
upstream C virtio_console test so it will be easier to maintain. Also we moved
the scripts/console_switch.py to more sensible scripts/virtio_guest.py
the patch with explanation follows.
Best regards,
Lukas
Signed-off-by: Lukas Doktor
---
client/tests/kvm/scripts/consoleSwitch.py | 217 +
client/tests/kvm/tests/virtio_console.py | 730 +
client/tests/kvm/tests_base.cfg.sample|7 +
3 files changed, 954 insertions(+), 0 deletions(-)
create mode 100644
and
guest/host average loads.
Best regards,
Lukas Doktor
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signed-off-by: Lukas Doktor
Signed-off-by: Jiri Zupka
---
client/tests/kvm/tests/ksm_overcommit.py | 47 -
client/tests/kvm/tests_base.cfg.sample |2 -
2 files changed, 39 insertions(+), 10 deletions(-)
diff --git a/client/tests/kvm/tests/ksm_overcommit.py
This patch adds support for newer sysfs interface used since Fedora 12.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signed-off-by: Lukas Doktor
Signed-off-by: Jiri Zupka
---
client/tests/kvm/scripts/allocator.py| 11 +---
client/tests/kvm/tests/ksm_overcommit.py | 41 +++---
client/tests/kvm/tests_base.cfg.sample |6 ++--
3 files changed, 47 insertions(+), 11
Signed-off-by: Jiri Zupka
---
client/tests/kvm/tests/ksm_overcommit.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/tests/ksm_overcommit.py
b/client/tests/kvm/tests/ksm_overcommit.py
index b3d6880..24d6643 100644
--- a/client/tests/kvm/tests/ksm_over
Signed-off-by: Lukas Doktor
---
client/tests/kvm/tests/ksm_overcommit.py | 10 ++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/client/tests/kvm/tests/ksm_overcommit.py
b/client/tests/kvm/tests/ksm_overcommit.py
index 4aa6deb..b3d6880 100644
--- a/client/tests/kvm
Signed-off-by: Lukas Doktor
---
client/tests/kvm/kvm_vm.py |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py
index d1e0246..c203e14 100755
--- a/client/tests/kvm/kvm_vm.py
+++ b/client/tests/kvm/kvm_vm.py
@@ -396,7
Hi,
thanks for nice page about git workflow. I always wanted to try it but never
had the time to sit down and learn...
Booth the TMPFS and 0.055 guest_reserve constant are set empirically using
various RHEL and Fedora guest/hosts. Smaller hosts can work with smaller
(0.045) constant but we did
80 matches
Mail list logo