From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A66D3385700A; Tue, 24 Nov 2020 11:03:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A66D3385700A From: "rdiezmail-binutils at yahoo dot de" To: gdb-prs@sourceware.org Subject: [Bug gdb/23710] gdb is slow and memory hungry consuming debug generated with LTO by GCC Date: Tue, 24 Nov 2020 11:03:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdiezmail-binutils at yahoo dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Nov 2020 11:03:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23710 --- Comment #17 from rdiezmail-binutils at yahoo dot de --- I did some more tests after GDB 10.1 was released. I am now using GCC 10.2 . GDB 10.1 is faster, but still pauses around 1.5 seconds. My firmware genera= tes an LTO release build .elf file that weighs 10.4 MiB, and GDB uses a lot of = RAM: VSZ 620 MiB, RSS 286 MiB. The debug build .elf weighs 8.9 MiB, which is less even though it has more = code because of all the asserts. GDB does not pause at all and uses less RAM: VSZ 372 MiB, RSS 38 MiB. I tried setting "maintenance set worker-threads 1", because the default has changed with GDB 10.1, but it did not seem to make much of a difference, so= it is probably an unrelated setting. --=20 You are receiving this mail because: You are on the CC list for the bug.=