From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C76663860C37; Wed, 26 Aug 2020 10:13:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C76663860C37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598436781; bh=T1Uxh0W+7HX/p4/tkIoFwS4Y7tTMGQwZBKkMysnZqck=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WUftfHSVjcThCJ9D0Ja9963XqKsnyazwlSekJ+ASkubtxyuOKPndBSaQ8D2/4T3QR V/H4z+JheZ2Sxb6NRJ5qcKscCkhkTvtchUdjk/PLmKH3b9285PfbEQHY8ItUcUm9eS xw11WblHZlE6HYHicHkk0U044hctRFhwJUgcIPYs= 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 10:13:01 +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 10:13:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96794 --- Comment #4 from Martin Li=C5=A1ka --- > > For jobserver they are still running even though they sleep. > Aha, so it is extra locking mechanizm we add without jobserver > knowledge. It's unrelated to jobserver, one can enable it with configure option mentio= ned in the title. > >=20 > >=20 > > > We limit makefile to link a binary at a time to avoid Richi's box get= ting > > > out of memory, right? > >=20 > > 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 p= arallel > > streaming peak), which is probably not desired. >=20 > 10x1.3GB will get consumed only if the building machine has 10 threads. Typical OBS machine used for package build is either 8 (required minimum) or 16.=20 > I wonder if the jobserver WPA streaming integration will happen this > year, with that snd some patches to WPA memory use we could fit in 8GB > unless very large parallelism is configured. >=20 > I suppose only really effective solution would to teach the jobserver > that some jobs are "big" and consume multiple tokens, that is WPA, while > other jobs like ltranses and streaming are small. >=20 > This is of course still not very pretty, but it is impossible to tell in > advance what job is big and what job is small. Sure, it's all quite compilicated. One needs to negotiate with jobserver :) I'm going to collect graph w/o --enable-link-mutex on my machine. >=20 > Honza=