-
Notifications
You must be signed in to change notification settings - Fork 35
Implement arena_extent_dalloc in pool_jemalloc #141
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
Conversation
Interestingly, when I run this with older version of jemalloc (installed using apt) I get a few |
There are two implementations in memkind: one that "hogs memory", and one that releases it back to the system: https://github.com/memkind/memkind/blob/master/src/memkind_pmem.c#L88. |
The #146 PR will make those messages not appear. |
@igchor No, or not always at least - I have debugged it and |
@igchor could you please clarify this case? When you say "jemalloc called |
@vinser52 it seems to be a completely different memory region - see: log.txt |
I found that the memory region deallocated with
|
@vinser52 so some memory is allocated using arena_extent_alloc and some using other functions? if so, can we use tracking functionality and handle the memory that was allocated only by us? |
@igchor I think we should wait with this PR until we merge split/merge |
This PR is required by #153 |
I am not sure what do mean with that statement: "can we use tracking functionality and handle the memory that was allocated only by us?". This is what UMF tracking is supposed to do - track all allocations by memory providers. But case with jemalloc looks like a bug in jemalloc. Furthermore, Igor mentioned that this issue gone away with the new version of jemalloc that Igor built manually. |
The #140 PR makes this bug not occur any more |
@pbalcer why this function wasn't implemented in memkind? My understanding is that without this function extent deallocation is deferred to when the arena is destroyed. Is that true? Is there any reason we should implement it?