Hi,

for the virtio_console test ('client/tests/kvm/tests/virtio_console.py') 
we have created a mechanism for gathering the total and processes load 
informations. We think it might be an income for other tests too.

Should we improve it and insert it into the 
'client/tests/kvm/kvm_test_utils.py' or for the whole autotest 
'client/common_lib/utils.py'?

Do you have any special requirements?


Example of usage (future version):
...
loads = System_load([16203, vm1.pid, 0])
...
loads.start()
#DO YOUR STUFF
loads.stop()
...
header, rows = loads.get_status()
logging.info(matrig_to_string(rows, header))
...

OUTPUT:
NAME                    PID     USER    SYS     SUM     TIME
vim                     16203   0%      0%      0%      120.103s
/usr/bin/qemu-kvm       5986    87%     18%     105%    120.103s
TOTAL                   ---     95%     37%     142%    120.103s


We think that major and minor page faults and soft/hard IRQ counts might 
be also beneficial. Feel free to make your wishes before we start 
rewriting it.

Best regards,
Lukáš and Jiří
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to