Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Jul 14, 2021
1 parent c730866 commit d29b55c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions boot_server
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion status
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit d29b55c

Please sign in to comment.