public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/17001] New: Only keep last N recently referenced symtabs
@ 2014-05-30 20:11 dje at google dot com
  0 siblings, 0 replies; only message in thread
From: dje at google dot com @ 2014-05-30 20:11 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17001
           Summary: Only keep last N recently referenced symtabs
           Product: gdb
           Version: HEAD
            Status: NEW
          Keywords: performance
          Severity: enhancement
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

Some of my benchmarks grow gdb's memory usage to 10s of GB, bringing my test
machine to a crawl.  Some of them even bring it to the point where xmalloc
aborts due to out of memory (I have 32GB mem and 32GB swap on my test machine).

To avoid this gdb could change how symtabs are stored so that we could only
keep the last N recently referenced one. Or gdb could keep track of its memory
usage (maybe as a percent of total memory?) and starting discarding symtabs
when above some limit.  Or both.

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-30 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-30 20:11 [Bug symtab/17001] New: Only keep last N recently referenced symtabs dje at google dot com

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).