Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp700080imd; Thu, 1 Nov 2018 04:17:54 -0700 (PDT) X-Google-Smtp-Source: AJdET5dsRuVcJhrU1GIk41t2HX86Pw9AYFgwB/pqKNmgf0Ripr3L8ULsB9ZJiUlK3YUtFj50GNki X-Received: by 2002:a63:fe0a:: with SMTP id p10mr3544977pgh.265.1541071074282; Thu, 01 Nov 2018 04:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541071074; cv=none; d=google.com; s=arc-20160816; b=xjfv/k14IYWsLbmdaV3tWGadYn01EwBoM9Ors4wrcVUQIQ79cjsTaPT5mj9/Zl06l/ AJGoDhvn2kvUD/tft40dlQXZEqto9L7Suo+quzpkXy4jGdDO2H9LOKsNiY/TnrBYpH2U bbOTarAR67fScxTmkCcwyTWiiO+Wgx2TMdm3EJ1gVbLd19ea/4rXiR8Phi6FOmuS19RX +Z9mlDFCyMZp8JvLQldO4+3N0ouzYkOtLsQGNeyKWbjPgMqmK1nP9ulkJzV2uXUiRtxS +CZBzMd5Aw2wzN7JUxz6ryh5QFRo9gDvO7n1R2DCuI6RTQAf5hja03jzog9ACqbwoaZH xAZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dJagVemWOabhwT6bl9e/hhqCYOx/spCwKrxbVC9N4qU=; b=ljJcLBnrI2qasPGk22YC8nJ6oZDx+QsANuxF97gjD+pb7F7Vhf9h5gbC4lEER9SY5v x5iAjN0MjDviSgj/kyAK7R8Df5SEHyCfuhSreAnym53/To8/TKsjNAquRX2W2Yo6dzGf pWNlQL5xLhbTWcnFG1SKU2UIqhggEQxyiSROvFIG2HTvZm4srfsL/rk51i2yhCZlWZ6d g0GFFOpO35PyAY+R/5IHsPPtD0nA+v/dwVof2+sGU6SnRkW25jwH6JaDitRLq3Ohk8pi 2VgP3bylu+b+I+m00Y0FIuZCbyxElI7THmCsv+DN9SNsIEHGmbkKMN6ASnb89zTz9KKg i7ZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15-v6si29760899pgl.117.2018.11.01.04.17.38; Thu, 01 Nov 2018 04:17:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbeKAUTL (ORCPT + 99 others); Thu, 1 Nov 2018 16:19:11 -0400 Received: from foss.arm.com ([217.140.101.70]:55026 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbeKAUTL (ORCPT ); Thu, 1 Nov 2018 16:19:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 98861A78; Thu, 1 Nov 2018 04:16:41 -0700 (PDT) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4AA0D3F71D; Thu, 1 Nov 2018 04:16:39 -0700 (PDT) Subject: Re: [PATCH 07/10] sched/fair: Provide can_migrate_task_llc To: Peter Zijlstra Cc: Steven Sistare , mingo@redhat.com, subhra.mazumdar@oracle.com, dhaval.giani@oracle.com, rohit.k.jain@oracle.com, daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, matt@codeblueprint.co.uk, umgwanakikbuti@gmail.com, riel@redhat.com, jbacik@fb.com, juri.lelli@redhat.com, linux-kernel@vger.kernel.org References: <1540220381-424433-1-git-send-email-steven.sistare@oracle.com> <1540220381-424433-8-git-send-email-steven.sistare@oracle.com> <20181031191459.GA3141@hirez.programming.kicks-ass.net> From: Valentin Schneider Message-ID: <10491016-9eec-846f-9632-f6de965508b6@arm.com> Date: Thu, 1 Nov 2018 11:16:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181031191459.GA3141@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/10/2018 19:14, Peter Zijlstra wrote: > On Mon, Oct 29, 2018 at 07:34:50PM +0000, Valentin Schneider wrote: >> On a sidenote, I find it a bit odd that the exec_start threshold depends on >> sysctl_sched_migration_cost, which to me is more about idle_balance() cost >> than "how long does it take for a previously run task to go cache cold". > > A long long (think 2.6.20 long ago) there was code that did boot-time > measurement of the various cache topology costs and that threshold was > related to that. > > That code got killed because of boot to boot variance and dubious > benefits. > > The migration cost is what it was replaced with as a single measure. > > migration cost was then later abused in the newidle balance because it > was over eager. Thanks! I tried following the blame rabbit hole but got a bit lost along the way. > Ideally we'd get rid of it there, because we've now got > that much more elaborate accounting, but Rohit tried and found some > regression because of that. > > Maybe we should remove it from newidle anyway. > Well, if we ditch idle_balance() in favor of stealing, that would "solve" it...