-
Notifications
You must be signed in to change notification settings - Fork 67
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
Failed to increase stack memory #49
Comments
Maybe it's just too large (512MiB) for the thread to be spawn. |
It only gives a problem when we have activated the I tried with values of stack memory lower than 512MB and the problem is present when setting any value outside the default.
I tried to increase the stack memory for threads but it didn't fix the problem. What is this behavior due to? |
When enabling background_threads, background threads are created to do purging in the background. The error code 11 is "Resource temporarily unavailable" and returned when spawning the thread in C. Not look into the code yet, but I think it's probably due to 512MB is not a good value. |
There should be no problem with thread creation if there is more stack memory for the main function. Higher stack memory values are used for applications with high recursion, among other rare cases. I think it would be good to find the cause to better understand the operation of what is happening in the back. |
Why does increasing the stack memory cause an error when creating the background thread?
tikv-jemallocator = {version = "0.5", features = ["background_threads"] }
result:
<jemalloc>: arena 0 background thread creation failed (11)
The text was updated successfully, but these errors were encountered: