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

tcp-stress-test: Pull out thread count as a constant #35140

Merged
merged 2 commits into from
Aug 1, 2016

Conversation

the-kenny
Copy link
Contributor

This PR factors out the number of concurrent threads used in tcp-stress-test.rs to a constant at the top of the file.

We at @NixOS had to lower our thread count as the chrooted-builds don't allow that many threads.

This change will make it easier to lower/increase the count in the future (I actually forgot to change the second 1000 when I was working on this). Another benefit is the removal of magic numbers in the test suite.

This is related to #35107

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@the-kenny the-kenny changed the title tcp-stress-test: Run a smaller number of threads. tcp-stress-test: Pull out thread count as a constant Jul 31, 2016
@the-kenny
Copy link
Contributor Author

Sorry, got slightly confused with the commit message. Will force-push a fixed one.

@the-kenny the-kenny force-pushed the tcp-stress-test-const-thread-count branch from d9af199 to aaf8a6e Compare July 31, 2016 18:28
@alexcrichton
Copy link
Member

Do we perhaps want to go ahead and just reduce the number of threads so nixos doesn't need to have a patch?

@sfackler
Copy link
Member

Can we just drop this test entirely? Now that the big runtime's gone, this seems like a test of the OS, not Rust.

@alexcrichton
Copy link
Member

I don't personally see much reason to actively drop this, it's a test that we're exercising and it's good to at least keep it running in some capacity.

I know in Windows it least it may stress some initialization logic or something like that.

@the-kenny
Copy link
Contributor Author

If we want to lower the count, what would a sensible number? 256 fixed our build, but might still be too much for other systems.

@alexcrichton
Copy link
Member

Yeah something on the order of 200 seems fine to me

@eddyb
Copy link
Member

eddyb commented Aug 1, 2016

@bors r=alexcrichton rollup

@bors
Copy link
Contributor

bors commented Aug 1, 2016

📌 Commit 3ea293d has been approved by alexcrichton

sanxiyn added a commit to sanxiyn/rust that referenced this pull request Aug 1, 2016
…ead-count, r=alexcrichton

tcp-stress-test: Pull out thread count as a constant

This PR factors out the number of concurrent threads used in `tcp-stress-test.rs` to a constant at the top of the file.

We at @NixOS had to lower our thread count as the chrooted-builds don't allow that many threads.

This change will make it easier to lower/increase the count in the future (I actually forgot to change the second `1000` when I was working on this). Another benefit is the removal of magic numbers in the test suite.

This is related to rust-lang#35107
bors added a commit that referenced this pull request Aug 1, 2016
Rollup of 8 pull requests

- Successful merges: #34802, #35033, #35085, #35114, #35134, #35140, #35141, #35157
- Failed merges:
@bors bors merged commit 3ea293d into rust-lang:master Aug 1, 2016
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.

7 participants