File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed
powerapi-machines/amd/powerapi1u/smartwatts/scripts Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ docker run --rm -d --name mongo_source -p 27017:27017 mongo:latest
2+
3+ sleep 15
4+
5+ docker run --rm -d --net=host --privileged --pid=host --name " hwpc-sensor" -v /sys:/sys -v /var/lib/docker/containers:/var/lib/docker/containers:ro -v /tmp/powerapi-sensor-reporting:/reporting -v $( pwd) :/srv powerapi/hwpc-sensor:latest -n " $( hostname -f) " -r " mongodb" -U " mongodb://127.0.0.1" -D " db_hwpc" -C " report" -s " rapl" -o -e " RAPL_ENERGY_PKG" -s " msr" -e " TSC" -e " APERF" -e " MPERF" -c " core" -e " CYCLES_NOT_IN_HALT" -e " RETIRED_INSTRUCTIONS" -e " RETIRED_UOPS" -p " /sys/fs/cgroup/perf_event"
6+
7+
8+ sleep 15
9+
10+ mkdir result-float64-100000000-op-several-instances-$( date +" %FT%H%M" )
11+
12+ chmod -R a+rw result-float64-100000000-op-several-instances-$( date +" %FT%H%M" )
13+
14+ docker run --rm -d --name smartwatts --net=host --privileged -v $( pwd) /result-float64-100000000-op-several-instances-$( date +" %FT%H%M" ) :/result-float64-100000000-op-several-instances-$( date +" %FT%H%M" ) powerapi/smartwatts-formula:latest --stream --input mongodb --model HWPCReport --uri mongodb://127.0.0.1 --db db_hwpc --collection report --output csv --model PowerReport --directory /result-float64-100000000-op-several-instances-$( date +" %FT%H%M" ) --cpu-base-freq 3000 --cpu-error-threshold 2.0 --disable-dram-formula --sensor-reports-frequency 1000
15+
16+
17+ for i in {1..20}
18+ do
19+ echo ' Loop started...'
20+ docker run --rm --name " float64-1000-op-several-instances" ghcr.io/colinianking/stress-ng --cpu 0 --cpu-method float64 --cpu-ops 100000000 --times >> result-float64-1000-op-several-instances-$( date +" %FT%H%M" ) .txt
21+ echo ' Loop ended...'
22+ done
23+
24+ docker stop hwpc-sensor
25+ docker stop smartwatts
26+ docker stop mongo_source
Original file line number Diff line number Diff line change 1+ docker run --rm -d --name mongo_source -p 27017:27017 mongo:latest
2+
3+ sleep 15
4+
5+ docker run --rm -d --net=host --privileged --pid=host --name " hwpc-sensor" -v /sys:/sys -v /var/lib/docker/containers:/var/lib/docker/containers:ro -v /tmp/powerapi-sensor-reporting:/reporting -v $( pwd) :/srv powerapi/hwpc-sensor:latest -n " $( hostname -f) " -r " mongodb" -U " mongodb://127.0.0.1" -D " db_hwpc" -C " report" -s " rapl" -o -e " RAPL_ENERGY_PKG" -s " msr" -e " TSC" -e " APERF" -e " MPERF" -c " core" -e " CYCLES_NOT_IN_HALT" -e " RETIRED_INSTRUCTIONS" -e " RETIRED_UOPS" -p " /sys/fs/cgroup/perf_event"
6+
7+
8+ sleep 15
9+
10+ mkdir result-float64-8500000-op-several-instances-$( date +" %FT%H%M" )
11+
12+ chmod -R a+rw result-float64-8500000-op-several-instances-$( date +" %FT%H%M" )
13+
14+ docker run --rm -d --name smartwatts --net=host --privileged -v $( pwd) /result-float64-8500000-op-several-instances-$( date +" %FT%H%M" ) :/result-float64-8500000-op-several-instances-$( date +" %FT%H%M" ) powerapi/smartwatts-formula:latest --stream --input mongodb --model HWPCReport --uri mongodb://127.0.0.1 --db db_hwpc --collection report --output csv --model PowerReport --directory /result-float64-8500000-op-several-instances-$( date +" %FT%H%M" ) --cpu-base-freq 2600 --cpu-error-threshold 2.0 --disable-dram-formula --sensor-reports-frequency 1000
15+
16+
17+ for i in {1..20}
18+ do
19+ docker run --rm --name " float64-8500000-op-several-instances" ghcr.io/colinianking/stress-ng --cpu 0 --cpu-method float64 --cpu-ops 8500000 --times >> result-float64-8500000-op-several-instances-$( date +" %FT%H%M" ) .txt
20+ done
21+
22+ docker stop hwpc-sensor
23+ docker stop smartwatts
24+ docker stop mongo_source
You can’t perform that action at this time.
0 commit comments