From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C89EB3948491; Fri, 20 Mar 2020 09:05:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C89EB3948491 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/25703] New: set dwarf max-cache-age default of 5 is slow for inter-CU-reference binaries Date: Fri, 20 Mar 2020 09:05:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Fri, 20 Mar 2020 09:05:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25703 Bug ID: 25703 Summary: set dwarf max-cache-age default of 5 is slow for inter-CU-reference binaries Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- In gdb/dwarf2/read.c, we find the default setting for "set dwarf max-cache-age": ... /* Loaded secondary compilation units are kept in memory until they=20=20= =20=20=20=20=20=20=20=20=20=20=20 have not been referenced for the processing of this many=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 compilation units. Set this to zero to disable caching. Cache=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 sizes of up to at least twenty will improve startup time for=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 typical inter-CU-reference binaries, at an obvious memory cost. */ static int dwarf_max_cache_age =3D 5; ... See PR23710 comment 5 for an example where indeed increasing this setting f= or an inter-cu-reference binary reducing loading time with 16.5%. --=20 You are receiving this mail because: You are on the CC list for the bug.=