Bitcoin Institute

Linux Bitcoin 'nice', but still hogging CPU

2 messages BitcoinTalk Ground Loop August 3, 2010 — August 3, 2010
Ground Loop August 3, 2010 06:35 UTC Link to this message

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?

Ground Loop August 3, 2010 06:47 UTC Link to this message

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…