Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1030424yba; Fri, 26 Apr 2019 12:51:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzFvwabBqHgZUi+MulWK1HEJqwJrq58IEZ9KSnkd1PraZlISiXAtDd3vSXhogbPuOsy5xJ X-Received: by 2002:a17:902:848d:: with SMTP id c13mr22313005plo.279.1556308268020; Fri, 26 Apr 2019 12:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556308268; cv=none; d=google.com; s=arc-20160816; b=xQQ+nD3Mlsih6sYQDhDyZEXkJmvr68WEXqpN/CXMwmo5HW8Pi/W5lSIKCNB0zzelPk 3wHay+drAVB9d/iOkCmrPXUQIHwuhGgixsB/oW0bGLHnzfkuxiehOsCdsuy7f8Tr945O WLcH7M7+12mvdGbvc7jfWRskM/poyePgYilC9x6WlJS97MGnhiXx4yXFuhArv69pQCT2 R9LEa+NaTFD15GpLam/UCJu8eHvg3YqhCyLcNpuPh6K+1vkNJqajUBR52oxvVE7O7cXh gtiNuDQI7+euEdx3Xzdw6TdyifrHqbWZd8658g2QEelhl0NS67tFXSt0cWNr1djYTGLT U73g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IXI3pLlHTp/A9143okg9+Vzrgm8SVhWu7TyN3Vby//8=; b=iKstwCPuG8I8PKATS0mPHh2+XKBSsguzPQdN7IoTUzj2eWwStgn4dYBl9ekAkVlyzM JlncKIQj7rBWFTsLqa5RrE3W7lR4ESo46BHkKPMyxmOjDX4h/R1s39GAtxCJJp5OVr6J YInGLP5fNlL5vpu8afqdkyJBMEZ9x/MGt7RlNg9BXqlPHBbOvUOZviwS7DARkZYNSevr 6ye5TFfOqJmGC4Bh7VECnPVPBwKyo44YQ5PmMeticfB1UiDzgN1sQBf9GYDiYCIxYZaT BFdWxPtm2lser8nPeK0LH09EESUXLQElJYvBo2V7PkR5GPaYEZ+ruxJmzASQ2yOH7wKt zEXw== 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 i8si8222231pgq.468.2019.04.26.12.50.51; Fri, 26 Apr 2019 12:51:07 -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 S1726818AbfDZTt1 (ORCPT + 99 others); Fri, 26 Apr 2019 15:49:27 -0400 Received: from outbound-smtp02.blacknight.com ([81.17.249.8]:34307 "EHLO outbound-smtp02.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfDZTt0 (ORCPT ); Fri, 26 Apr 2019 15:49:26 -0400 Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp02.blacknight.com (Postfix) with ESMTPS id C008E98B05 for ; Fri, 26 Apr 2019 19:49:23 +0000 (UTC) Received: (qmail 13679 invoked from network); 26 Apr 2019 19:49:23 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.225.79]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 26 Apr 2019 19:49:23 -0000 Date: Fri, 26 Apr 2019 20:49:22 +0100 From: Mel Gorman To: Subhra Mazumdar Cc: Ingo Molnar , Aubrey Li , Julien Desfossez , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Fr?d?ric Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Pawan Gupta , Paolo Bonzini , Jiri Kosina Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 Message-ID: <20190426194921.GB18914@techsingularity.net> References: <20190424140013.GA14594@sinkpad> <20190425095508.GA8387@gmail.com> <20190425144619.GX18914@techsingularity.net> <20190425185343.GA122353@gmail.com> <20190425213145.GY18914@techsingularity.net> <20190426084222.GC126896@gmail.com> <20190426104328.GA18914@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 11:37:11AM -0700, Subhra Mazumdar wrote: > > > So we avoid a maybe 0.1% scheduler placement overhead but inflict 5-10% > > > harm on the workload, and also blow up stddev by randomly co-scheduling > > > two tasks on the same physical core? Not a good trade-off. > > > > > > I really think we should implement a relatively strict physical core > > > placement policy in the under-utilized case, and resist any attempts to > > > weaken this for special workloads that ping-pong quickly and benefit from > > > sharing the same physical core. > > > > > It's worth a shot at least. Changes should mostly be in the wake_affine > > path for most loads of interest. > > Doesn't select_idle_sibling already try to do that by calling > select_idle_core? For our OLTP workload we infact found the cost of > select_idle_core was actually hurting more than it helped to find a fully > idle core, so a net negative. > select_idle_sibling is not guarnateed to call select_idle_core or avoid selecting HT sibling whose other sibling is !idle but yes, in that path, the search cost is a general concern which is why any change there is tricky at best. -- Mel Gorman SUSE Labs