Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Expetator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
Expetator
Commits
2f51610a
Commit
2f51610a
authored
1 year ago
by
Georges Da Costa
Browse files
Options
Downloads
Patches
Plain Diff
New build for mojitO/S
parent
1352f6b3
No related branches found
No related tags found
1 merge request
!1
Devel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
expetator/monitors/mojitos.py
+10
-9
10 additions, 9 deletions
expetator/monitors/mojitos.py
with
10 additions
and
9 deletions
expetator/monitors/mojitos.py
+
10
−
9
View file @
2f51610a
...
@@ -58,21 +58,22 @@ class Mojitos:
...
@@ -58,21 +58,22 @@ class Mojitos:
def
build
(
self
,
executor
):
def
build
(
self
,
executor
):
"""
Installs the mojito/s monitoring framework and add the permissions
"""
"""
Installs the mojito/s monitoring framework and add the permissions
"""
if
True
or
self
.
rapl
:
#
if True or self.rapl:
# should work but do not work currently as to compile mojitos it
# should work but do not work currently as to compile mojitos it
# is always necessary to have rapl. Todo: update mojitos
# is always necessary to have rapl. Todo: update mojitos
if
False
in
[
os
.
path
.
exists
(
filename
)
for
filename
in
#
if False in [os.path.exists(filename) for filename in
[
'
/usr/share/doc/powercap-utils
'
,
#
['/usr/share/doc/powercap-utils',
'
/usr/share/doc/libpowercap-dev
'
,
#
'/usr/share/doc/libpowercap-dev',
'
/usr/share/doc/libpowercap0
'
]]:
#
'/usr/share/doc/libpowercap0']]:
executor
.
hosts
(
'
apt install -y libpowercap0 libpowercap-dev powercap-utils
'
,
root
=
True
)
#
executor.hosts('apt install -y libpowercap0 libpowercap-dev powercap-utils', root=True)
if
not
os
.
path
.
exists
(
'
/tmp/mojitos
'
):
if
not
os
.
path
.
exists
(
'
/tmp/mojitos
'
):
executor
.
local
(
'
cd /tmp; git clone https://gitlab.irit.fr/sepia-pub/mojitos.git
'
)
executor
.
local
(
'
cd /tmp; git clone https://gitlab.irit.fr/sepia-pub/mojitos.git
'
)
else
:
else
:
executor
.
local
(
'
cd /tmp/mojitos; git pull
'
)
executor
.
local
(
'
cd /tmp/mojitos; git pull
'
)
executor
.
local
(
'
cd /tmp/mojitos; make
'
)
executor
.
local
(
'
cd /tmp/mojitos; ./configure.sh; make
'
)
executor
.
local
(
'
cp /tmp/mojitos/mojitos /tmp/bin/
'
)
executor
.
local
(
'
cp /tmp/mojitos/bin/mojitos /tmp/bin/
'
)
if
True
or
self
.
rapl
:
if
True
or
self
.
rapl
or
self
.
perf
:
executor
.
hosts
(
'
sudo-g5k modprobe msr
'
,
root
=
True
)
if
read_int
(
'
/proc/sys/kernel/perf_event_paranoid
'
)
!=
0
:
if
read_int
(
'
/proc/sys/kernel/perf_event_paranoid
'
)
!=
0
:
executor
.
hosts
(
"
sh -c
'
echo 0 >/proc/sys/kernel/perf_event_paranoid
'"
,
root
=
True
)
executor
.
hosts
(
"
sh -c
'
echo 0 >/proc/sys/kernel/perf_event_paranoid
'"
,
root
=
True
)
mode
=
os
.
stat
(
'
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw
'
)
mode
=
os
.
stat
(
'
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment