Skip to content
New issue

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

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

Already on GitHub? # to your account

Limit stack size on Threadpool #14

Open
robertdfrench opened this issue Jun 21, 2021 · 1 comment
Open

Limit stack size on Threadpool #14

robertdfrench opened this issue Jun 21, 2021 · 1 comment
Labels
enhancement New feature or request unclear Further information is requested

Comments

@robertdfrench
Copy link
Owner

The threads that merely copy user requests into and back out of the door don't need much in terms of stack, since they don't recurse.

  • lower bound: door_data size limit
  • upper bound: default stack size

So if we can find any more accurate measures of upper and lower bound, then we can reduce a lot of memory waste.

@robertdfrench robertdfrench added enhancement New feature or request unclear Further information is requested labels Jun 21, 2021
@robertdfrench robertdfrench changed the title Limit stack size on Rayon Threadpool Limit stack size on Threadpool Feb 12, 2023
@robertdfrench
Copy link
Owner Author

Use the builder pattern to set the stack size. I think we can set this pretty low, like in the multiple-KB range. Rust uses some kind of dynamic stack growth thing (having trouble tracking down a source for that)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request unclear Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant