Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
e0fcaab8
T
tp-qemu
项目概览
openeuler
/
tp-qemu
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
tp-qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e0fcaab8
编写于
1月 07, 2015
作者:
F
Feng Yang
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #239 from FengYang/test_protocols
Test protocols
上级
9ea180e6
ab58a802
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
67 addition
and
42 deletion
+67
-42
generic/tests/cfg/kdump.cfg
generic/tests/cfg/kdump.cfg
+1
-1
generic/tests/cfg/multi_queues_test.cfg
generic/tests/cfg/multi_queues_test.cfg
+1
-1
qemu/tests/cfg/device_assignment_netperf_test.cfg
qemu/tests/cfg/device_assignment_netperf_test.cfg
+1
-1
qemu/tests/cfg/ext_host_netperf_stress.cfg
qemu/tests/cfg/ext_host_netperf_stress.cfg
+22
-0
qemu/tests/cfg/flow_caches_stress_test.cfg
qemu/tests/cfg/flow_caches_stress_test.cfg
+1
-1
qemu/tests/cfg/mq_change_qnum.cfg
qemu/tests/cfg/mq_change_qnum.cfg
+1
-1
qemu/tests/cfg/multi_vms_netperf_stress.cfg
qemu/tests/cfg/multi_vms_netperf_stress.cfg
+1
-1
qemu/tests/cfg/netperf_stress_test.cfg
qemu/tests/cfg/netperf_stress_test.cfg
+8
-8
qemu/tests/cfg/sr_iov_netperf_test.cfg
qemu/tests/cfg/sr_iov_netperf_test.cfg
+1
-1
qemu/tests/cfg/suspend_under_netperf.cfg
qemu/tests/cfg/suspend_under_netperf.cfg
+1
-1
qemu/tests/netperf_stress.py
qemu/tests/netperf_stress.py
+29
-26
未找到文件。
generic/tests/cfg/kdump.cfg
浏览文件 @
e0fcaab8
...
...
@@ -56,7 +56,7 @@
client_path = /var/tmp/
netperf_test_duration = 360
netperf_para_sessions = 2
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
check_cmd = "pidof netserver"
RHEL.4:
netperf_link = netperf-2.4.5.tar.bz2
...
...
generic/tests/cfg/multi_queues_test.cfg
浏览文件 @
e0fcaab8
...
...
@@ -25,7 +25,7 @@
bg_sub_test = netperf_stress
bg_stress_run_flag = netperf_run
netperf_para_sessions = 2
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
netperf_client_link_win = "netperf.exe"
...
...
qemu/tests/cfg/device_assignment_netperf_test.cfg
浏览文件 @
e0fcaab8
...
...
@@ -11,7 +11,7 @@
client_path = /var/tmp/
netperf_test_duration = 600
netperf_para_sessions = 1
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
netperf_package_sizes = 32 64 128 256 512 1024 2048 4096 8192 16834
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
...
...
qemu/tests/cfg/ext_host_netperf_stress.cfg
0 → 100644
浏览文件 @
e0fcaab8
- ext_host_netperf_stress:
virt_test_type = qemu
type = netperf_stress
image_snapshot = yes
hostpassword = redhat
#netperf client is the vm, the netperf client is the ext_host
netperf_link = netperf-2.6.0.tar.bz2
server_path = /var/tmp/
client_path = /var/tmp/
netperf_test_duration = 120
netperf_para_sessions = 1
netperf_client = ${vms}
# please update netperf_server according to your env.
netperf_server = 192.168.11.21
test_protocols = TCP_RR TCP_CRR UDP_RR TCP_STREAM TCP_MAERTS TCP_SENDFILE UDP_STREAM
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
netperf_client_link_win = "netperf.exe"
server_path_win = "c:\\"
client_path_win = "c:\\"
RHEL.4:
netperf_link = netperf-2.4.5.tar.bz2
qemu/tests/cfg/flow_caches_stress_test.cfg
浏览文件 @
e0fcaab8
...
...
@@ -15,7 +15,7 @@
netperf_timeout = 600
compile_option_server = --enable-burst
compile_option_client = --enable-burst
#test_protocol = TCP_STREAM
#test_protocol
s
= TCP_STREAM
variants:
- vhost_on:
vhost=on
...
...
qemu/tests/cfg/mq_change_qnum.cfg
浏览文件 @
e0fcaab8
...
...
@@ -53,7 +53,7 @@
pkg_md5sum = 9654ffdfd4c4f2c93ce3733cd9ed9236
netperf_test_timeout = 360
netperf_para_sessions = 6
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
Windows:
server_download_link = "c:\\netserver-2.6.0.exe"
server_md5sum = 8f107e9df4f501d20cf46cccc426f4a9
...
...
qemu/tests/cfg/multi_vms_netperf_stress.cfg
浏览文件 @
e0fcaab8
...
...
@@ -13,7 +13,7 @@
client_path = /var/tmp/
netperf_test_duration = 600
netperf_para_sessions = 1
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
netperf_client_link_win = "netperf.exe"
...
...
qemu/tests/cfg/netperf_stress_test.cfg
浏览文件 @
e0fcaab8
...
...
@@ -10,7 +10,7 @@
client_path = /var/tmp/
netperf_test_duration = 120
netperf_para_sessions = 1
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
netperf_client_link_win = "netperf.exe"
...
...
@@ -28,16 +28,16 @@
netperf_server = localhost
variants:
- TCP_STREAM:
test_protocol= TCP_STREAM
test_protocol
s
= TCP_STREAM
- TCP_RR:
test_protocol= TCP_RR
test_protocol
s
= TCP_RR
- TCP_CRR:
test_protocol= TCP_CRR
test_protocol
s
= TCP_CRR
- TCP_MAERTS:
test_protocol= TCP_MAERTS
test_protocol
s
= TCP_MAERTS
- TCP_SENDFILE:
test_protocol= TCP_SENDFILE
test_protocol
s
= TCP_SENDFILE
- UDP_STREAM:
test_protocol= UDP_STREAM
test_protocol
s
= UDP_STREAM
- UDP_RR:
test_protocol= UDP_RR
test_protocol
s
= UDP_RR
qemu/tests/cfg/sr_iov_netperf_test.cfg
浏览文件 @
e0fcaab8
...
...
@@ -14,7 +14,7 @@
client_path = /var/tmp/
netperf_test_duration = 600
netperf_para_sessions = 1
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
netperf_package_sizes = 64 256 1024 4096 16384 65535
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
...
...
qemu/tests/cfg/suspend_under_netperf.cfg
浏览文件 @
e0fcaab8
...
...
@@ -15,7 +15,7 @@
client_path = /var/tmp/
netperf_test_timeout = 360
netperf_para_sessions = 6
test_protocol = TCP_STREAM
test_protocol
s
= TCP_STREAM
Windows:
netperf_server_link_win = "netserver-2.6.0.exe"
netperf_client_link_win = "netperf.exe"
...
...
qemu/tests/netperf_stress.py
浏览文件 @
e0fcaab8
...
...
@@ -171,11 +171,12 @@ def run(test, params, env):
# Run netperf with message size defined in range.
netperf_test_duration
=
int
(
params
.
get
(
"netperf_test_duration"
,
60
))
netperf_para_sess
=
params
.
get
(
"netperf_para_sessions"
,
"1"
)
test_protocol
=
params
.
get
(
"test_protocol
"
,
"TCP_STREAM"
)
test_protocol
s
=
params
.
get
(
"test_protocols
"
,
"TCP_STREAM"
)
netperf_cmd_prefix
=
params
.
get
(
"netperf_cmd_prefix"
,
""
)
netperf_output_unit
=
params
.
get
(
"netperf_output_unit"
,
" "
)
netperf_package_sizes
=
params
.
get
(
"netperf_package_sizes"
)
test_option
=
"-t %s -l %s"
%
(
test_protocol
,
netperf_test_duration
)
test_option
=
params
.
get
(
"test_option"
,
""
)
test_option
+=
" -l %s"
%
netperf_test_duration
if
params
.
get
(
"netperf_remote_cpu"
)
==
"yes"
:
test_option
+=
" -C"
if
params
.
get
(
"netperf_local_cpu"
)
==
"yes"
:
...
...
@@ -186,10 +187,13 @@ def run(test, params, env):
stop_time
=
start_time
+
netperf_test_duration
num
=
0
s_len
=
len
(
server_infos
)
for
protocol
in
test_protocols
.
split
():
error
.
context
(
"Testing %s protocol"
%
protocol
,
logging
.
info
)
t_option
=
"%s -t %s"
%
(
test_option
,
protocol
)
for
n_client
in
netperf_clients
:
index
=
num
%
s_len
server_ip
=
server_infos
[
index
][
"ip"
]
n_client
.
bg_start
(
server_ip
,
tes
t_option
,
n_client
.
bg_start
(
server_ip
,
t_option
,
netperf_para_sess
,
netperf_cmd_prefix
,
package_sizes
=
netperf_package_sizes
)
if
utils_misc
.
wait_for
(
n_client
.
is_netperf_running
,
10
,
0
,
1
,
...
...
@@ -202,7 +206,6 @@ def run(test, params, env):
# subprocess backgroundly, can set this run flag to False to stop
# the stress test.
env
[
"netperf_run"
]
=
True
for
n_client
in
netperf_clients
:
if
n_client
.
is_netperf_running
():
left_time
=
stop_time
-
time
.
time
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录