Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp743518pxu; Fri, 23 Oct 2020 12:08:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoNdFc0yGeTCJHGuVN6obw3Yu8xJGIK/8luc0cTpz4uiuHFGheZusbQOMj6R27pZkL6FM3 X-Received: by 2002:a17:906:8349:: with SMTP id b9mr3643694ejy.88.1603480082933; Fri, 23 Oct 2020 12:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603480082; cv=none; d=google.com; s=arc-20160816; b=yFSdwmmjVL4k3Vufvzq2JYWhcWJKwd8j+o/JjiC5/2Vi+emUCmuTibVWGA0R6tbHiR smMK6UQL8OgtL++OgeXPQ5icKmJUX0qwRCIGunzEiiXYrVT2PBFIjYJjdiPIqUv05QbG L0HCw/ukWRwTgDVtHf7H4HkqATJbBT6q2nWZ3AJZ0wt5GND7W2AXsaLZaN+Dn4gjTjko Td8OCiB7ChZX+JAZVyFjxgmtybEfTsyPrw/WnzOxlrleFUibKLmuXE87YwFuQGZ1etVb Tlzz1gylcbmND4PUxxmT6BxSPrWPIDniYmj12hlc7tqRoVJOL8hTTBkDbWoE8QhySD2j PkOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IDpHMieNXZZBIoI1fIHPCKIb5NTvidIxfCr8Im48pc4=; b=rcJphP14rsaSKG3OArpYmXBWHNbgGN5G12jJ4ZPLnd1KqiefjGe6GbA29awMXqg4tZ tKr4vBor1vT5sa/KOi+uc95b2SKMu034X8J7zYp02iMcAThy4kJJSd9cnLZFW89IGZoQ 1QpSHCynZ3kXQJ0KGbGSD5evJyOw+cjp6v4p1d3iZOkoVEjKbE8B0mkYSktAhhXuyLFy 9/OPRceRjKzg5MyTJTKvu9PE2JCAdmFi6vsfGZxux3gAOvFs8xF+/vntFpgwnvOiuCMB XvbFW2rldghTUh8n0dZV+6uy25WxBAOOBX/0JvxLg2lNReOReaVIjOFwNabwUsTk4EiV +0ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=IDaJPA5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du3si1458923ejc.411.2020.10.23.12.07.40; Fri, 23 Oct 2020 12:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=IDaJPA5b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754107AbgJWR7s (ORCPT + 99 others); Fri, 23 Oct 2020 13:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754099AbgJWR7s (ORCPT ); Fri, 23 Oct 2020 13:59:48 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED45C0613CE for ; Fri, 23 Oct 2020 10:59:47 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id m65so1599333qte.11 for ; Fri, 23 Oct 2020 10:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IDpHMieNXZZBIoI1fIHPCKIb5NTvidIxfCr8Im48pc4=; b=IDaJPA5bANTTSZhZyxYX2w2AIzGVuL3oCR2wpEGarXb7mxVjjtzPeh3NDdeE2f3PU2 4dnwndVV3sHqykCR8NpRg/A+VjzGqwEB3VO1+m2LbzmrRdZ6nCE7b2XiuQY0oQptNdPh X4qPu5ewGRXHxffnYOZvUuYHpTsi80BTsfx5I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IDpHMieNXZZBIoI1fIHPCKIb5NTvidIxfCr8Im48pc4=; b=aa8Zah72JK8XlnLELAf5yEFzC8j/L4O4uBXeNOMMcJgJE+pLZvOxgEayRPP9lcEjSY WFToRrHwnlMS6BA/vn1CMZoJePjGKrLnlppj8Lz4K1TUfHAZJGwHnK9jmq25Nmp+Er9Q IiohKty6UlKFsejXKvs3Nb3+AkO4+N4DKHmqoo6c/wLeltkgnVXLYJvb+ZVIxRh+ZeR9 MzVuXlKgGHDluqAyEQh6JoIp+4WKT+KhComoTmoggNyeaLVY7g8yikB9rckMMcMDiYzo iqOPB9FktGJV9tIyPAktxHHOYD+yu9m3xJFPB4VaIagmrhh8oMKTkiLt4Jil/FbSJBk3 KVlA== X-Gm-Message-State: AOAM533idbrS7zux7oRWsq2IcgpDiZ22NJGFaLARZ/AlPTj866ormtyr 5yACDdnUrCzX+Gxbuso/thJ+GQ== X-Received: by 2002:ac8:5141:: with SMTP id h1mr2008705qtn.139.1603475986754; Fri, 23 Oct 2020 10:59:46 -0700 (PDT) Received: from localhost ([2620:15c:6:411:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id z69sm1255839qkb.7.2020.10.23.10.59.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 10:59:46 -0700 (PDT) Date: Fri, 23 Oct 2020 13:59:45 -0400 From: Joel Fernandes To: Peter Zijlstra Cc: Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, chris.hyser@oracle.com, Vineeth Remanan Pillai , Aaron Lu , Aubrey Li , "Paul E. McKenney" , Tim Chen Subject: Re: [PATCH v8 -tip 06/26] sched: Add core wide task selection and scheduling. Message-ID: <20201023175945.GB3563800@google.com> References: <20201020014336.2076526-1-joel@joelfernandes.org> <20201020014336.2076526-7-joel@joelfernandes.org> <20201023150544.GG2974@worktop.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201023150544.GG2974@worktop.programming.kicks-ass.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 23, 2020 at 05:05:44PM +0200, Peter Zijlstra wrote: > On Mon, Oct 19, 2020 at 09:43:16PM -0400, Joel Fernandes (Google) wrote: > > From: Peter Zijlstra > > > > Instead of only selecting a local task, select a task for all SMT > > siblings for every reschedule on the core (irrespective which logical > > CPU does the reschedule). > > This: > > > > > During a CPU hotplug event, schedule would be called with the hotplugged > > CPU not in the cpumask. So use for_each_cpu(_wrap)_or to include the > > current cpu in the task pick loop. > > > > There are multiple loops in pick_next_task that iterate over CPUs in > > smt_mask. During a hotplug event, sibling could be removed from the > > smt_mask while pick_next_task is running. So we cannot trust the mask > > across the different loops. This can confuse the logic. Add a retry logic > > if smt_mask changes between the loops. > > isn't entirely accurate anymore, is it? Yes you are right, we need to delete this bit from the changelog. :-(. I'll go do that. thanks, - Joel