Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp51750ybt; Fri, 12 Jun 2020 19:29:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS1YkCdIU+glt8BY6bZFkj0zq+kL9L69gjSNyJsAi0uJHAdmL5CENQ4O98Ltx1C7RwA4gO X-Received: by 2002:a05:6402:1d0d:: with SMTP id dg13mr13988105edb.146.1592015388558; Fri, 12 Jun 2020 19:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592015388; cv=none; d=google.com; s=arc-20160816; b=SmZD6iIlzTBdwpJx6wc30Esht37TsIRLH351JQ2f/doT+0S1kjGi6FT44YEb541uC+ 8eKa7lHrC+aAEl3JJ5UgofDauF1cB8Jt/wWIS90bQAt8n0Jn5Mmebdv4vCLfFk7yJR12 DSQwMXADgjGxR6j417KzYeOdxVrt5glVKr/dfm0obdO8DMZ1CdjLj0upGabytOYsaaGU aj0mFKJn+9Pz6Hraf4LHAfLxMF5LyHlEigACJNGrapjlbwLkaZwDvnZh7MFtvlt1/++W Csezg73vzbnyw9c2hdnvadwSkruDmqbNOpqnKHb8srOG+/gxl/dRfOp5S2FjFK17p2LM EtTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HJ9Hy54QNj+UxnvQ+yVK0ru4Ot34nn3XlbCD/hu9EpQ=; b=kYEWkRltlrHm2k7NCsqYH1ILOnrb4cpaG60PBM8cqrtTK0yRGqn06ZZ3qdhxWD17TH Bqm8aLdb9YBkdQrarvxWBxcAz8DSchFwmN48R84n2isefRmtW++yLcWrjUEJCr5Os6zc 3oIWhd/cNlCkUftiX/mXkGPX+UGoTd+t4ybzc3XRCHQ3lxDpICjrsyI6Qkka2OYwz9Qh MtbqW8WCe0ABVdRDmT2YUk8spNJPxvIqYZCjWzX5fZNaheX9YOpcyk/sgL5g9XNmMoL4 +3d1ZP9hwRWLkpcJkvS4BqWQSakLQfLDycXf/VV5vnfo6EQ3dbuYgn2zKbPUQ1KlrD9+ pZFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=p5uIegYO; 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 e1si4686678eds.436.2020.06.12.19.29.25; Fri, 12 Jun 2020 19:29:48 -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=p5uIegYO; 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 S1726404AbgFMCZg (ORCPT + 99 others); Fri, 12 Jun 2020 22:25:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726392AbgFMCZg (ORCPT ); Fri, 12 Jun 2020 22:25:36 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EE4AC03E96F for ; Fri, 12 Jun 2020 19:25:34 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id g7so5280481qvx.11 for ; Fri, 12 Jun 2020 19:25:33 -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=HJ9Hy54QNj+UxnvQ+yVK0ru4Ot34nn3XlbCD/hu9EpQ=; b=p5uIegYO2W8tG4RqkxJ4EsNggd1V00b/VUmBx8QaujnBZ/xTCbU0QzlKcXqyGBEgs8 Mw8Qg5WM8Sgtib/m4xTnQF25rzNz3plPA0DQdr8TzSBKfGy+5ajLzKBi7YjTT+WGlFhE 5zyMer6mRbBo/QW6hOHlAqX9g6U80+fwxV5Es= 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=HJ9Hy54QNj+UxnvQ+yVK0ru4Ot34nn3XlbCD/hu9EpQ=; b=cp4tH6x5Q88BNGrjNC/6ZbCpR6Ncf9x0YwbJo1vsyZA6AIGyF3BeKaPJDMr+4WDsoM /41OHmEgcDzXHT1R94bVzuJgZxrUtKvSowrOlqf1O6Wna6QiaFicidZEUy35nX7Q4HGH 9YvyucGGu/PWJVdOPhuT3+rrT5cnZWA1aya4iYnQ884l41OWp+XrjEfQl+7Icx5Rukur +cUizNZGQ68h12JNmMUVNaCc5itu3POSrKMVWtPQNLYrJvD3gx2MB/klQYfY4Bj8/y/H JG3vajED3/hMRdLVJCoqjOXh7Nhz6yL7iiI7H+AtwPjRUbZACWbxh3qDmlSWKn+2P7Jx Owcw== X-Gm-Message-State: AOAM532VIaMaLTMnepgnzAB37qMTPvc9MY6jlVexCrij8Sc4kb70UmYb 5MYYCzSBbLc8+3gsIrn9yEnA7Q== X-Received: by 2002:a05:6214:2c8:: with SMTP id g8mr13319742qvu.188.1592015131596; Fri, 12 Jun 2020 19:25:31 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id r195sm6076241qka.12.2020.06.12.19.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jun 2020 19:25:30 -0700 (PDT) Date: Fri, 12 Jun 2020 22:25:30 -0400 From: Joel Fernandes To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Aubrey Li , Linux List Kernel Mailing , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Aubrey Li , "Li, Aubrey" , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH 11/13] sched: migration changes for core scheduling Message-ID: <20200613022530.GA110162@google.com> References: <279f7f6606ea18e14d64517840bcada56deb0ce3.1583332765.git.vpillai@digitalocean.com> <20200612132127.GA90012@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 12, 2020 at 05:32:01PM -0400, Vineeth Remanan Pillai wrote: > > AFAIR, that's what v4 did: > > > > if (available_idle_cpu(cpu)) > > #ifdef CONFIG_SCHED_CORE > > if (sched_core_enabled(cpu_rq(cpu)) && > > (p->core_cookie == cpu_rq(cpu)->core->core_cookie)) > > break; > > #else > > break; > > #endif > > > This patch was initially not in v4 and this is a merging of 4 patches > suggested post-v4. During the initial round, code was like above. But since > there looked like a code duplication in the different migration paths, > it was consolidated into sched_core_cookie_match() and it caused this > extra logic to this specific code path. As you mentioned, I also feel > we do not need to check for core idleness in this path. Ok, so I take it that you will make it so in v6 then, unless of course someone else objects. thanks! - Joel