From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1B6CB385783A; Wed, 26 Aug 2020 09:56:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B6CB385783A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598435811; bh=//3ekw5AglrX80+JEINBcV5blppfnGpFn7Vt3z4C0do=; h=From:To:Subject:Date:In-Reply-To:References:From; b=I6BSEI23GyxDlDQiD1/E0zP1JT7oaXUi3mHhUNVYksGiPnldcK0jEwxS3AXzHHMWb 1D3LsyuA0uP9aIEsY0fp1d8odVmHcW1ch5PZnlaB+fDGTj+VM6BFCF3bF27rTluZea R5TEQjk3eAlx37BMuhCMy3ZlKu/fs1706eJo9CZs= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/96794] --with-build-config=bootstrap-lto-lean with --enable-link-mutex leads to poor LTRANS utilization Date: Wed, 26 Aug 2020 09:56:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 09:56:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96794 --- Comment #2 from Martin Li=C5=A1ka --- (In reply to Jan Hubicka from comment #1) > > As seen > > here:https://gist.githubusercontent.com/marxin/223890df4d8d8e490b6b2918= b77dacad/raw/7e0363da60dcddbfde4ab68fa3be755515166297/gcc-10-with-zstd.svg > >=20 > > each blocking linking of a GCC front-end leads to a wasted jobserver wo= rker. > Hmm, I am not sure how to interpret the graph. I can see that there is a > funny staircase of ltranses but how that relates to jobserver workers? Yes, I mean the staircase of LTRANS because at the beginning N-1 links are waiting for lock: [ 299s] lock-and-run.sh: (PID 7351) waiting 0 sec to acquire linkfe.lck fr= om PID 7347 ... For jobserver they are still running even though they sleep. > We limit makefile to link a binary at a time to avoid Richi's box getting > out of memory, right? No. It's because we want to have a reasonable contrains which is right now = 8GB. Without --enable-link-mutex, we would consume ~ 10 x 1.3 GB (plus WPA paral= lel streaming peak), which is probably not desired. >=20 > NUmber of partitions is currently 128 what is 100% of CPU usage for you? It's written in the graph footnote "CPU count: 16".=