Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
powertest
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
Container 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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Provoz
powertest
Commits
7db81652
Commit
7db81652
authored
Nov 10, 2022
by
Milos Mulac
Browse files
Options
Downloads
Patches
Plain Diff
more complex metering
parent
ec3f449c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
powertest.sh
+13
-2
13 additions, 2 deletions
powertest.sh
with
13 additions
and
2 deletions
powertest.sh
+
13
−
2
View file @
7db81652
...
@@ -10,7 +10,7 @@ MAX_FREQ="3.31GHz"
...
@@ -10,7 +10,7 @@ MAX_FREQ="3.31GHz"
MIN_FREQ
=
"1.50GHz"
MIN_FREQ
=
"1.50GHz"
LOG
=
/tmp/powertest.
$$
LOG
=
/tmp/powertest.
$$
TEST
=
"stress-ng -c
$CORES
"
TEST
=
"stress-ng -c
$CORES
"
METER
=
"ipmitool dcmi power reading| grep Instantaneous"
#
METER="ipmitool dcmi power reading| grep Instantaneous"
HIGH_PERFORMANCE
=
"for i in
`
seq
0
$CORES
`
; do cpufreq-set -g performance -c
\$
i --max 2400Mhz; done"
HIGH_PERFORMANCE
=
"for i in
`
seq
0
$CORES
`
; do cpufreq-set -g performance -c
\$
i --max 2400Mhz; done"
MID_PERFORMANCE
=
"for i in
`
seq
0
$CORES
`
; do cpufreq-set -g performance -c
\$
i --max 2000Mhz; done"
MID_PERFORMANCE
=
"for i in
`
seq
0
$CORES
`
; do cpufreq-set -g performance -c
\$
i --max 2000Mhz; done"
...
@@ -19,10 +19,21 @@ ON_DEMAND="for i in `seq 0 $CORES`; do cpufreq-set -g ondemand -c \$i -u $MAX_FR
...
@@ -19,10 +19,21 @@ ON_DEMAND="for i in `seq 0 $CORES`; do cpufreq-set -g ondemand -c \$i -u $MAX_FR
[
-x
"
$(
command
-v
stress-ng
)
"
]
||
{
echo
"Test command stress-ng not installed, exiting."
;
exit
1
;
}
[
-x
"
$(
command
-v
stress-ng
)
"
]
||
{
echo
"Test command stress-ng not installed, exiting."
;
exit
1
;
}
# XXX: needs to be revised on given platform, names of sensors and their presence is vendor specific
run_meter
()
run_meter
()
{
{
echo
" CPU1 CPU2 MB PS1 PS2"
while
true
;
do
while
true
;
do
eval
$METER
ipmitool sensor|
\
awk
'\
/CPU1 Temperature/ {T1=$4}; \
/CPU2 Temperature/ {T2=$4}; \
/TR1 Temperature/ {T3=$4}; \
/PMBPower1/ {P1=$3}; \
/PMBPower2/ {P2=$3}; \
END {print " "T1" "T2" "T3" "P1" "P2} \
'
sleep
$SAMPLING
sleep
$SAMPLING
done
done
}
}
...
...
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