Bitcoin Forum
January 10, 2026, 11:32:14 AM *
News: Due to a wallet-migration bug, you should not upgrade Bitcoin Core. But if you already did, there's no need to downgrade.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Run Bitcoin Core at Lower Priority  (Read 177 times)
ps1234 (OP)
Jr. Member
*
Offline Offline

Activity: 38
Merit: 40


View Profile
December 14, 2024, 07:06:38 AM
Merited by ABCbits (1)
 #1

I run Bitcoin Core version v22.0.0 on Windows 7 automatically on startup with the commands "C:\Program Files\Bitcoin\bitcoin-qt.exe" -min -chain=main

But it takes quite a while before the PC responds because Bitcoin core is using all the CPU resources.

Are there any arguments I can use to start at a lower priority?
ABCbits
Legendary
*
Offline Offline

Activity: 3486
Merit: 9560



View Profile
December 14, 2024, 09:28:27 AM
Merited by apogio (1)
 #2

I run Bitcoin Core version v22.0.0 on Windows 7

You're probably know about it, but both Bitcoin Core 22.0 and Windows 7 are outdated. I would recommend you to both of them.

Are there any arguments I can use to start at a lower priority?

Looking at https://github.com/bitcoin/bitcoin/blob/v22.0/src/init.cpp, looks like only -par=1 only can be used to limit total core/thread used by Bitcoin Core 22.0. Besides that, try setting bitcoin-qt.exe to have lower CPU priority using this guide https://answers.microsoft.com/en-us/windows/forum/all/how-to-permanently-set-priority-processes-using/df82bd40-ce52-4b84-af34-4d93da17d079.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
alexeyneu
Member
**
Offline Offline

Activity: 392
Merit: 44


View Profile
December 14, 2024, 08:21:23 PM
 #3

it either can put its instructions to cpu pipeline or it can't. You can't low-profile it from outside. with this ms stuff all you'll gain is frozen gui because its messages will not be processed.
nc50lc
Legendary
*
Offline Offline

Activity: 3024
Merit: 8223


Self-proclaimed Genius


View Profile
December 15, 2024, 11:19:46 AM
Last edit: December 16, 2024, 04:46:16 AM by nc50lc
Merited by vapourminer (1)
 #4

But it takes quite a while before the PC responds because Bitcoin core is using all the CPU resources.

Are there any arguments I can use to start at a lower priority?
So it's the PC that is freezing, not just Bitcoin Core's GUI?

Not to lower Bitcoin Core's priority but -par can minimize the CPU usage dedicated for script verifications, try to set a low number of CPU threads.
Its default sets Core to use all minus one of your CPU Cores.

Other CPU resource intensive task aren't affected by that command line arg though.

-edit-
default is -par=0 (auto) but it's what I've described which is CPU cores -1.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
NeuroticFish
Legendary
*
Offline Offline

Activity: 4284
Merit: 6987


Looking for campaign manager? Contact icopress!


View Profile
December 15, 2024, 12:14:48 PM
 #5

Are there any arguments I can use to start at a lower priority?

Its default is set to "-1" which sets Core to use all minus one of your CPU Cores.

I don't have direct experience with this issue with Bitcoin Core, but:
* In my experience with various other CPU intensive software I use (more than average) max - 1 usually leaves Windows quite responsive.
* Also keep an eye on the disk usage, since in my experience, if CPU is already at max - 1 then the throttling happens because of the disk (PS. is the blockchain on SSD or HDD?)

░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
 
    ANN THREAD    
 
      TUTORIAL      
DaveF
Legendary
*
Offline Offline

Activity: 4074
Merit: 7067



View Profile WWW
December 15, 2024, 02:14:50 PM
Merited by vapourminer (1)
 #6

You can also use the wmic command to set the priority of Core

https://superuser.com/questions/620724/changing-windows-process-priority-via-command-line

If you do it in the registry you have to remember set it back up if you want it faster.
Doing it with a command lets you just have a couple of different batch scripts sitting on your desktop to change it's resource use.


-Dave

This space for rent.
NotATether
Legendary
*
Offline Offline

Activity: 2212
Merit: 9230


Trêvoid █ No KYC-AML Crypto Swaps


View Profile WWW
December 15, 2024, 02:23:34 PM
 #7


Lowering the CPU priority isn't going to help you if one of the processes is disk-intensive, because disk reads and writes are uninterruptible by nature, which means the kernel cannot just make the other, high-priority process run in its place because disk access requires a CPU core as well.

Also, eventually, other programs will need to read data from the disk and if you have too many of those programs running, you run out of cores. And your system becomes unresponsive, your mouse freezes etc.

OP, how many cores does your system have?

Although it's better to just upgrade your disk setup.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
ps1234 (OP)
Jr. Member
*
Offline Offline

Activity: 38
Merit: 40


View Profile
December 15, 2024, 07:59:22 PM
Merited by vapourminer (2)
 #8

Thanks for the advice.

I'll go down the route of a batch file and setting the priority to /low of /below normal

The PC is pretty powerful with 8 cores, 40Gb RAM and SSD throughout. The blockchain is on its own disk.

So, I have the Windows startup command

D:\temp\BTC.bat

which says:

@echo off
set
start "Bitcoin Core" /LOW "C:\Program Files\Bitcoin\bitcoin-qt.exe" -min -chain=main

