[Bug debuginfod/31103] periodically malloc_trim()

2024-03-19 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #12 from Di Chen --- @fche no problem, thanks for merging it :D -- You are receiving this mail because: You are on the CC list for the bug.

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-19 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 Frank Ch. Eigler changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-17 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #10 from Di Chen --- Yes, patch submitted: https://sourceware.org/pipermail/elfutils-devel/2024q1/006916.html -- You are receiving this mail because: You are on the CC list for the bug.

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-15 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #9 from Frank Ch. Eigler --- Yeah, OK, for a not-too-busy one, that sounds okay. Can you show a proposed final diff? -- You are receiving this mail because: You are on the CC list for the bug.

[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

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-13 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #6 from Di Chen --- Thanks Frank, I have debugged with rusage, but the difference between "during" and "post" is not that obvious. I believe it's due to my small .debuginfod.sqlite. ``` (gdb) p during $2 = {ru_utime = {tv_sec = 0,

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-12 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #5 from Frank Ch. Eigler --- Yeah, not surprised that there are no leaks. What this malloc_trim() and the preceding sqlite3_db_release_memory() calls are supposed to do is to release memory back to the operating system. So perhap

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-12 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #4 from Di Chen --- @fche, @mjw, @amerey I don't have many clue about how to debug/measure this memory fluctuation problem. What I did: 1) use GDB to check the call graph. thread_main_groom -> groom -> sqlite3_db_

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-02 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #3

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-01 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #2 from Frank Ch. Eigler --- Right, but the sqlite3* calls are still needed. I'm especially curious whether any impact from the malloc_trim() is measurable. -- You are receiving this mail because: You are on the CC list for the

[Bug debuginfod/31103] periodically malloc_trim()

2024-03-01 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 --- Comment #1 from Di Chen --- Hey Frank, Are you talking about a change like this? ``` diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index 524be948..fb9c1661 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debu

[Bug debuginfod/31103] periodically malloc_trim()

2024-01-31 Thread dichen at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31103 Di Chen changed: What|Removed |Added Assignee|unassigned at sourceware dot org |dichen at redhat dot com