public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/23710] gdb is slow and memory hungry consuming debug generated with LTO by GCC Date: Sun, 08 Mar 2020 11:09:59 +0000 [thread overview] Message-ID: <bug-23710-4717-L8ImkDlm9M@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-23710-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=23710 --- Comment #11 from Tom de Vries <vries at gcc dot gnu.org> --- Comparison, cc1 vs cc1.dwz (produced using dwz build from current master branch): ... $ diff.sh cc1 cc1.dwz .debug_info red: 49.30% 97418416 49399513 .debug_abbrev red: 42.04% 1699940 985372 .debug_str red: 0% 6344030 6344030 total red: 46.21% 105462386 56728915 ... lldb roughly uses same amount of memory, that is: cc1.dwz uses 5.7% less: ... $ time.sh lldb -batch cc1 -o "b do_rpo_vn" (lldb) target create "cc1" Current executable set to 'cc1' (x86_64). (lldb) b do_rpo_vn Breakpoint 1: 3 locations. maxmem: 519116 real: 2.63 user: 4.21 system: 0.14 $ time.sh lldb -batch cc1.dwz -o "b do_rpo_vn" (lldb) target create "cc1.dwz" Current executable set to 'cc1.dwz' (x86_64). (lldb) b do_rpo_vn Breakpoint 1: 3 locations. maxmem: 489596 real: 2.78 user: 4.01 system: 0.10 ... With gdb, the difference is a reduction of 51.9%: ... $ time.sh gdb cc1 -batch -iex "set language c++" -iex "maint set dwarf max-cache-age 316" -ex "b do_rpo_vn" Breakpoint 1 at 0xd40e30: do_rpo_vn. (2 locations) maxmem: 999404 real: 7.03 user: 6.81 system: 0.25 $ time.sh gdb cc1.dwz -batch -iex "set language c++" -iex "maint set dwarf max-cache-age 316" -ex "b do_rpo_vn" Breakpoint 1 at 0xd40e30: do_rpo_vn. (2 locations) maxmem: 481152 real: 6.15 user: 6.09 system: 0.12 ... -- You are receiving this mail because: You are on the CC list for the bug.
next parent reply other threads:[~2020-03-08 11:10 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-23710-4717@http.sourceware.org/bugzilla/> 2020-03-08 11:09 ` vries at gcc dot gnu.org [this message] 2020-03-08 13:14 ` jan.kratochvil at redhat dot com 2020-03-17 7:56 ` cvs-commit at gcc dot gnu.org 2020-03-20 9:06 ` vries at gcc dot gnu.org 2020-04-02 12:39 ` vries at gcc dot gnu.org 2020-07-15 9:43 ` rdiezmail-binutils at yahoo dot de 2020-07-16 12:51 ` rdiezmail-binutils at yahoo dot de 2020-11-24 11:03 ` rdiezmail-binutils at yahoo dot de 2021-03-09 19:08 ` hi-angel at yandex dot ru 2021-04-07 7:25 ` rdiezmail-binutils at yahoo dot de 2021-05-31 12:14 ` vries at gcc dot gnu.org 2021-06-10 18:35 ` tromey at sourceware dot org 2021-06-10 22:59 ` vries at gcc dot gnu.org 2021-06-11 15:02 ` tromey at sourceware dot org 2021-06-22 13:24 ` vries at gcc dot gnu.org 2022-06-17 19:06 ` jsm28 at gcc dot gnu.org 2022-06-17 19:12 ` dpmendenhall at gmail dot com 2022-06-18 18:13 ` tromey at sourceware dot org 2022-06-20 6:59 ` rguenth at gcc dot gnu.org 2023-01-18 13:47 ` fabian@ritter-vogt.de 2023-01-19 2:25 ` sam at gentoo dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-23710-4717-L8ImkDlm9M@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).