Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2070945rwn; Fri, 16 Sep 2022 05:23:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM44x3o1ZQfESwpoyX8puOxoO5lMbFaT3JLaDlJ2ChJLOjstLYX9hAe9NpwmUmZNeXKywnzF X-Received: by 2002:a05:6402:280f:b0:44e:ee5c:da6b with SMTP id h15-20020a056402280f00b0044eee5cda6bmr3828110ede.256.1663331003032; Fri, 16 Sep 2022 05:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663331003; cv=none; d=google.com; s=arc-20160816; b=T8xv1xUY4esNvsf/8X84BMO2pwyzZNURSGgAPI6JTEge8z63K30Bbsq4EWsj3bZzfe ck8gHNKvf7okR/NRgWE1kQYXniPlHSsJB6znZ4vVqkLql2M2BmqT6PvkiOi+8oMShSR1 jKKjD+O4fdR0o4WfbFH+amjWQvdPir2WxshsVWH67uBfhOlIlmUFMtAn5bagEgUXXX+t FOeZnvvj2wRVwTYFOqWx22ddSxetYXmXBSZHsIEWJNeD7R6VBYrjnJb88bswKgnIeXtw HjH6qaHQsDKrMxZfMmzSZrNy3YD22wZQXV4Vyrp8e6c8Nh1JXZDh420P6NIh130EduLq FvRg== 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=jRLLoms3gEFmE3Xqk3ace4Mb+kdij3/aL1dHcL5UlLY=; b=Cse+avxyC7/fBaoA+n7dAgeLsGtwwbpluSSI8VljPprwICIHH0fsdqSxcWv64Pl1jx Fb9vZ1TUDSYRWMoXVCrVW73qysOv2qFO7l8xbngLv9+Q1WQ418Xxy1vOiu508Nsjb5SE dLLOF/AT3Ee0VVMv7tJ6RgSjBGkg2y8OZ+KXN6bE3vRvMYIXl9y4VQ5HhDBbyD7vpCeF SnLdigKmQ5mb9piURik9OoWorFR9pAKZGeNqJd2dE9I3+/GzBv1OyqKBJPXgiA49LHNd 6GUWwbBrcaJGLjsi6rTCDCTT6sf/7sI9yLSndb9EKf+cDXeajQ7Cn8V54QmS9RXg+kIN r9QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Aokz8rIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m26-20020a50ef1a000000b00451ec0817cdsi1929586eds.172.2022.09.16.05.22.56; Fri, 16 Sep 2022 05:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=Aokz8rIo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbiIPLsV (ORCPT + 99 others); Fri, 16 Sep 2022 07:48:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbiIPLsQ (ORCPT ); Fri, 16 Sep 2022 07:48:16 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8D3BACA32 for ; Fri, 16 Sep 2022 04:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jRLLoms3gEFmE3Xqk3ace4Mb+kdij3/aL1dHcL5UlLY=; b=Aokz8rIoFPHEGU/NeMtgjaI7yE lUegGiRNvJbrPBr3jicrciiVj7SPmG5E9s43CoWSv0shwTZ3k80xR+CaCAJdUNt8Y/KiCAlpyoINr 2WmnfdfV4F15nGURh3CLrncu2dPw42nmEGezlLI9xun4cgtrtWYzg7CdSDfBzaVAC0akfwNFhYILk Lxcj1BpKKImKvSHI/xRO2MgMz+G1MOILvqQr7vuqNIXjUj94tqizlvoBhnvnIAKRFaaOjbGCRBKM4 3pX77kvwX4/3ldkOQNbLgYDZ3IhZNucpb4yxSjdL6zNnPTbYTH7/ofQGkFtPK4MqiVc27xNMyGHLm AkeeQehQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZ9oz-00CzGj-T0; Fri, 16 Sep 2022 11:47:50 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 7E8F430013F; Fri, 16 Sep 2022 13:47:49 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 656BC201A0BBA; Fri, 16 Sep 2022 13:47:49 +0200 (CEST) Date: Fri, 16 Sep 2022 13:47:49 +0200 From: Peter Zijlstra To: Chen Yu Cc: Vincent Guittot , Tim Chen , Mel Gorman , Juri Lelli , Rik van Riel , Aaron Lu , Abel Wu , K Prateek Nayak , Yicong Yang , "Gautham R . Shenoy" , Ingo Molnar , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira , Valentin Schneider , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] sched/fair: Choose the CPU where short task is running during wake up Message-ID: References: <20220915165407.1776363-1-yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220915165407.1776363-1-yu.c.chen@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 16, 2022 at 12:54:07AM +0800, Chen Yu wrote: > Current proposal is a variant of 2: > If the target CPU is running a short-time slice task, and the wakee > is also a short-time slice task, the target CPU could be chosen as the > candidate when the system is busy. Since this benchmark only has short running tasks, the result is that you always pick the local cpu and therefore the migrations are reduced? Doesn't this inhibit spreading the workload when there's geniunely idle CPUs around?