bitcoind takes 670% CPU usage at first sync #6358

issue Mellnik openend this issue on June 30, 2015
  1. Mellnik commented at 8:31 pm on June 30, 2015: none

    and a unix load of 6.41 even though I only have a Quad Core CPU. It renders my machine fully unusable. I set it’s nice value to 10 for now.

    http://puu.sh/iIDtg/021875dd2a.png

  2. laanwj commented at 6:19 am on July 1, 2015: member

    Which version? What arguments / bitcoin.conf settings? You’re sure you don’t have -gen=1 enabled?

    You an try e.g. -par=1 to reduce the number of script verification threads. By default it uses as many threads as there are cores available minus one, but it may be mis-estimating this.

    Can you find a message like this in your debug.log:

    02015-06-29 09:35:16 Using 5 threads for script verification
    
  3. laanwj added the label Validation on Jul 1, 2015
  4. Mellnik commented at 12:07 pm on July 1, 2015: none

    0.10.2 x64

    Config:

     0disablewallet=1
     1maxconnections=1000
     2timeout=10000
     3allowreceivebyip=1
     4
     5bind=213.163.74.163:8333
     6bind=[2a00:1630:2:1901::b7c]:8333
     7rpcuser=bitcoinrpc
     8rpcpassword=xyz
     9
    10addnode=node.bitcoin.xxx
    11addnode=x.jine.se
    12addnode=bitcoin.coinprism.com
    13addnode=btcnode1.evolyn.net
    14addnode=faucet.bitcoin.st
    15
    16addnode=messier.bzfx.net
    

    screen ./bitcoind -server

    By now I rsynced the blockchain from my older node. CPU usage now at 1.8% after all blocks are present.

    02015-06-30 21:05:40 Using 8 threads for script verification
    

    Probably 8 because of HT.

  5. laanwj commented at 3:34 pm on July 1, 2015: member

    So it looks like boost::thread::hardware_concurrency(), which is used to determine the default concurrency, also counts ‘fake’ HT cores. It is a bit disappointing but I’m not sure what underlying APIs for querying this that operating systems expose in any case.

    There is also boost::thread::physical_concurrency() maybe it works better, as it claims not to count ‘virtual cores’.

  6. laanwj referenced this in commit 401ee9a978 on Jul 1, 2015
  7. laanwj referenced this in commit 47162673c7 on Jul 1, 2015
  8. luke-jr referenced this in commit fabfc4d39e on Jul 2, 2015
  9. sipa commented at 11:15 pm on July 9, 2015: member
    I’m marking this as fixed by #6361. Comment if this is not correct, please.
  10. sipa closed this on Jul 9, 2015

  11. luke-jr referenced this in commit 5c166950eb on Jan 10, 2016
  12. eklitzke referenced this in commit 6c071326df on Mar 6, 2018
  13. eklitzke referenced this in commit cb89fcaa83 on Mar 6, 2018
  14. eklitzke referenced this in commit a2ed276b52 on Mar 19, 2018
  15. eklitzke referenced this in commit ce91d3814f on Mar 26, 2018
  16. eklitzke referenced this in commit 0d5541efc1 on Mar 26, 2018
  17. eklitzke referenced this in commit 8fe7e956a7 on Mar 26, 2018
  18. eklitzke referenced this in commit d54874d795 on Mar 26, 2018
  19. laanwj referenced this in commit becd8dd2ec on Apr 7, 2018
  20. stamhe referenced this in commit bccc2c52fe on Jun 27, 2018
  21. HashUnlimited referenced this in commit f461627fc7 on Aug 15, 2018
  22. lionello referenced this in commit c4575ba159 on Nov 7, 2018
  23. joemphilips referenced this in commit 14f77e5ff2 on Nov 9, 2018
  24. lateminer referenced this in commit 22c5026abd on Jan 22, 2019
  25. random-zebra referenced this in commit d704fd9fb6 on May 27, 2020
  26. random-zebra referenced this in commit 417cff617b on May 27, 2020
  27. random-zebra referenced this in commit d4476131bd on May 28, 2020
  28. PastaPastaPasta referenced this in commit 1f46de1973 on Dec 16, 2020
  29. PastaPastaPasta referenced this in commit 02edd7066e on Dec 18, 2020
  30. furszy referenced this in commit ed9c67a2d2 on Feb 17, 2021
  31. furszy referenced this in commit 743804e3fd on Feb 24, 2021
  32. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 12:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me