Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753904AbdHUN47 (ORCPT ); Mon, 21 Aug 2017 09:56:59 -0400 Received: from merlin.infradead.org ([205.233.59.134]:35514 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753257AbdHUN45 (ORCPT ); Mon, 21 Aug 2017 09:56:57 -0400 Date: Mon, 21 Aug 2017 15:56:45 +0200 From: Peter Zijlstra To: Juri Lelli Cc: Byungchul Park , mingo@kernel.org, joel.opensrc@gmail.com, linux-kernel@vger.kernel.org, juri.lelli@gmail.com, rostedt@goodmis.org, kernel-team@lge.com Subject: Re: [PATCH v8 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq() Message-ID: <20170821135645.y3ppzdyewwbecvvx@hirez.programming.kicks-ass.net> References: <1503044519-2804-1-git-send-email-byungchul.park@lge.com> <1503044519-2804-2-git-send-email-byungchul.park@lge.com> <20170821134458.gocjoobaybb45egi@e106622-lin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170821134458.gocjoobaybb45egi@e106622-lin> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 673 Lines: 21 On Mon, Aug 21, 2017 at 02:44:58PM +0100, Juri Lelli wrote: > Also, I'm not sure what Peter meant with > > "But still this isn't quite right, because when we consider this for SMT > (as was the intent here) we'll happily occupy a full sibling core over > finding an empty one." Consider a 4 core, SMT2 system: LLC [0 - 7] SMT [0,1] [2,3] [4,5] [6,7] If we do a wake-up on CPU0, we'll find CPU1, mark that as fallback, continue up the domain tree, exclude 0,1 from 0-7 and find CPU2. A next wakeup on CPU0 does the same and will find CPU3, fully loading that core, instead of considering CPU4 first. Doing this 'right' is difficult and expensive :-/