Question about non contiguous main_arena

Abhijit Ray Chaudhury abhijit.ray.chaudhury@gmail.com
Wed Apr 29 07:09:33 GMT 2026


Hi ,

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.

Thanking You,
-Abhijit


More information about the Libc-help mailing list