Skip to content
Snippets Groups Projects
Unverified Commit 55f0b020 authored by Luca Capello's avatar Luca Capello
Browse files

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