From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 26110139083 for ; Wed, 22 Nov 2017 14:11:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ADD27E0EA8; Wed, 22 Nov 2017 14:11:43 +0000 (UTC) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-oln040092002090.outbound.protection.outlook.com [40.92.2.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 31DB5E0E98 for ; Wed, 22 Nov 2017 14:11:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+8K4SUzPsLqeMZ4bGxCT1geMRweo21PglUzE9Tn2uBQ=; b=HUxP8SElZ2PmNE/AYRkQBGJ1J5VlA9f/0gRbOs1StI3MvQ0Xttk+oN4WPOwpOsCuqmq9QRjXQh8ildrMpvKObH9dV1rZJkyAFxs99VIXVRSkTnetBApXi5WBkfmQtbzP02sUk47VZVAkVeNZZpdQPJ4sw9Idwc1HecBjLdPt7F5p6l6UomBlKokekxkn0ebu/zmtwLF2V8yBGvbP6aFsLk6A6yLVuU3H5liwIGviGxsK/DXpQNQs/EAhLOWMEBBJMqp6Sfmti8BIQRmr5828OqanTMfd73xrbiBUkxcyRSX0ezy7g5tqh4gNh1E+XTNCZ2kETH1q89Nl5ue9eSGCRA== Received: from BY2NAM01FT003.eop-nam01.prod.protection.outlook.com (10.152.68.55) by BY2NAM01HT163.eop-nam01.prod.protection.outlook.com (10.152.68.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.218.12; Wed, 22 Nov 2017 14:11:35 +0000 Received: from DM5PR15MB1722.namprd15.prod.outlook.com (10.152.68.53) by BY2NAM01FT003.mail.protection.outlook.com (10.152.68.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.239.4 via Frontend Transport; Wed, 22 Nov 2017 14:11:35 +0000 Received: from DM5PR15MB1722.namprd15.prod.outlook.com ([10.174.109.145]) by DM5PR15MB1722.namprd15.prod.outlook.com ([10.174.109.145]) with mapi id 15.20.0239.009; Wed, 22 Nov 2017 14:11:34 +0000 From: Tsukasa Mcp_Reznor To: "gentoo-user@lists.gentoo.org" Subject: Re: [gentoo-user] is multi-core really worth it? Thread-Topic: [gentoo-user] is multi-core really worth it? Thread-Index: AQHTY1463cA13hQbBEKQfFNXUC1+t6Mf/4+AgABgz4CAAA3oiQ== Date: Wed, 22 Nov 2017 14:11:32 +0000 Message-ID: References: <6b5fbeca-453c-f103-5e4e-a8db83a6dabf@st.com> <20171122072601.GA18724@gentoo-tp>,<85555669-e101-e17e-9486-090afbb52784@st.com> In-Reply-To: <85555669-e101-e17e-9486-090afbb52784@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.gentoo.org; dkim=none (message not signed) header.d=none;lists.gentoo.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:763A5BC7828273C43C2C945D134EA9D76ECC2CEE037037192979729075D3924D;UpperCasedChecksum:0474E7A46ABF892783E35E4193076ADEB03BBC591381D72FC9C8401D251E72FF;SizeAsReceived:7056;Count:45 x-tmn: [UfwikhOa4j/pflctroqFUb+h82EMSjTI] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BY2NAM01HT163;6:h7kvK3JaeMBFCmoN0CK9g1OT8SfIAIhsakyztrFvdsyMlsMg/BoaHCFh9CCY3Fy2UtyYIkH191FAzldFkdyNjtv4lHls/LdU1p5CWngPeZfrSltXPeT9RPEzKDwrAxDTyaptgh7D9c0ryWBvXdui7SFv1QhKUEYIrMMMb7npDT4Ttgmt/6aQWrVhRCfd7XiZ3mAeFkpB1aMJoAmU9CKYdiDyYoXKCf6Z8wrwf//Hl+RpjvHyzIIzlOkDy5SAYj5WIgrLmDAcA+68wYpJzFbV72tAbdn6uuOdIdMT+jHhG3Hl4r85DzcQ5E52RiaaBhB4FL0RNFGDOkMjM4ZASPX/7i39epCokoFEq62twW3bAFQ=;5:BMSToNQ6prnCCC9Y05xH+47s+eMeWgshoXfi9WYF62+8k7jOiucIrLQR7OKj57Hx7DxC5t1y1TCKr6+aYJOQjTVp4TpQkKCWupjLzCjRTPsvwMrhI7sTxEQjGcLhoh+J7750VePJbTnmiBvjIl1557rCoqsQtffhnNBb1IZtJ7c=;24:6doWFTKnSLYUownTiK5jrJNAdgUkDZvMHRS6TRiwdLLglGHY43k1DdSYjSj5Eaepul3g0Xi0cS5pQAG4zkYf8n+XYtLUjxkhChAskJN85vM=;7:MsTobuCQVVpE7wDKBYcXLNhPkxlr3mFneHpPIdlgMoCnTbsZEfhWdAhfI0hiwizYkAByTHEdc6oIfX1cYTj96mPL2g8o7omzikoL6r8BHIDDoyCvphQClmUFkug0ev4QPtJ+Ue/pZ16PntGylaUtp8kC7fWhDvPcEgqY27Tgo21t1nijT7JF1hjPMJjvama5Ury8iLkelWrdHk+ccSWbzG67SaH4MXnlwjBSaQ4DHMMQGp5yNxK7OI7QAw2rUBq7 x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 1a872d89-c476-4c7a-7c32-08d531b2f048 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045);SRVR:BY2NAM01HT163; x-ms-traffictypediagnostic: BY2NAM01HT163: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:BY2NAM01HT163;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2NAM01HT163; x-forefront-prvs: 0499DAF22A x-forefront-antispam-report: SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:BY2NAM01HT163;H:DM5PR15MB1722.namprd15.prod.outlook.com;FPR:;SPF:None;LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM5PR15MB1722692DF2A8290D1BA46A47F0200DM5PR15MB1722namp_" Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a872d89-c476-4c7a-7c32-08d531b2f048 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Nov 2017 14:11:32.6152 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM01HT163 X-Archives-Salt: 30885311-cdef-4667-84c6-782575826ed6 X-Archives-Hash: 5e7fa37e484b4b11119f8bec3c22184e --_000_DM5PR15MB1722692DF2A8290D1BA46A47F0200DM5PR15MB1722namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: Raffaele Belardi Sent: Wednesday, November 22, 2017 8:12 AM To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] is multi-core really worth it? Jeremi Piotrowski wrote: > That being said: if you do a world rebuild you will have lots of packages > that spend ~40 seconds doing their autoconf run, only to build 2-3 source= s > files. On an 8-core machine at work, I get good results using parallel > emerge jobs (emerge -jX). For your 6-core AMD CPU (assuming it actually > has 12 threads) I'd start with 'emerge -j3' and MAKEOPTS=3D'-j12 -l16'. > That should get you a nice speedup, but may require a bit more ram. emerge -j3 is something I did not think of, I'll try it. But won't that bre= ak portage's carefully crafted package dependencies? I suppose you could get occasional = build failures? I'm using MAKEOPTS=3D-j7, I thought 2 threads per CPU (hyperthreading?) was= an Intel thing only. raffaele There are alot of good tweaks to get by long configure sections, I have an = octa core, so for normal updates I use - MAKEOPTS=3D"-j8" # for 8 cores being used per package EMERGE_DEFAULT_OPTS=3D"--jobs 2 --load-average 4" # only starts 2nd job if = load average is low. You won't get build failures or dependency problems, portage is built to ha= ndle emerging multiple packages that do not depend on each other simultaneo= usly. it will not ever build a dependency and the main program at the same time. PORTAGE_NICENESS=3D"19" # best setting ever, I do some gaming while updatin= g, you mainly only notice install phase if your are loading while the disk = queue is full of writes. --_000_DM5PR15MB1722692DF2A8290D1BA46A47F0200DM5PR15MB1722namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable


From: Raffaele Belardi <= raffaele.belardi@st.com>
Sent: Wednesday, November 22, 2017 8:12 AM
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] is multi-core really worth it?
 
Jeremi Piotrowski wrote:
> That being said: if you do a world rebuild you will have lots of packa= ges
> that spend ~40 seconds doing their autoconf run, only to build 2-3 sou= rces
> files. On an 8-core machine at work, I get good results using parallel=
> emerge jobs (emerge -jX). For your 6-core AMD CPU (assuming it actuall= y
> has 12 threads) I'd start with 'emerge -j3' and MAKEOPTS=3D'-j12 -l16'= .
> That should get you a nice speedup, but may require a bit more ram.
emerge -j3 is something I did not think of, I'll try it. But won't that bre= ak portage's
carefully crafted package dependencies? I suppose you could get occasional = build failures?

I'm using MAKEOPTS=3D-j7, I thought 2 threads per CPU (hyperthreading?) was= an Intel thing only.

raffaele


There are alot of good tweaks to get by long confi= gure sections, I have an octa core, so for normal updates I use -
MAKEOPTS=3D"-j8" # for 8 cores being used per package
EMERGE_DEFAULT_OPTS=3D"--jobs 2 --load-average 4" # on= ly starts 2nd job if load average is low.

You won't get build failures or dependency problems, portage is = built to handle emerging multiple packages that do not depend on each other= simultaneously.
it will not ever build a dependency and the main program at the = same time.

PORTAGE_NICENESS=3D"19" # best setting ever, I do some= gaming while updating, you mainly only notice install phase if your are lo= ading while the disk queue is full of writes.


--_000_DM5PR15MB1722692DF2A8290D1BA46A47F0200DM5PR15MB1722namp_--