This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/21731] Bad malloc heuristic result in 30-40x memory consumption


https://sourceware.org/bugzilla/show_bug.cgi?id=21731

--- Comment #7 from Yichao Yu <yyc1992 at gmail dot com> ---
I'm seeing the same with the simplified program now so I guess there are other
libc calls that I'm not recording. I'm still fairly certain that this is glibc
related since the `/proc/self/maps` of the real process shows that the only
growing memory is the heap and no other part of the program is touching the
heap directly and the actual accumulation of allocation is much slower than the
grow rate.

For the simplified case, I'm seeing a large heap usage that's bigger than rss
so I assume glibc calls certain functions to discard the pages without
releasing the VM (madvice?) and it seems that this could be what didn't work in
the real program.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]