qemu.tests: Add qcow2 performance cases
Add 5 qcow2 performance cases: - write - read - convert - rebase - commit These tests will records the time for 1G size data operations. changes from v1: - Update the log format for the results - Update the qemu-io command line with option -n Signed-off-by: NYiqiao Pu <ypu@redhat.com> Acked-by: NSuqin Huang <shuang@redhat.com> Support -t parameter in commit, rebase, convert function Changes from v1: Add cache_mode as a parameter of rebase, commit, convert function. Signed-off-by: NFeng Yang <fyang@redhat.com> Send one command to write image by qemu-io Before testing qcow2 performace, drop cache Use "time strace -c" to get the result of commit/convert/rebase Use "time" to test write/read time changes from v1: 1: instead commands.get_output function with frame function 2: skip write offset 0 step when write offset 1 to get a clean image 3: rename fd as result_file changes from v2: 1: remove "'\'" in code 2: use writecmd to replace cmd, use iocmd to replace writecmd. Signed-off-by: NXiaomei Gao <xigao@redhat.com> Acked-by: NFeng Yang <fyang@redhat.com>
Showing
qemu/tests/cfg/qcow2perf.cfg
0 → 100644
qemu/tests/qcow2perf.py
0 → 100644
想要评论请 注册 或 登录