Skip to content

Commit cd06924

Browse files
committed
[container_bench] ]Init commit of container benchmark
Signed-off-by: Jan Rodák <[email protected]>
1 parent a210f78 commit cd06924

File tree

44 files changed

+1799
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1799
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.capture_container_engine_info
7+
8+
9+
container_bench capture_container_engine_info
10+
=============================================
11+
12+
Captures the info of the container engine
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``runtime``
22+
23+
* The container engine to capture information from (e.g., podman, docker)
24+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.capture_cpu_ram_usage
7+
8+
9+
container_bench capture_cpu_ram_usage
10+
=====================================
11+
12+
Captures the CPU and RAM usage on Unix-like systems
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``stop``
22+
23+
* If true, only stop the capture
24+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.capture_power_usage
7+
8+
9+
container_bench capture_power_usage
10+
===================================
11+
12+
Captures the power usage on MacOS
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``samplers``
22+
23+
* Name(s) of the source sample to capture
24+
25+
* default value: ``gpu_power``
26+
27+
28+
``sample_rate``
29+
30+
* Rate at which the metrics should be captured, in ms
31+
32+
* default value: ``1000``
33+
34+
35+
``stop``
36+
37+
* If true, only stop the capture
38+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.capture_system_state
7+
8+
9+
container_bench capture_system_state
10+
====================================
11+
12+
Captures the state of the remote Mac system
13+
14+
15+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.copy_file_to_remote
7+
8+
9+
container_bench copy_file_to_remote
10+
===================================
11+
12+
Copies a file from the local machine to the remote machine
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``source``
22+
23+
* The source file to copy
24+
25+
26+
``dest``
27+
28+
* The destination path on the remote machine
29+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.helloworld_benchmark
7+
8+
9+
container_bench helloworld_benchmark
10+
====================================
11+
12+
Runs the helloworld benchmark with the given runtime
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``exec_time_path``
22+
23+
* Path to the exec_time.py script
24+
25+
26+
``runtime``
27+
28+
* The runtime to use for the benchmark (e.g., docker, podman)
29+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.pip_install_remote
7+
8+
9+
container_bench pip_install_remote
10+
==================================
11+
12+
Installs a Python library on the remote machine using pip
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``library``
22+
23+
* The name of the Python library to install
24+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
:orphan:
2+
3+
..
4+
_Auto-generated file, do not edit manually ...
5+
_Toolbox generate command: repo generate_toolbox_rst_documentation
6+
_ Source component: Container_Bench.prepare_benchmark_script_on_remote
7+
8+
9+
container_bench prepare_benchmark_script_on_remote
10+
==================================================
11+
12+
Prepares the benchmark script on the remote machine
13+
14+
15+
16+
17+
Parameters
18+
----------
19+
20+
21+
``source``
22+
23+
* The source file to copy
24+
25+
26+
``dest``
27+
28+
* The destination path on the remote machine
29+

docs/toolbox.generated/index.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ Toolbox Documentation
4444
* :doc:`get <Configure.get>` Gives the value of a given key, in the current configuration file
4545
* :doc:`name <Configure.name>` Gives the name of the current configuration
4646

47+
``container_bench``
48+
*******************
49+
50+
::
51+
52+
Commands relating to the performance evaluation
53+
54+
55+
56+
* :doc:`capture_container_engine_info <Container_Bench.capture_container_engine_info>` Captures the info of the container engine
57+
* :doc:`capture_power_usage <Container_Bench.capture_power_usage>` Captures the power usage on MacOS
58+
* :doc:`capture_system_state <Container_Bench.capture_system_state>` Captures the state of the remote Mac system
59+
* :doc:`helloworld_benchmark <Container_Bench.helloworld_benchmark>` Runs the helloworld benchmark with the given runtime
60+
* :doc:`prepare_benchmark_script_on_remote <Container_Bench.prepare_benchmark_script_on_remote>` Prepares the benchmark script on the remote machine
61+
4762
``fine_tuning``
4863
***************
4964

launcher/topsail_enter

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ done <<< "$env"
4747
exec podman run "${env_args[@]}" \
4848
--security-opt label=disable --cgroupns host \
4949
-it --rm \
50+
--network=host \
5051
-v "$TOPSAIL_HOME:$TOPSAIL_HOME:Z" \
5152
-v "$HOME:$HOME:rslave" \
5253
-w "$TOPSAIL_HOME" \

0 commit comments

Comments
 (0)