Add setup.sh
This commit is contained in:
parent
39f23a4eee
commit
96c4d8e091
19
setup.sh
Normal file
19
setup.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/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
|
Loading…
Reference in New Issue
Block a user