2013-06-07-2357Z


Checked my two bitcoin miners and found them both swapping heavily. Rewrote my monitor script thusly:

#!/bin/bash
i=0
while true; do
 if [ "$(pidof bitcoind)" ]; then
  sleep 60  # check again after a minute
 else
  ~/bin/bitcoind &
  i=0
  sleep 60  # check again after a minute
 fi
 i=$((i+1))
 if [ $i -gt $((60*12)) ]; then
  killall bitcoind  # restart after 12 hours
 fi
done

Hopefully that will take care of the problem. My hashmeter doubled after the restart, and though it's still taking up about 2GB of virtual RAM on a 512MB system, I've still got about 120MB "cached" and a negligible amount in swap.

Back to blog or home page

last updated 2013-06-07 20:00:45. served from tektonic.jcomeau.com