NetBSD Problem Report #53508

From john@anath.zia.io  Fri Aug 10 17:11:10 2018
Return-Path: <john@anath.zia.io>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E932D7A1D7
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Aug 2018 17:11:09 +0000 (UTC)
Message-Id: <201808101711.w7AHB64U023340@anath.zia.io>
Date: Fri, 10 Aug 2018 17:11:06 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
Subject: lang/rust still fails with high -j values
X-Send-Pr-Version: 3.95

>Number:         53508
>Category:       pkg
>Synopsis:       lang/rust still fails with high -j values
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 10 17:15:00 +0000 2018
>Closed-Date:    Fri May 22 23:20:18 +0000 2020
>Last-Modified:  Fri May 22 23:20:18 +0000 2020
>Originator:     John Klos
>Release:        NetBSD 8.0
>Organization:

>Environment:


System: NetBSD dohee.nextvr.com 8.0_STABLE NetBSD 8.0_STABLE (DOHEE) #0: Tue Aug  7 22:48:23 UTC 2018  john@dohee.zia.io:/usr/obj-amd64/sys/arch/amd64/compile/DOHEE amd64
Architecture: amd64
Machine: amd64
>Description:

Attempting to compile rust from lang/rust fails with high -j values. Sometimes the 
rustc processes park, and sometimes they just chew CPU.

...
   Compiling proc_macro v0.0.0 
(file:///usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/libproc_macro)
   Compiling syntax_ext v0.0.0 
(file:///usr/pkgsrc/lang/rust/work/rustc-1.28.0-src/src/libsyntax_ext)

22156 root      28    0   253M   43M CPU/15    19.4H 99.02% 99.02% rustc

This is on an 8 core AMD Ryzen.

>How-To-Repeat:

Compile lang/rust with -j 16
>Fix:

Compile with -j 1 or -j 2

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 22 May 2020 23:20:18 +0000
State-Changed-Why:
Fixed by joerg in -current, worked around for netbsd releases.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.