Running Bitcoin Core with Lower CPU Priority

14 replies 246 views
Posts: 4 · Reputation: 2
#1Oct 8, 2020, 12:28 AM
Running Bitcoin Core v22.0.0 on Windows 7 and it hogs all my CPU. PC takes forever to respond. Any way to start it at a lower priority?
4 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#2Oct 8, 2020, 03:29 AM
Not sure if you know, but Bitcoin Core 22.0 and Windows 7 are kinda old. Might wanna update both. You can limit the threads with -par=1, but check this guide on lowering CPU priority too.
3 Reply Quote Share
Posts: 27 · Reputation: 223
#3Oct 8, 2020, 07:56 AM
You can tweak the settings, but ultimately it either runs at full throttle or it doesn’t, you know? Trying to change priority might freeze your GUI instead.
2 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#4Oct 8, 2020, 04:11 PM
So it’s not just the Bitcoin Core freezing, but the whole PC? I mean, using -par can help to reduce CPU usage for script checks, but it won’t affect other heavy tasks.
3 Reply Quote Share
0xGasMember
Posts: 292 · Reputation: 52
#5Oct 8, 2020, 09:32 PM
Never had this issue personally, but with most CPU-heavy software, using max -1 keeps Windows responsive. Also, watch your disk usage, sometimes that's the bottleneck.
4 Reply Quote Share
wallet_vaultFull Member
Posts: 321 · Reputation: 431
#6Oct 8, 2020, 11:24 PM
There’s also wmic command to set priority for processes. If you mess with the registry, remember to change it back later. Using a script to manage it is way easier.
2 Reply Quote Share
0xNodeMember
Posts: 671 · Reputation: 80
#7Oct 9, 2020, 03:54 AM
Lowering CPU priority won't really fix issues if your disk's getting hammered. Disk usage can freeze everything. How many cores you have, by the way?
2 Reply Quote Share
Posts: 4 · Reputation: 2
#8Oct 9, 2020, 08:19 AM
Thanks for the tips! I’ll try a batch file to set priority to /low or /below normal. My setup is decent, 8 cores, 40GB RAM, and SSDs. Blockchain's on its own disk.
5 Reply Quote Share
Posts: 27 · Reputation: 223
#9Oct 9, 2020, 09:48 AM
/LOW didn't work for me. Use -1 instead, you'll definitely feel the difference. There's this whole DMA thing too.
3 Reply Quote Share
greg23Full Member
Posts: 1 · Reputation: 267
#10Oct 10, 2020, 08:18 AM
If your hardware is decent, instead of tweaking CPU usage, try optimizing disk performance. Moving the blockchain to a speedy SSD works wonders.
4 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#11Oct 10, 2020, 11:33 PM
But the default settings are supposed to handle it, right? If Bitcoin Core is using all cores, then what's left for other tasks? Is -par=-1 what you meant?
2 Reply Quote Share
Posts: 27 · Reputation: 223
#12Oct 11, 2020, 09:12 AM
You need to set process priority directly. WinAPI is your best bet.
3 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#13Oct 11, 2020, 11:36 AM
Never used Windows for Bitcoin Core, but with your specs, it shouldn’t freeze from a few blocks. Maybe disk I/O is the real issue.
4 Reply Quote Share
Posts: 8 · Reputation: 9
#14Oct 11, 2020, 03:17 PM
Had a weird experience on Windows too, things went haywire at first but got better over time.
5 Reply Quote Share
0xGasMember
Posts: 292 · Reputation: 52
#15Oct 11, 2020, 03:36 PM
Totally agree with you guys. The setup should cope with Bitcoin Core just fine. OP, check these: 1. Ensure your data directory is on the SSD, not in %AppData%. 2. Exclude the data dir from your antivirus.
3 Reply Quote Share

Related topics