Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add RPC call setscriptthreadsenabled: allow to temp. throttle CPU usage #12965
Bitcoin Core has been designed to synchronise/verify as fast as possible. This is usually desirable, though, on systems where other applications require a reasonable amount of CPU time (ex. desktop systems) the CPU usage maximisation of Bitcoin Core may be intrusive.
This PR adds two RPC calls:
This would be a base requirement for a "cpu throttle" feature in the GUI allowing one to temporary "throttle" verification (and therefore make the system usable for other tasks while syncing in the background)
The concept-draft for long-term resource profile:
promag left a comment •
I think this is almost only useful when changed in the UI right?
Could have a couple of tests to exercise these new calls and the error.
Edit: you already have tests in the TODO
Couple comments on the concept:
I think its useful for bitcoind users as well. Assume you want to do another CPU intense task on your system, you could
Restarting Bitcoin-Core just to reduce it's script verification threads seems unideal. A restart is always painful (dbcache, partial re-validation).