diff --git a/boot_server b/boot_server new file mode 100755 index 0000000..432723a --- /dev/null +++ b/boot_server @@ -0,0 +1,13 @@ +#!/bin/bash + +# https://github.com/rjsears/chia_plot_manager/blob/7ad9b4790a8322e24cac4763d8707e8fd0c3eb30/extras/set_cpu_to_performance.sh +cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor +for d in /sys/devices/system/cpu/cpu*/cpufreq; do + echo "performance" > $d/scaling_governor + #echo "1200000" > $d/scaling_min_freq +done +cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor + +for d in $(df | grep ' /farm/sites/' | sed -E 's;^/dev/([a-z]+).*;\1;'); do + echo 'bfq' | sudo tee /sys/block/$d/queue/scheduler +done diff --git a/status b/status index b37ffe4..dfc88da 100755 --- a/status +++ b/status @@ -21,7 +21,7 @@ echo Plots in the past day: $(find /farm/sites/ -mtime 0 -name '*.plot' -exec l heading 'Chia logs' -cat ~/.chia/mainnet/log/debug.log{.1,} | grep -v -P '(Err\.(DOUBLE_SPEND|MEMPOOL_NOT_INITIALIZED)|COIN_AMOUNT_NEGATIVE|Consensus error 124)' | grep -P '(error|Looking up qualities|Found [1-9]+ proofs)' | tail -n 10 | grep --color=always -P '(^|Found | proofs)' +cat ~/.chia/mainnet/log/debug.log{.1,} | grep -v -P '(Err\.(DOUBLE_SPEND|MEMPOOL_NOT_INITIALIZED)|COIN_AMOUNT_NEGATIVE|Consensus error 124)' | grep -P '(error|Looking up qualities)' | tail -n 10 heading 'Disk usage'