Title: Limiting CPU usage while contributing to Bitcoin Post by: jpsoto on April 06, 2011, 01:10:06 PM Audience: you could be interested on limiting CPU usage of bitcoind while mining (gen=1 in your bitcoin.conf) if:
Assuming your bitcoin.conf file includes "gen=1", and you want to allow a 10% of CPU usage. A quite simple solution, from command line: Code: bitcoind A more elaborated solution, i.e. this piece of code from a Bash script: Code: OPID=($(pidof bitcoind)) [Likely, you will need to get the cpulimit package: apt-get install cpulimit] Please, test and feedback, JP Title: Re: Limiting CPU usage while contributing to Bitcoin Post by: jpsoto on April 08, 2011, 07:57:24 PM cpulimit uses signals SIGSTOP/SICONT to achieve the cpu usage percent.
I have become aware of (likely) RPC interface of bitcoind, after trapped by SIGSTOP, discards commands. So, 'bitcoind getinfo' or 'bitcoind stop' fail too many times. Manually releasing bitcoind proves this behavior Code: kill -s STOP cpulimit Title: Re: Limiting CPU usage while contributing to Bitcoin Post by: jago25_98 on April 26, 2011, 09:12:47 AM i run with gen turned off but still the laptop server fan spins up only when running bc, keeping me awake.
How do i safely shutdown the commandline client? |