It seems to be OK so far

alexeyneu
Member
**
Offline Offline

Activity: 392
Merit: 44


View Profile
December 16, 2024, 03:38:19 AM
Last edit: December 16, 2024, 04:12:06 AM by alexeyneu
Merited by vapourminer (1), NotATether (1)
 #9

/LOW does nothing. use -1 or so and you'll see a huge difference (from bad to worse)

disk access requires a CPU core as well.

there's dma thing on stage and it may be not so. Say you can burn cd on single core with no freezing of other stuff
dottor
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile WWW
December 16, 2024, 04:49:36 AM
 #10

I run Bitcoin Core version v22.0.0 on Windows 7 automatically on startup with the commands "C:\Program Files\Bitcoin\bitcoin-qt.exe" -min -chain=main

But it takes quite a while before the PC responds because Bitcoin core is using all the CPU resources.

Are there any arguments I can use to start at a lower priority?

If your system is already equipped with powerful hardware, instead of limiting CPU usage with -par, optimizing disk I/O performance might yield better results. For instance, ensuring the blockchain is stored on a high-speed SSD or using disk prioritization tools can significantly improve responsiveness
nc50lc
Legendary
*
Offline Offline

Activity: 3024
Merit: 8223


Self-proclaimed Genius


View Profile
December 16, 2024, 04:50:10 AM
 #11

I don't have direct experience with this issue with Bitcoin Core, but:
* In my experience with various other CPU intensive software I use (more than average) max - 1 usually leaves Windows quite responsive.
That's set by default, yet, he mentioned that the PC isn't responding while Bitcoin Core is using all of his Cores.
That depends on the specs and the PC's usage, -par is only for script verifications and if all set cores are fully utilized, the remaining core will be used by Bitcoin Core's other processes.

-snip- use -1 or so and you'll see a huge difference (from bad to worse)
You mean -par=-1?
The suggestion to use a lower value is to keep a few CPU Cores free to solve his 100% CPU usage by Bitcoin Core.
It will reduce Bitcoin Core's sync performance, yes; but that's a solution if his whole PC is not responding due to the mentioned 100% CPU usage.

The PC is pretty powerful with 8 cores, 40Gb RAM and SSD throughout. The blockchain is on its own disk.
This should've been written beforehand.

Whole datadir and not just the blockchain?
If so, you can rule-out 100% system disk usage scenario, the OS shouldn't be affected in this case.

8-cores but still 100% used by Bitcoin Core, low-power low-frequency CPU perhaps?
Or it's actually Bitcoin Core that's not responding, not the PC? Because this is normal in Windows.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
alexeyneu
Member
**
Offline Offline

Activity: 392
Merit: 44


View Profile
December 16, 2024, 05:07:46 AM
 #12



-snip- use -1 or so and you'll see a huge difference (from bad to worse)
You mean -par=-1?
set process priority to exact value. winapi
LoyceV
Legendary
*
Offline Offline

Activity: 3920
Merit: 20873


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
December 16, 2024, 06:19:00 PM
 #13

The PC is pretty powerful with 8 cores, 40Gb RAM and SSD throughout. The blockchain is on its own disk.
I haven't used Windows ever for Bitcoin Core, but with those specs a computer shouldn't freeze from verifying a few blocks. I can only imagine disk-IO being a limitation, but with that much RAM that shouldn't be a problem. If your OS can't properly multitask, changing priority isn't going to help.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
xiamin
Member
**
Offline Offline

Activity: 65
Merit: 24


View Profile
December 16, 2024, 06:37:36 PM
 #14

The PC is pretty powerful with 8 cores, 40Gb RAM and SSD throughout. The blockchain is on its own disk.
I haven't used Windows ever for Bitcoin Core, but with those specs a computer shouldn't freeze from verifying a few blocks. I can only imagine disk-IO being a limitation, but with that much RAM that shouldn't be a problem. If your OS can't properly multitask, changing priority isn't going to help.
I did this in Windows and it initially stuck out everything on the side and causing chaos online.
Of it gradually improve with time.
NeuroticFish
Legendary
*
Offline Offline

Activity: 4284
Merit: 6987


Looking for campaign manager? Contact icopress!


View Profile
December 16, 2024, 08:09:28 PM
 #15

That depends on the specs and the PC's usage

The PC is pretty powerful with 8 cores, 40Gb RAM and SSD throughout. The blockchain is on its own disk.
This should've been written beforehand.

I completely agree.
As the others said, such a setup should handle easily Bitcoin Core.



OP another ideas:
1. Double check that the data dir is indeed on the separate SSD and not %AppData%\Bitcoin
2. Consider adding the data dir to your antivirus exclusion

░░░░▄▄████████████▄
▄████████████████▀
▄████████████████▀▄█▄
▄██████▀▀░░▄███▀▄████▄
▄██████▀░░░▄███▀▀██████▄
██████▀░░▄████▄░░░▀██████
██████░░▀▀▀▀▄▄▄▄░░██████
██████▄░░░▀████▀░░▄██████
▀██████▄▄███▀░░░▄██████▀
▀████▀▄████░░▄▄███████▀
▀█▀▄████████████████▀
▄████████████████▀
▀████████████▀▀░░░░
 
 CCECASH 
 
    ANN THREAD    
 
      TUTORIAL      
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!