util: bitcoind vs bitcoin-qt file descriptor discrepancy #17471

issue fanquake opened this issue on November 13, 2019
  1. fanquake commented at 11:19 PM on November 13, 2019: member

    There's currently a discrepancy between the number of available file descriptors when running bitcoind or bitcoin-qt on macOS. When we call RaiseFileDescriptorLimit, rlim_cur is 256 for bitcoind, however it's 2560 for bitcoin-qt. I couldn't find anything obvious that would be causing the difference, like calls to setrlimit() inside Qt or it's dependencies (zlib for macOS).

    I've been testing using cd6cb9745e13a62e130b11f78a13bcc1d424b05e and depends, however have observed the same difference for non depends builds as well. I would like to know what is raising the fd limit for our bitcoin-qt process before we call RaiseFileDescriptorLimit.

  2. fanquake added the label Brainstorming on Nov 13, 2019
  3. fanquake added the label GUI on Nov 13, 2019
  4. fanquake added the label macOS on Nov 13, 2019
  5. fanquake closed this on Aug 5, 2022

  6. bitcoin locked this on Aug 5, 2023
Contributors

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-21 18:14 UTC

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