FFM API allocation shootout
Radosław Smogura
mail at smogura.eu
Tue Aug 1 17:36:52 UTC 2023
Hi all,
To get full process malloc stats I would use to https://linux.die.net/man/3/mallinfo
This will not include ofc anon pages allocated by mmap, but should cover stats.
Kind regards,
Rado
> On 1 Aug 2023, at 19:10, Brian S O'Neill <bronee at gmail.com> wrote:
>
> On 2023-08-01 09:52 AM, Maurizio Cimadamore wrote:
>>> On 01/08/2023 17:19, mail at smogura.eu wrote:
>>> * Should all memory allocations even with custom allocators be tracked - this can be a little bit error prone.
>> Custom allocators/arenas came up twice.
>> I don't think custom arenas would defeat the counting - I'd expect most custom arenas (like the PoolArena used in the benchmark) to just delegate to a "true" confined arena under the hood - so, some "tracked allocation would still occur.
>
> I was thinking it might be useful to have a region-based arena not backed by an ordinary MemorySegment. Reporting "true" memory usage might need to be handled differently.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230801/c95d618e/attachment.htm>
More information about the panama-dev
mailing list