Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
tp-qemu
提交
d489ad12
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,发现更多精彩内容 >>
提交
d489ad12
编写于
11月 26, 2013
作者:
R
Rudá Moura
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1129 from ypu/ksm
Enlarge ksm overcommit test time
上级
b4c41840
ee7e635f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
10 deletion
+13
-10
qemu/tests/ksm_overcommit.py
qemu/tests/ksm_overcommit.py
+10
-7
qemu/tests/virtual_nic_send_buffer.py
qemu/tests/virtual_nic_send_buffer.py
+1
-1
tests/ntttcp.py
tests/ntttcp.py
+1
-1
tests/whql_env_setup.py
tests/whql_env_setup.py
+1
-1
未找到文件。
qemu/tests/ksm_overcommit.py
浏览文件 @
d489ad12
...
...
@@ -141,7 +141,8 @@ def run_ksm_overcommit(test, params, env):
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
60
*
perf_ratio
)
cmd
=
"mem.value_fill(%d)"
%
skeys
[
0
]
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
120
*
perf_ratio
)
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
fill_base_timeout
*
2
*
perf_ratio
)
# Let ksm_overcommit_guest.py do its job
# (until shared mem reaches expected value)
...
...
@@ -182,7 +183,7 @@ def run_ksm_overcommit(test, params, env):
cmd
=
"mem.static_random_fill()"
data
=
_execute_allocator
(
cmd
,
lvms
[
0
],
lsessions
[
0
],
120
*
perf_ratio
)[
1
]
fill_base_timeout
*
2
*
perf_ratio
)[
1
]
r_msg
=
data
.
splitlines
()[
-
1
]
logging
.
debug
(
"Return message of static_random_fill: %s"
,
r_msg
)
...
...
@@ -311,7 +312,8 @@ def run_ksm_overcommit(test, params, env):
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
60
*
perf_ratio
)
cmd
=
"mem.value_fill(%d)"
%
(
skeys
[
0
])
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
90
*
perf_ratio
)
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
fill_base_timeout
*
perf_ratio
)
# Wait until ksm_overcommit_guest.py merges pages (3 * ksm_size / 3)
shm
=
0
...
...
@@ -339,7 +341,7 @@ def run_ksm_overcommit(test, params, env):
for
i
in
range
(
0
,
max_alloc
):
cmd
=
"mem.static_random_fill()"
data
=
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
90
*
perf_ratio
)[
1
]
fill_base_timeout
*
perf_ratio
)[
1
]
data
=
data
.
splitlines
()[
-
1
]
logging
.
debug
(
data
)
...
...
@@ -362,7 +364,7 @@ def run_ksm_overcommit(test, params, env):
for
i
in
range
(
0
,
max_alloc
):
cmd
=
"mem.value_fill(%d)"
%
skeys
[
0
]
data
=
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
120
*
perf_ratio
)[
1
]
fill_base_timeout
*
2
*
perf_ratio
)[
1
]
logging
.
debug
(
utils_test
.
get_memory_info
([
vm
]))
logging
.
info
(
"Phase 2d: PASS"
)
...
...
@@ -377,7 +379,7 @@ def run_ksm_overcommit(test, params, env):
for
i
in
range
(
0
,
max_alloc
):
cmd
=
"mem.static_random_fill(96)"
data
=
_execute_allocator
(
cmd
,
vm
,
lsessions
[
i
],
60
*
perf_ratio
)[
1
]
fill_base_timeout
*
perf_ratio
)[
1
]
data
=
data
.
splitlines
()[
-
1
]
out
=
int
(
data
.
split
()[
4
])
...
...
@@ -484,7 +486,7 @@ def run_ksm_overcommit(test, params, env):
overcommit
=
1
mem
=
host_mem
# 32bit system adjustment
if
not
params
[
'image_name'
].
endswith
(
"64
"
):
if
"64"
not
in
params
.
get
(
"vm_arch_name
"
):
logging
.
debug
(
"Probably i386 guest architecture, "
"max allocator mem = 2G"
)
# Guest can have more than 2G but
...
...
@@ -585,6 +587,7 @@ def run_ksm_overcommit(test, params, env):
# ksm_size: amount of memory used by allocator
ksm_size
=
mem
-
guest_reserve
logging
.
debug
(
"Memory used by allocator on guests = %dM"
,
ksm_size
)
fill_base_timeout
=
ksm_size
/
10
# Creating the first guest
env_process
.
preprocess_vm
(
test
,
params
,
env
,
vm_name
)
...
...
qemu/tests/virtual_nic_send_buffer.py
浏览文件 @
d489ad12
...
...
@@ -23,7 +23,7 @@ def run_virtual_nic_send_buffer(test, params, env):
Linux guest env setup, install udt, set env and iptables
"""
lib_path
=
"/usr/lib64"
if
params
.
get
(
"platform"
,
64
)
==
32
:
if
'64'
not
in
params
.
get
(
"vm_arch_name"
,
'x86_64'
)
:
lib_path
=
"/usr/lib"
cmd
=
r
"git clone %s udt-git; "
%
params
.
get
(
"udt_url"
)
cmd
+=
r
"cd udt-git/udt4; make; make install; "
...
...
tests/ntttcp.py
浏览文件 @
d489ad12
...
...
@@ -28,7 +28,7 @@ def run_ntttcp(test, params, env):
results_path
=
os
.
path
.
join
(
test
.
resultsdir
,
'raw_output_%s'
%
test
.
iteration
)
platform
=
"x86"
if
params
.
get
(
"platform"
)
==
"x86_64"
:
if
"64"
in
params
[
"vm_arch_name"
]
:
platform
=
"x64"
buffers
=
params
.
get
(
"buffers"
).
split
()
buf_num
=
params
.
get
(
"buf_num"
,
200000
)
...
...
tests/whql_env_setup.py
浏览文件 @
d489ad12
...
...
@@ -107,7 +107,7 @@ def run_whql_env_setup(test, params, env):
if
nic_cmd
:
for
index
,
nic
in
enumerate
(
re
.
split
(
"\s+"
,
params
.
get
(
"nics"
))):
setup_params
=
params
.
get
(
"nic_setup_params_%s"
%
nic
,
""
)
if
params
.
get
(
"
platform
"
,
""
)
==
"x86_64"
:
if
params
.
get
(
"
vm_arch_name
"
,
""
)
==
"x86_64"
:
nic_cmd
=
re
.
sub
(
"set"
,
"set_64"
,
nic_cmd
)
cmd_list
.
append
(
"%s %s %s"
%
(
nic_cmd
,
str
(
index
+
1
),
setup_params
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录