4

The default value for the --max-concurrency is 0. What does that mean? Will it not use any threads? Will it automatically determine the right amount of threads? If it is the latter, is there a way to query what value was determined?

1
  • don't think the flag > --max-concurrency is working on current v14 tag or master branch or maybe I'm doing wrong. the RPC threads is always 2. the p2p threads is hardcoded to 10.
    – user5937
    Sep 19, 2019 at 5:11

1 Answer 1

4

By default, the value will be set to the hardware concurrency reported by boost. This is usually the number of CPU "threads" available. If this returns 0, no extra worker threads will be used (not sure if that got tested). I do not think monero logs what Boost claims, but you can use that function yourself in a test program:

http://www.boost.org/doc/libs/1_66_0/doc/html/thread/thread_management.html#thread.thread_management.thread.hardware_concurrency

Monero code needs threads, and will not function if threading is not available. This setting is designed for short lived CPU intensive operations such as signature verification, etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.