Skip to content

noos: Remove hard limits for palloc and arena size #18

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

Draft
wants to merge 3 commits into
base: master-embedded
Choose a base branch
from

Conversation

clktmr
Copy link

@clktmr clktmr commented May 11, 2025

Let palloc and the arena share all of free memory. While the arena grows from bottom up, palloc grows from top down. When they start to overlap panic with out-of-memory.

This also puts persistent and page allocations on the same stack, causing single small persistent allocations to use a whole page. But from observation there was never more than 1kb memory wasted due to alignment.

TODO:

  • Use nodma memory in palloc first

Let palloc and the arena share all of free memory. While the arena grows
from bottom up, palloc grows from top down. When they start to overlap
panic with out-of-memory.

This also puts persistent and OS allocations on the same stack, causing
single persistent allocations to use a whole page. But from observation
there was never more than 1kb memory wasted due to alignment.
@clktmr clktmr marked this pull request as draft May 11, 2025 08:12
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.

1 participant