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

Support larger servers than a few megabytes (don't hardwire physical AVL tree location) #37

Merged
merged 4 commits into from
May 24, 2015

Conversation

perlun
Copy link
Contributor

@perlun perlun commented May 24, 2015

Previously, the physical AVL tree was hardwired to be at 3,5 MiB in the physical memory, i.e. making it (theoretically) possible to run on 4 MiB machines. This had the severe limitation that it was really hard to make servers that are bigger than a few megabytes.

I don't like that, and I'm currently (in #35) experiencing weird issues related to the AVL reservations, so I thought I'd fix this.

As an extra bonus, this PR adds a description field to all AVL nodes. This makes it a lot easier to try and debug cases when AVL nodes overlap. (Yes, I am aware of the risk that the description string could be located in memory locations which are not in global memory, when speaking about user-level memory allocation. We may have to fix that at some point.)

/cc @CaspecoHenrik - thanks for a tiny bit of moral support when debugging this. 😄

perlun added 4 commits May 24, 2015 10:26
…ical_allocate() and memory_physical_reserve() etc.

The reason for this is that it makes it much, much easier to debug scenarios where e.g. a memory region is already reserved when memory_reserve gets called.
@perlun perlun changed the title Support larger servers (don't hardwire physical AVL tree location) Support larger servers than a few megabytes (don't hardwire physical AVL tree location) May 24, 2015
perlun added a commit that referenced this pull request May 24, 2015
Support larger servers than a few megabytes (don't hardwire physical AVL tree location)
@perlun perlun merged commit 0d69991 into master May 24, 2015
@perlun perlun deleted the feature/support-larger-servers branch May 24, 2015 07:40
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