Please split the `-msghand` thread into multiple threads. #20547

issue ytrezq opened this issue on December 2, 2020
  1. ytrezq commented at 5:32 PM on December 2, 2020: none

    It seems when using good storage that this thread act as bottleneck in a way that other threads are waiting completion from it a the cpu level when performing initial full node synchronisation.

    As a result, Bitcoin is mostly single threaded in that case (the -msghand thread take 100% of a single core leaving other cores idle even on a core duo cpu).

    This what currently prevents syncing a full node with -txindex in less than 1 hour.

  2. ytrezq added the label Feature on Dec 2, 2020
  3. denis2342 commented at 4:58 AM on April 21, 2021: none

    I have the same problem on my four core machine. the msghand thread is running at 100% and not much else happens.

  4. fanquake commented at 3:21 PM on August 13, 2022: member

    Closing for now given this is a general ask and not a bug.

  5. fanquake closed this on Aug 13, 2022

  6. ytrezq commented at 3:26 PM on August 13, 2022: none

    @fanquake no, this is a real performance issue as the database grow. Please remove this bottleneck and don’t turn bitcoin core into OpenEthereum.

  7. ghost commented at 3:59 PM on August 13, 2022: none

    @ytrezq more than 100 issues have been closed in last 2 weeks is:issue is:closed sort:updated-desc which includes some that were not resolved although I fail to see what would this improve.

    You could comment in #25823 or everyone could consider issues have 2 tabs: open (less important) and closed but not resolved (more important) and keep a track of all the issues.

  8. ytrezq commented at 6:11 PM on August 13, 2022: none

    @1440000bytes because msghand is single threaded, parallelism is limited in a way more cores don t means faster.

    But yes, if this should be closed, this should be done as uncompleted.

  9. bitcoin locked this on Aug 13, 2023

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: 2026-04-26 06:14 UTC

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