snmalloc
snmalloc copied to clipboard
Message passing based allocator
Hi, I'm trying to make snmalloc use large OS pages in my application. My use case has been mentioned in https://github.com/microsoft/snmalloc/issues/484#issuecomment-1073236187. My application is targeting Windows. It is memory bottlenecked...
I built snmalloc, and linked it to my app.exe, and try to "auto ptr = malloc(4);", but sn_malloc not called? What have I missed? ``` TARGET_LINK_LIBRARIES( ${LIB_NAME} PRIVATE #mimalloc PRIVATE...
Hi, I am implementing snmalloc support for an analytical database engine now. Everything works fine and the performance is really cool. But there is a problem on creating proper statistics...
In debug mode, I see some other errors: - [x] `ctz` failed to return the correct result. - [x] `mingw gcc` has no `-rdynamic` - [ ] `func-first-operation` failed, showing...
If the caller knows the sizes, and knows the allocation is thread local, then we can make some significant optimisations. This is a brief hack to show where would need...
jemalloc provides the ability to purge a specific arena via mallctl with the oid 'arena.[id].purge', so I was wondering if the feature closest to it would be `LocalAllocator::flush()` (or literally...
Client language like rust may want to provide fallible memory allocation APIs. https://rust-lang.github.io/rfcs/2116-alloc-me-maybe.html It is of course not a required feature. The std library states that `Alloc` implementation is allowed...
I encountered the following with `gcc 10.2.0`: ``` ../src/test/func/two_alloc_types/main.cc:37:1: warning: ‘host_snmalloc_chunkmap_global_get’ violates the C++ One Definition Rule [-Wodr] 37 | host_snmalloc_chunkmap_global_get(snmalloc::PagemapConfig const**); | ^ ../src/test/func/two_alloc_types/../../../override/malloc.cc:224:25: note: type mismatch in parameter...
1. How does the performance compare with mimalloc? 2. Can the features developed here eventually added to mimalloc?
This issue is to track the poor performance reported by @armintoepfer on twitter, when comparing to mimalloc. > Initial testing, it's much slower than mimalloc. Do you have, similar to...