Daan
Daan
Ah very cool :-) and great to see it works! This is the advantage of libmprompt that it integrates at a deep level that should make it quite seamless to...
Right, I will add documentation on this. The multi-prompt api is not doing any locking and leaves it up to the programmer. It is generally not safe to resume a...
Ah, I am not an expert in cmake so I do not know if this can be enforced inside cmake -- hopefully a cmake expert can chip in :-) With...
Hi @malkia -- ah, no worries -- this is handled well. In particular, when a thread terminates the `_mi_thread_done` is called which will "abandon" all segments and set their thread-id...
Yes, mimalloc has [`mi_manage_os_memory`](https://microsoft.github.io/mimalloc/group__extended.html#ga4c6486a1fdcd7a423b5f25fe4be8e0cf) for this purpose: ```C bool mi_manage_os_memory(void* start, size_t size, bool is_committed, bool is_large, bool is_zero, int numa_node); ``` This will add the memory area to the...
Ah, mimalloc generally does not use `sbrk` (as that doesn't allow returning (purging) memory back to the OS), and we try to use `mmap` on most unix systems. See for...
Ah, on Windows, large OS pages (2Mib) (called huge pages on Linux), or huge OS pages (1GiB) are "pinned" in memory and cannot be de-committed. In particular huge OS pages...
Very cool! I see what you mean -- I thought `-fvisibility=hidden` would take care of it but it seems that only works for shared libraries. A static object file still...
Thank you for the info; (and if you make a PR please base it on the `dev` branch). - I think `MI_SECURE=3` should not be too slow? Level 4 is...
I don't know anything about `libnuma` or `get_mempolicy`, but looking at the code that triggers the error, it seems wrong? ```C if (nodemask_sz == 0) {/* fall back on error...