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

Increase stack size to 3MB #2508

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Increase stack size to 3MB #2508

merged 1 commit into from
Jun 17, 2024

Conversation

frederikrothenberger
Copy link
Member

@frederikrothenberger frederikrothenberger commented Jun 14, 2024

This PR increases the stack size from the 1MB default to 3MB as per recommendation here.

I did some tests with very small stack sizes to see when we hit errors to get a feeling for the current stack usage of II. The tests indicate that we currently use more than 48KB but fewer than 200KB of stack.

Since we are also very lean on heap usage (~6.5 MB currently) we can afford to increase the stack size to have more leeway with regards to the stack.


🟡 Some screens were changed

This PR increases the stack size from the 1MB default to 3MB as per
recommendation [here](https://dfinity.slack.com/archives/CH4CADCJX/p1717748706241909?thread_ts=1716464873.584739&cid=CH4CADCJX).

I did some tests with very small stack sizes to see when
we hit errors to get a feeling for the current stack usage of II.
The tests indicate that we currently use more than 48KB but fewer than
200KB of stack.

Since we are also very lean on heap usage (~6.5 MB currently) we can
afford to increase the stack size to have more leeway with regards to
the stack.
Copy link
Collaborator

@przydatek przydatek left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@frederikrothenberger frederikrothenberger added this pull request to the merge queue Jun 17, 2024
Merged via the queue into main with commit 0a1a9b0 Jun 17, 2024
65 checks passed
@frederikrothenberger frederikrothenberger deleted the frederik/stack-test branch June 17, 2024 13:25
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