Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
0aca5b6d
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,发现更多精彩内容 >>
提交
0aca5b6d
编写于
11月 27, 2012
作者:
A
Amos Kong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
netperf: trivial fix of parameter name
Rename 'client' to 'clients' Signed-off-by:
N
Amos Kong
<
akong@redhat.com
>
上级
e9c8c123
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
tests/netperf.py
tests/netperf.py
+7
-7
未找到文件。
tests/netperf.py
浏览文件 @
0aca5b6d
...
...
@@ -220,7 +220,7 @@ def run_netperf(test, params, env):
@
error
.
context_aware
def
start_test
(
server
,
server_ctl
,
host
,
client
,
resultsdir
,
l
=
60
,
def
start_test
(
server
,
server_ctl
,
host
,
client
s
,
resultsdir
,
l
=
60
,
sessions_rr
=
"50 100 250 500"
,
sessions
=
"1 2 4"
,
sizes_rr
=
"64 256 512 1024 2048"
,
sizes
=
"64 256 512 1024 2048 4096"
,
...
...
@@ -232,7 +232,7 @@ def start_test(server, server_ctl, host, client, resultsdir, l=60,
@param server: netperf server ip for data connection
@param server_ctl: ip to control netperf server
@param host: localhost ip
@param client
: netperf client
ip
@param client
s: netperf clients'
ip
@param resultsdir: directory to restore the results
@param l: test duration
@param sessions_rr: sessions number list for RR test
...
...
@@ -305,17 +305,17 @@ def start_test(server, server_ctl, host, client, resultsdir, l=60,
for
i
in
sizes_test
:
for
j
in
sessions_test
:
if
(
protocol
==
"TCP_RR"
):
ret
=
launch_client
(
1
,
server
,
server_ctl
,
host
,
client
,
l
,
ret
=
launch_client
(
1
,
server
,
server_ctl
,
host
,
client
s
,
l
,
"-t %s -v 0 -P -0 -- -r %s,%s -b %s"
%
(
protocol
,
i
,
i
,
j
),
netserver_port
,
params
,
server_cyg
)
thu
=
parse_file
(
"/tmp/netperf.%s"
%
ret
[
'pid'
],
0
)
elif
(
protocol
==
"TCP_MAERTS"
):
ret
=
launch_client
(
j
,
server
,
server_ctl
,
host
,
client
,
l
,
ret
=
launch_client
(
j
,
server
,
server_ctl
,
host
,
client
s
,
l
,
"-C -c -t %s -- -m ,%s"
%
(
protocol
,
i
),
netserver_port
,
params
,
server_cyg
)
thu
=
parse_file
(
"/tmp/netperf.%s"
%
ret
[
'pid'
],
4
)
else
:
ret
=
launch_client
(
j
,
server
,
server_ctl
,
host
,
client
,
l
,
ret
=
launch_client
(
j
,
server
,
server_ctl
,
host
,
client
s
,
l
,
"-C -c -t %s -- -m %s"
%
(
protocol
,
i
),
netserver_port
,
params
,
server_cyg
)
thu
=
parse_file
(
"/tmp/netperf.%s"
%
ret
[
'pid'
],
4
)
...
...
@@ -371,7 +371,7 @@ def ssh_cmd(session, cmd, timeout=120):
@
error
.
context_aware
def
launch_client
(
sessions
,
server
,
server_ctl
,
host
,
client
,
l
,
nf_args
,
def
launch_client
(
sessions
,
server
,
server_ctl
,
host
,
client
s
,
l
,
nf_args
,
port
,
params
,
server_cyg
):
""" Launch netperf clients """
...
...
@@ -490,7 +490,7 @@ def launch_client(sessions, server, server_ctl, host, client, l, nf_args,
for
i
in
range
(
int
(
sessions
)):
t
=
threading
.
Thread
(
target
=
netperf_thread
,
kwargs
=
{
"i"
:
i
,
"numa_enable"
:
numa_enable
,
"client_s"
:
client
[
i
]})
"client_s"
:
client
s
[
i
]})
threads
.
append
(
t
)
t
.
start
()
ret
=
{}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录