* [patch pushed] debuginfod: Tweak groom cycle for memory freeing
@ 2019-11-25 21:51 Frank Ch. Eigler
0 siblings, 0 replies; only message in thread
From: Frank Ch. Eigler @ 2019-11-25 21:51 UTC (permalink / raw)
To: elfutils-devel
Hi -
After an irresistible sales job on irc, pushed to master:
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index a1d17b5f9a23..f37c85302886 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,3 +1,8 @@
+2019-11-25 Frank Ch. Eigler <fche@redhat.com>
+
+ * debuginfod.cxx (groom): Add a sqlite3_db_release_memory()
+ at the end of periodic grooming to try to shrink the process.
+
2019-11-24 Mark Wielaard <mark@klomp.org>
* debuginfod.cxx (test_webapi_sleep): Removed.
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index cb0e1f3bf0a4..aa7ffcf662aa 100644
--- a/debuginfod/debuginfod.cxx
+++ b/debuginfod/debuginfod.cxx
@@ -2357,6 +2357,8 @@ void groom()
database_stats_report();
+ sqlite3_db_release_memory(db); // shrink the process if possible
+
gettimeofday (&tv_end, NULL);
double deltas = (tv_end.tv_sec - tv_start.tv_sec) + (tv_end.tv_usec - tv_start.tv_usec)*0.000001;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-25 21:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 21:51 [patch pushed] debuginfod: Tweak groom cycle for memory freeing Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).