Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
softs
Manage
Activity
Members
Plan
External wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
hpc
softs
Commits
55f0b020
Unverified
Commit
55f0b020
authored
6 years ago
by
Luca Capello
Browse files
Options
Downloads
Patches
Plain Diff
s/StressAppTest/stressapptest_CurrentWatts.sh: custom SLEEP_TIME
This complements
d01fda39
.
parent
d01fda39
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
s/StressAppTest/stressapptest_CurrentWatts.sh
+12
-2
12 additions, 2 deletions
s/StressAppTest/stressapptest_CurrentWatts.sh
with
12 additions
and
2 deletions
s/StressAppTest/stressapptest_CurrentWatts.sh
+
12
−
2
View file @
55f0b020
...
...
@@ -21,11 +21,21 @@ fi
NODE
=
$(
hostname
-s
)
CURRENTWATTS_IDLE
=
$(
get_CurrentWatts
)
CURRENTWATTS_HIGHEST
=
${
CURRENTWATTS_IDLE
}
SLEEP_TIME
=
5
SLEEP_TIME
=
$(
expr
\
$(
grep
-e
'JobAcctGatherFrequency'
/etc/slurm/slurm.conf |
\
sed
-e
's/^.*energy=//g'
)
\
+
\
$(
awk
-F
"="
'/^EnergyIPMIFrequency/ {print $2}'
/etc/slurm/acct_gather.conf
))
## main
echo
"W: waiting
${
SLEEP_TIME
}
seconds before getting the idle value..."
cat
<<
EOF
W: waiting
${
SLEEP_TIME
}
seconds before getting the idle value..."
(this correspond to the sum of energy values in:
- /etc/slurm/slurm.conf:JobAcctGatherFrequency
- /etc/slurm/acct_gather.conf
)
EOF
sleep
${
SLEEP_TIME
}
echo
"I: idle:
${
CURRENTWATTS_IDLE
}
"
echo
"I: running..."
...
...
This diff is collapsed.
Click to expand it.
Luca Capello
@Luca.Capello
mentioned in commit
c475471f
·
6 years ago
mentioned in commit
c475471f
mentioned in commit c475471f237897faf68d08f715badbef7b9ee85f
Toggle commit list
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