Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add N_THREAD_LIMIT to limit the max number of threads (upper limit). #4510

Merged
merged 2 commits into from
May 24, 2024

Conversation

wargio
Copy link
Member

@wargio wargio commented May 23, 2024

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've documented or updated the documentation of every function and struct this PR changes. If not so I've explained why.
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the rizin book with the relevant information (if needed)

Detailed description

This PR allows to create more threads than (previously) allowed, but also sets an hardcoded upper limit (that can be changed as a meson option)

@wargio wargio force-pushed the fuzz-dist-set-threads-limit branch from ff9530e to c15c298 Compare May 23, 2024 06:30
@@ -7,6 +7,7 @@ option('blob', type: 'boolean', value: false, description: 'Compile just one bin
option('subprojects_check', type: 'boolean', value: true, description: 'Check if git subprojects are up-to-date. Might be useful to disable this when developing on a different subproject version')
option('portable', type: 'boolean', value: false, description: 'Make rizin installation moveable, by using relative paths instead of absolute ones')
option('extra_prefix', type: 'string', value: '', description: 'Extra load path prefix (absolute path) for plugins, sdb, sigdb, etc.')
option('n_thread_limit', type: 'integer', min: 1, value: 32767)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why so big? Could have been less, I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because on linux is high. on windows is low. also there are many servers using arm having 1k cores.

@wargio wargio merged commit d19fc9d into dev May 24, 2024
46 of 47 checks passed
@wargio wargio deleted the fuzz-dist-set-threads-limit branch May 24, 2024 14:23
kazarmy added a commit that referenced this pull request May 27, 2024
@kazarmy kazarmy mentioned this pull request May 27, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants