Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
32c6f2aa
"...resnet50_tensorflow.git" did not exist on "73d8226d9437ca0099d498abc9470ae1ee0c1cfe"
Commit
32c6f2aa
authored
Mar 03, 2023
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
May 09, 2023
Browse files
experiments/sysbench_memory: perform read benchmark
parent
49265377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
10 deletions
+15
-10
experiments/pyexps/sysbench_memory.py
experiments/pyexps/sysbench_memory.py
+15
-10
No files found.
experiments/pyexps/sysbench_memory.py
View file @
32c6f2aa
...
@@ -58,29 +58,34 @@ class SysbenchMemoryBenchmark(node.AppConfig):
...
@@ -58,29 +58,34 @@ class SysbenchMemoryBenchmark(node.AppConfig):
return
{
**
m
,
**
super
().
config_files
()}
return
{
**
m
,
**
super
().
config_files
()}
def
run_cmds
(
self
,
_
):
def
run_cmds
(
self
,
_
):
return
[
cmds
=
[]
'mount -t proc proc /proc'
,
if
self
.
disaggregated
:
'mount -t sysfs sysfs /sys'
,
cmds
+=
[
'free -m'
,
'mount -t proc proc /proc'
,
(
'mount -t sysfs sysfs /sys'
,
f
'insmod /tmp/guest/farmem.ko base_addr=0x
{
self
.
disagg_addr
:
x
}
'
'free -m'
,
f
'size=0x
{
self
.
disagg_size
:
x
}
nnid=1 drain_node=1'
(
),
f
'insmod /tmp/guest/farmem.ko '
f
'base_addr=0x
{
self
.
disagg_addr
:
x
}
'
f
'size=0x
{
self
.
disagg_size
:
x
}
nnid=1 drain_node=1'
)
]
cmds
+=
[
'free -m'
,
'free -m'
,
'numactl -H'
,
'numactl -H'
,
(
(
f
'numactl --membind=
{
1
if
self
.
disaggregated
else
0
}
'
f
'numactl --membind=
{
1
if
self
.
disaggregated
else
0
}
'
'sysbench '
'sysbench '
f
'--time=
{
self
.
time_limit
}
'
f
'--time=
{
self
.
time_limit
}
'
'--validate=on '
'--histogram=on '
'--histogram=on '
'memory '
'memory '
'--memory-oper=
write
'
'--memory-oper=
read
'
'--memory-block-size=16M '
'--memory-block-size=16M '
'--memory-access-mode=rnd '
'--memory-access-mode=rnd '
'--memory-total-size=0 run'
'--memory-total-size=0 run'
)
)
]
]
return
cmds
# Create multiple experiments with different simulator permutations, which can
# Create multiple experiments with different simulator permutations, which can
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment