From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D2FE6138010 for ; Wed, 27 Mar 2013 14:38:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 04B95E0A9F; Wed, 27 Mar 2013 14:37:49 +0000 (UTC) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9C080E0A85 for ; Wed, 27 Mar 2013 14:37:47 +0000 (UTC) Received: by mail-ie0-f179.google.com with SMTP id k11so10326493iea.10 for ; Wed, 27 Mar 2013 07:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nileshgr.com; s=google; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=4+Q7XoxKYFVXuTmx/7iQywZl2yVh2diALLLLRxiNA8Y=; b=Bp21/HBFEX88Ral3mfCrWAc1pHpdrBVYuSogTn4jS1OEqQyEVJX0ygiWhJQaBAOBC0 7LLOCRseVG1sAsZFFHQzLuFiGSWMLlm8NrAH2OnzDL5XvT2qUCZtLEJ/twNxvz92JAK7 f/qwaEyc/ZDEfrlIcmSJEc4c50T9W43PRr+ZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=4+Q7XoxKYFVXuTmx/7iQywZl2yVh2diALLLLRxiNA8Y=; b=pUyM45ndiXCoQr2szCxXzKy0wyH4b7E1gkH/ahv1EVikzWggINbfPeuejYHCE5xnMX G02zIIBX8PC5YAmg/OOAY/ixT0z94wychF0lMnm6Y4QaTxLsmoOFpXABZkQJIT32xWge BbTF+QIEXhWc6v4K+whjn/6VGXXMayKTQKxSNinesmcrEqfqprZfazH+pmof+Q4dLao5 Wta5SdnOtWIJU+1gEjFC8OOzebcZl9QTA5nEuM6CPWcyWjCGiGkAZc/6QwyuzX5nT0GB 79FVSS2Gw0N8A0DLEz9Fgsgk2GFt1aLrdatlUpYAWpFeMyOfy2dLC8mXTAz4Jduzj09q EnHg== X-Received: by 10.50.13.228 with SMTP id k4mr4388652igc.30.1364395066182; Wed, 27 Mar 2013 07:37:46 -0700 (PDT) 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 Received: by 10.64.23.113 with HTTP; Wed, 27 Mar 2013 07:37:06 -0700 (PDT) In-Reply-To: <87wqsssz4a.fsf@nyu.edu> References: <87sj3jw63e.fsf@nyu.edu> <20130325222558.5f1d4871@digimed.co.uk> <87ppymuc5v.fsf@nyu.edu> <20130326083437.4d1c61e3@digimed.co.uk> <20130326165815.5fee2f50@hactar.digimed.co.uk> <87wqsssz4a.fsf@nyu.edu> From: Nilesh Govindrajan Date: Wed, 27 Mar 2013 20:07:06 +0530 Message-ID: Subject: Re: [gentoo-user] Is 'MAKEOPTS="--jobs --load-average=5"' silly? To: Gentoo User Mailing List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlwJFbH6uZyZ0VSAWUCriitXoL0ceaFHHmvLjxz89PPJHnx+Ln8TNlt4hAIUw8RYoKBYPE1 X-Archives-Salt: cdddb465-0ce1-4068-80cf-0939271ddaf0 X-Archives-Hash: 23744112b31f2068de99bb55135e6da1 On Wed, Mar 27, 2013 at 7:50 PM, wrote: > On Tue, Mar 26 2013, Neil Bothwick wrote: > >> On Tue, 26 Mar 2013 20:43:25 +0530, Nilesh Govindrajan wrote: >> >>> It's better to limit the number of jobs to 2*CPUs (or cores) with a >>> load control like --load-average=N where N is number of CPUs. > > I have two i7-3520Ms. Each has hyperthreading so "counts" as 2. > In particular /proc/cpuinfo describes 4 "cpus". > > Nilesh, Does that mean you recommend > > EMERGE_DEFAULT_OPTS="--jobs --load-average=4" > MAKEOPTS="--jobs=8 --load-average=4" > > In particular I am not sure if your recommendation for load-average > applied to EMERGE_DEFAULT_OPTS as well or if you were just discussing > MAKEOPTS. > > thanks, > allan > It was for MAKEOPTS. If you have a really powerful processor, consider splitting it for emerge options and make options. Would be faster. @Walter, I'm also on a dual core machine, and as per my observation over long emerges, load doesn't cross 2.2. I have also observed that if it is limited to 2, system seems to be under utilized, because make checks the 1 minute average instead of 15 minute average (well, it doesn't make sense otherwise). This could apply to bigger processors too, so if you want full utilization, slightly extrapolate the load average limit. Say by 20-30%. -- Nilesh Govindrajan http://nileshgr.com