From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 80CC93959CBE; Wed, 3 Mar 2021 15:04:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80CC93959CBE From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/27507] New: [dwz] Low-mem mode slowness Date: Wed, 03 Mar 2021 15:04:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified 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: nobody 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 cc 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: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 15:04:38 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27507 Bug ID: 27507 Summary: [dwz] Low-mem mode slowness Product: dwz Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: default Assignee: nobody at sourceware dot org Reporter: vries at gcc dot gnu.org CC: dwz at sourceware dot org Target Milestone: --- Low-mem was originally advertised with: ... commit d3b509689e17cd4885e0dfb9ad777e6337297282 Author: Jakub Jelinek Date: Tue May 29 19:00:58 2012 +0200 Implement special low_mem mode, which roughly halves amount of needed RAM at the expense of small slowdown on very large inputs (more than -l COUNT DIEs). Give up if input has more than -L COUNT DIEs. ... Now consider the test-case Checker.so.debug, ~48 million DIEs, .debug_info ~0.5GB: ... $ ./src/contrib/bytes-per-die.sh $f 11.15 size: 542547271 nr_dies: 48634711 ... We compare normal and low-mem mode: ... + ../measure/time.sh ./dwz debug/Checker.so.debug -o debug/Checker.so.debug= .z -lnone -Lnone --no-odr maxmem: 5912860 real: 69.10 user: 65.82 system: 3.27 + ../measure/time.sh ./dwz debug/Checker.so.debug -o debug/Checker.so.debug= .z -l0 -Lnone --no-odr maxmem: 3048072 real: 135.65 user: 133.19 system: 2.40 ... The memory savings is correct, roughly 50%. But the increase in computation time is almost a factor two. --=20 You are receiving this mail because: You are on the CC list for the bug.=