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

Make the initial obstack size very small #1364

Closed
brson opened this issue Dec 21, 2011 · 2 comments
Closed

Make the initial obstack size very small #1364

brson opened this issue Dec 21, 2011 · 2 comments
Assignees
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows

Comments

@brson
Copy link
Contributor

brson commented Dec 21, 2011

This looks to be the reason at the moment that we can't scale up past ~10,000 tasks. Right now the size of each shadow stack segment is 500K. We probably need to start this as something very small and double it each segment, like the main stack.

@ghost ghost assigned brson Dec 21, 2011
@brson
Copy link
Contributor Author

brson commented Dec 21, 2011

With 4K obstacks, I can get 300,000 concurrent tasks with a 32-bit target.

@brson
Copy link
Contributor Author

brson commented Dec 26, 2011

b9b9b3e

430,000 tasks now

@brson brson closed this as completed Dec 26, 2011
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Kobzol pushed a commit to Kobzol/rust that referenced this issue Dec 30, 2024
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors pushed a commit to rust-lang-ci/rust that referenced this issue Jan 2, 2025
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-runtime Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
Projects
None yet
Development

No branches or pull requests

1 participant