"...resnet50_tensorflow.git" did not exist on "73d8226d9437ca0099d498abc9470ae1ee0c1cfe"
Commit 32c6f2aa authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

experiments/sysbench_memory: perform read benchmark

parent 49265377
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment