pablogsal commented on issue #48061: URL: https://github.com/apache/arrow/issues/48061#issuecomment-3511837511
> Also, the explanation is that mimalloc initialize reserves 1GiB of virtual memory for its arenas on 64-bit platforms. > > This can be tweaked using mi_option_arena_reserve . For example, if you set the environment variable mimalloc_arena_reserve=512M and run your snippet again, you'll see that 512 MiB of virtual memory is reserved. Yeah this also surprised us in CPython when comparing free threaded builds in memory.python.org since the mmap of mimalloc behaves different from the pooling of glibc or muslc malloc. We still need to add some better mimalloc integration with memray to ensure we can reason about that a bit better but your analysis is spot on -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
