[Bug debuginfod/31103] periodically malloc_trim()

2024-03-14 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #8 from Di Chen --- Got it. I have used GDB to make debuginfod stop at 1) before malloc_trim(0) $ cat /proc/$$/statm 228487 3456 2976 48 0 19049 0 2) after malloc_trim(0) $ cat /proc/$$/statm 228462 3456 2976

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-14 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #7 from Frank Ch. Eigler --- Right, the linux kernel does not share enough memory consumption data in rusage, so you need to read /proc/self/statm or such and compare its snapshots. For memory release, it's not so much the size of