From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EF123876058; Sun, 22 Mar 2020 05:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EF123876058 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/25703] set dwarf max-cache-age default of 5 is slow for inter-CU-reference binaries Date: Sun, 22 Mar 2020 05:45:53 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org 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: Sun, 22 Mar 2020 05:45:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25703 --- Comment #1 from Tom de Vries --- Another data point, using system gdb 8.3.1 on openSUSE Leap 15.1: ... $ time.sh gdb -batch -iex "maint set dwarf max-cache-age $n" usr/lib/debug/usr/lib64/firefox/libxul.so-74.0-1.1.x86_64.debug ... n=3D5 (default) maxmem: 7084448 real: 362.42 user: 360.25 system: 2.13 n=3D10 maxmem: 7421056 real: 310.57 user: 308.35 system: 2.21 n=3D32 maxmem: 8273816 real: 250.26 user: 247.74 system: 2.47 n=3D100 maxmem: 9010380 real: 192.34 user: 189.75 system: 2.58 n=3D316 maxmem: 9637176 real: 143.71 user: 140.78 system: 2.91 n=3D1000 maxmem: 10504788 real: 114.22 user: 111.25 system: 2.96 n=3D1316 maxmem: 10502420 real: 119.02 user: 115.66 system: 3.34 So, increasing the value from 5 to 1000 reduces execution time with a facto= r 3 from 6 minutes to 2 minutes, at the cost of roughly 1.5 times more memory. --=20 You are receiving this mail because: You are on the CC list for the bug.=