From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-131683-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RUyNR-0007ll-Kz for garchives@archives.gentoo.org; Mon, 28 Nov 2011 10:23:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8592421C0BD; Mon, 28 Nov 2011 10:23:48 +0000 (UTC) Received: from svr-us4.tirtonadi.com (svr-us4.tirtonadi.com [69.65.43.212]) by pigeon.gentoo.org (Postfix) with ESMTP id C081F21C0AF for <gentoo-user@lists.gentoo.org>; Mon, 28 Nov 2011 10:22:26 +0000 (UTC) Received: from mail-fx0-f53.google.com ([209.85.161.53]) by svr-us4.tirtonadi.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from <pandu@poluan.info>) id 1RUyM0-003IHW-Go for gentoo-user@lists.gentoo.org; Mon, 28 Nov 2011 17:22:28 +0700 Received: by faaq2 with SMTP id q2so1491545faa.40 for <gentoo-user@lists.gentoo.org>; Mon, 28 Nov 2011 02:22:21 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.205.122.139 with SMTP id gg11mr43694808bkc.67.1322475741839; Mon, 28 Nov 2011 02:22:21 -0800 (PST) Received: by 10.223.96.72 with HTTP; Mon, 28 Nov 2011 02:22:21 -0800 (PST) In-Reply-To: <20111128092744.39f8e501@digimed.co.uk> References: <CA+czFiB4pSTcVTgAbRnL6AUgGoE9E7gsg-1O0LgfU4FVF_DB+Q@mail.gmail.com> <CAK2H+ecGHe=9_RVtM-FOWmyaJ-S5YJ4+2qtYov49v9n=PSQwtA@mail.gmail.com> <CA+czFiAOv4sq0saX7CwVCA=09rVt4BtK1Ef7k=xUNtG6x6_YYQ@mail.gmail.com> <CAA2qdGX_yPj8Yaafk6VMAjV1QU5yDyJ3KC2up_wgG6iAMJtC0A@mail.gmail.com> <20111128092744.39f8e501@digimed.co.uk> Date: Mon, 28 Nov 2011 17:22:21 +0700 Message-ID: <CAA2qdGVr81tdqTLp5bS5XNJvmTy1UqpjY+ap7iC47W4z7Oy9Qw@mail.gmail.com> Subject: Re: [gentoo-user] emerge -j, make -j and make -l From: Pandu Poluan <pandu@poluan.info> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - svr-us4.tirtonadi.com X-AntiAbuse: Original Domain - lists.gentoo.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - poluan.info X-Archives-Salt: bcb55cdd-ea79-4c5f-9073-b7f7ebab4d6f X-Archives-Hash: 0f972c1698e4dbdcc3032aedbad20a22 On Mon, Nov 28, 2011 at 16:27, Neil Bothwick <neil@digimed.co.uk> wrote: > On Mon, 28 Nov 2011 12:26:48 +0700, Pandu Poluan wrote: > >> Just in case anyone wonders where the multiplier "1.6" comes from: >> >> There had been a discussion somewhere (I forgot where exactly, sorry) >> about load numbers. The final conclusion was that the ideal load number >> for today's processors is 2*N, because with the out-of-order capability >> of modern processors, two instructions can overlap in the pipeline, even >> without hyperthreading. > > Is N the number of physical cores, or does it include hyperthreaded cores > too? > And that... I forgot. However, considering hyperthreading is just a 'trick' where a pair threads of the same context can run together on a core, I'd wager that N here should be considered as the physical core. In other words, my guess is that 2*N is the "implicit hyperthreading" performed by OOO processor cores. On hyperthreaded cores, the 2*N ability of OOO processors is made "explicit". TL;DR : 2*N for non-hyperthreaded cores, N for hyperthreaded cores. (Disclaimer: Above is my pure speculation. Feel free to debunk it based on your tests (: ) Rgds, --=20 FdS Pandu E Poluan ~ IT Optimizer ~ =C2=A0=E2=80=A2 LOPSA Member #15248 =C2=A0=E2=80=A2 Blog : http://pepoluan.tumblr.com =C2=A0=E2=80=A2 Linked-In : http://id.linkedin.com/in/pepoluan