Bitcoin Forum
April 25, 2024, 03:27:24 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Linux Bitcoin 'nice', but still hogging CPU  (Read 8280 times)
Ground Loop (OP)
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
August 03, 2010, 06:35:10 AM
 #1

I ran into a curious issue with the x64 version of bitcoind for Linux.
I have it running on 8 cores, with the task re-niced to "19" (ie, most nice).

However, it still seems to impact performance of the system for tasks such as compiling and executing, to the tune of 2x speed degradation.

Reducing the number of active cores improves the speed of other tasks, but I have to stop it altogether to let other higher-priority tasks run at full speed.  The impact is not subtle -- things that used to take a minute now take two.

I confirmed that the nice level is "19", and the other tasks are at standard "0", yet bitcoind still causes them to take twice as long.

Memory consumption seems reasonable, and it's not swap-happy.

Any ideas?

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
1714058844
Hero Member
*
Offline Offline

Posts: 1714058844

View Profile Personal Message (Offline)

Ignore
1714058844
Reply with quote  #2

1714058844
Report to moderator
1714058844
Hero Member
*
Offline Offline

Posts: 1714058844

View Profile Personal Message (Offline)

Ignore
1714058844
Reply with quote  #2

1714058844
Report to moderator
1714058844
Hero Member
*
Offline Offline

Posts: 1714058844

View Profile Personal Message (Offline)

Ignore
1714058844
Reply with quote  #2

1714058844
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714058844
Hero Member
*
Offline Offline

Posts: 1714058844

View Profile Personal Message (Offline)

Ignore
1714058844
Reply with quote  #2

1714058844
Report to moderator
1714058844
Hero Member
*
Offline Offline

Posts: 1714058844

View Profile Personal Message (Offline)

Ignore
1714058844
Reply with quote  #2

1714058844
Report to moderator
knightmb
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



View Profile WWW
August 03, 2010, 06:38:30 AM
 #2

I ran into a curious issue with the x64 version of bitcoind for Linux.
I have it running on 8 cores, with the task re-niced to "19" (ie, most nice).

However, it still seems to impact performance of the system for tasks such as compiling and executing, to the tune of 2x speed degradation.

Reducing the number of active cores improves the speed of other tasks, but I have to stop it altogether to let other higher-priority tasks run at full speed.  The impact is not subtle -- things that used to take a minute now take two.

I confirmed that the nice level is "19", and the other tasks are at standard "0", yet bitcoind still causes them to take twice as long.

Memory consumption seems reasonable, and it's not swap-happy.

Any ideas?

Yeah, the nice 19 is still half down from 0, so even though the nice level is 19, there are still -19 levels beyond that of prioirty. So while 19 is as low as it gets, your task running at 0 are not at the top of the priority queue.

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
NewLibertyStandard
Sr. Member
****
Offline Offline

Activity: 252
Merit: 268



View Profile WWW
August 03, 2010, 06:40:50 AM
 #3

I ran into a curious issue with the x64 version of bitcoind for Linux.
I have it running on 8 cores, with the task re-niced to "19" (ie, most nice).

However, it still seems to impact performance of the system for tasks such as compiling and executing, to the tune of 2x speed degradation.

Reducing the number of active cores improves the speed of other tasks, but I have to stop it altogether to let other higher-priority tasks run at full speed.  The impact is not subtle -- things that used to take a minute now take two.

I confirmed that the nice level is "19", and the other tasks are at standard "0", yet bitcoind still causes them to take twice as long.

Memory consumption seems reasonable, and it's not swap-happy.

Any ideas?
Are four of those cores hyper threaded? I get more hashes using half my threads than using all of them when I have hyper threading. And the system is more responsive too.

Treazant: A Fullever Rewarding Bitcoin - Backup Your Wallet TODAY to Double Your Money! - Dual Currency Donation Address: 1Dnvwj3hAGSwFPMnkJZvi3KnaqksRPa74p
Ground Loop (OP)
Member
**
Offline Offline

Activity: 111
Merit: 10


View Profile
August 03, 2010, 06:47:53 AM
 #4

Interesting, knight.

I thought nice=19 would allocate (at most) 5% of the CPU: (20 - n / 20)  That's how it used to work, but the scheduler has been through some changes.

NewLibertyStandard: It's not hyper-threading, but I'll try running 4 and see what happens to the rate.  I wouldn't have thought...

Bitcoin accepted here: 1HrAmQk9EuH3Ak6ugsw3qi3g23DG6YUNPq
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!