Skip to content

Conversation

@JarLob
Copy link
Contributor

@JarLob JarLob commented Feb 25, 2025

Although the parallel-fuzzing input parameter is documented to use all available cores for fuzzing it is not how it currently works because as it is written in libfuzzer documentation These jobs will be run across a set of worker processes, by default using half of the available CPU cores;
I.e. currently when parallel-fuzzing is set to true it uses for example 1 core on a 2 cores machine.

The PR makes jobs number always match the workers number. Additionally a user may specify the number of cores to use manually.

@JarLob JarLob force-pushed the parallel branch 2 times, most recently from 46155e7 to 652750a Compare February 25, 2025 16:56
@JarLob
Copy link
Contributor Author

JarLob commented Mar 10, 2025

@jonathanmetzman Is anything wrong with this and my others pull requests?

@JarLob JarLob mentioned this pull request Mar 18, 2025
Copy link
Contributor

@jonathanmetzman jonathanmetzman left a comment

Choose a reason for hiding this comment

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

lgtm

@jonathanmetzman jonathanmetzman merged commit 1b73904 into google:master Apr 23, 2025
18 of 19 checks passed
srividya-p pushed a commit to srividya-p/oss-fuzz that referenced this pull request Apr 27, 2025
Although the `parallel-fuzzing` input parameter is documented `to use
all available cores for fuzzing` it is not how it currently works
because as it is written in libfuzzer documentation [`These jobs will be
run across a set of worker processes, by default using half of the
available CPU
cores;`](https://llvm.org/docs/LibFuzzer.html#:~:text=These%20jobs%20will%20be%20run%20across%20a%20set%20of%20worker%20processes%2C%20by%20default%20using%20half%20of%20the%20available%20CPU%20cores%3B)
I.e. currently when `parallel-fuzzing` is set to `true` it uses for
example 1 core on a 2 cores machine.

The PR makes jobs number always match the workers number. Additionally a
user may specify the number of cores to use manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants