Question about non contiguous main_arena
Florian Weimer
fweimer@redhat.com
Wed Apr 29 08:41:13 GMT 2026
* Abhijit Ray Chaudhury via Libc-help:
> When the main_arena is non-contiguous, main_arena address space becomes
> fragmented. How do I compute the minimum address that belongs to
> main_arena. I guess av->top points to the top of address space. From there
> if I look at the /proc/pid/maps and iterate through lower
> anonymous mappings and deduct the size of the mapping from main_arena's
> system_mem, would it lead to lowest address space being used by main arena ?
>
> My goal is to find all the memory mappings of /proc/pid/map that belong to
> main_arena.
I don't think we have a reliable solution for that today. Unlike heaps,
these arena fragments are not linked together. We could change that if
it helps analysis tooling.
Thanks,
Florian
More information about the Libc-help
mailing list