20 lines
734 B
Bash
20 lines
734 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
MIN_FREQ=$(cpupower frequency-info -l | tail -n 1 | awk '{print $1}')
|
||
|
echo "Fixing frequency to ${MIN_FREQ}kHz, you should check with htop at some point during execution"
|
||
|
cpupower frequency-set --min $MIN_FREQ >/dev/null
|
||
|
cpupower frequency-set --max $MIN_FREQ >/dev/null
|
||
|
|
||
|
echo "Disabling turbo and NUMA balancing"
|
||
|
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
|
||
|
echo 0 > /proc/sys/kernel/numa_balancing
|
||
|
|
||
|
git clone https://gitea.augustin64.fr/l3-ENSL/dendrobates-t-azureus
|
||
|
cd dendrobates-t-azureus/cache_utils
|
||
|
cargo build --release --bin two_thread_cal
|
||
|
cp ../target/release/two_thread_cal /usr/bin/two_thread_cal
|
||
|
|
||
|
echo "Starting measurements"
|
||
|
modprobe msr
|
||
|
/usr/bin/two_thread_cal | bzip2 -c > /root/results.txt.bz2
|