Skip to content

Commit 2c59102

Browse files
committed
feat: Add Intel Nuc 9 generation scripts for hwpc sensor tests
1 parent 022731c commit 2c59102

File tree

8 files changed

+80
-0
lines changed

8 files changed

+80
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-cpu-10-min-1-instance-$(date +"%FT%H%M"):/result-cpu-10-min-1-instance-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-cpu-10-min-1-instance-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "cpu-10-min-1-instance" ghcr.io/colinianking/stress-ng --cpu 1 --cpu-method all -t 10m --times >> result-cpu-10-min-1-instance-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-cpu-10-min-several-instances-$(date +"%FT%H%M"):/result-cpu-10-min-several-instances-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-cpu-10-min-several-instances-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "cpu-10-min-several-instances" ghcr.io/colinianking/stress-ng --cpu 0 --cpu-method all -t 10m --times >> result-cpu-10-min-several-instances-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-cpu-60-min-1-instance-$(date +"%FT%H%M"):/result-cpu-60-min-1-instance-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-cpu-60-min-1-instance-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "cpu-60-min-1-instance" ghcr.io/colinianking/stress-ng --cpu 1 --cpu-method all -t 60m --times >> result-cpu-60-min-1-instance-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-cpu-60-min-several-instances-$(date +"%FT%H%M"):/result-cpu-60-min-several-instances-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-cpu-60-min-several-instances-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "cpu-60-min-several-instances" ghcr.io/colinianking/stress-ng --cpu 0 --cpu-method all -t 60m --times >> result-cpu-60-min-several-instances-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-matrix-10-min-1-instance-$(date +"%FT%H%M"):/result-matrix-10-min-1-instance-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-matrix-10-min-1-instance-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "matrix-10-min-1-instance" ghcr.io/colinianking/stress-ng --matrix 1 -t 10m --times >> result-matrix-10-min-1-instance-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-matrix-10-min-several-instances-$(date +"%FT%H%M"):/result-matrix-10-min-several-instances-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-matrix-10-min-several-instances-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "matrix-10-min-several-instances" ghcr.io/colinianking/stress-ng --matrix 0 -t 10m --times >> result-matrix-10-min-several-instances-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-matrix-60-min-1-instance-$(date +"%FT%H%M"):/result-matrix-60-min-1-instance-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-matrix-60-min-1-instance-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "matrix-60-min-1-instance" ghcr.io/colinianking/stress-ng --matrix 1 -t 60m --times >> result-matrix-60-min-1-instance-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
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 -v $(pwd)/result-matrix-60-min-several-instances-$(date +"%FT%H%M"):/result-matrix-60-min-several-instances-$(date +"%FT%H%M") powerapi/hwpc-sensor:latest -n "$(hostname -f)" -U /result-matrix-60-min-several-instances-$(date +"%FT%H%M") -s "rapl" -o -e "RAPL_ENERGY_PKG" -s "msr" -e "TSC" -e "APERF" -e "MPERF" -c "core" -e "CPU_CLK_THREAD_UNHALTED:REF_P" -e "CPU_CLK_THREAD_UNHALTED:THREAD_P" -e "LLC_MISSES" -e "INSTRUCTIONS_RETIRED" -p "/sys/fs/cgroup/perf_event"
4+
5+
for i in {1..20}
6+
do
7+
docker run --rm --name "matrix-60-min-several-instances" ghcr.io/colinianking/stress-ng --matrix 0 -t 60m --times >> result-matrix-60-min-several-instances-$(date +"%FT%H%M").txt
8+
done
9+
10+
docker stop hwpc-sensor

0 commit comments

Comments
 (0)