Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp241519pxh; Wed, 10 Nov 2021 00:50:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuctRBOTO1Ob0OKai5m90i8eh5rq52E0pUTq4L9BGbTizcOt2Usdqb2Gj4FQIKj8DNrnz4 X-Received: by 2002:a05:6e02:168c:: with SMTP id f12mr10096294ila.277.1636534256889; Wed, 10 Nov 2021 00:50:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636534256; cv=none; d=google.com; s=arc-20160816; b=r6Q1CMiXmylGcs6B53oNzS9pp/TjH9/KWQHuQQIScqYjA1wMvr6mFqR0gT5BkSW60u zrDbzh63De1GBGE9LYg2luORfsfzudQiYm/ySb1RuzGC8MqbvX27BQHmljeHvpub8qRr 3trzDp2UX3qUTH9lwCilf/O/F8sxQkFhcWka8nknswzI+811QZa7pD3tLYdEj9n5PFHj aIBLItJ6AMOdOFJX4hS9k4j1R4CPZ0ricsoBwnkvOqHFd1efSFh9S0RYieXBaCKCCnzF qs6mpmR1Ocs2QX4DVw4/8+NSZsmn5GamXUQiYRxXJ2C0Rpjkujcw2xMV8FIB8QHS0/gX WlLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ilWBpVaz7tim4BhtPmkdQdhYCNjSuFWWWOgzt2FZgCw=; b=08o1d8Uzus8HtQcRXM+U5O5dRKrs0FP2aH42M/vWg3pWPSanwP0G9dL4n2GXXE0F6e 47VO7zcencc3hv5/FtNFmmQN1AVhqfB4U1GuiA6loRW+lx9MJF8AcBKgKHCeZJxsvWce ex86uH1BubEhHgGu2EhehCjB+5vbkfGomF+Dpv7Kg2ljWpPNgqeiKG/O/UoaBbgssLNu vxxBCgqWC0ZuVJ7fy8NcYqGnHBgzE4Mhj8psspMBhB191RS6pSqIOXsU4hk26lVamvvA aKgEoV00BX05+HIUBQfEl7FnaVk3nyheP2NNTZIWj7tAYKkcjtiz0Z/dRFQQKs8pqd7T uMow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=p19pENSi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si3506272iox.83.2021.11.10.00.50.43; Wed, 10 Nov 2021 00:50:56 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=p19pENSi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbhKJIu4 (ORCPT + 99 others); Wed, 10 Nov 2021 03:50:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbhKJIuz (ORCPT ); Wed, 10 Nov 2021 03:50:55 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528B0C061764 for ; Wed, 10 Nov 2021 00:48:08 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id az8so1837435qkb.2 for ; Wed, 10 Nov 2021 00:48:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ilWBpVaz7tim4BhtPmkdQdhYCNjSuFWWWOgzt2FZgCw=; b=p19pENSim9WAPoNekW+dUA+/dsWZqflDjQ50BWuZnoA3CYeBp/XRPPwvOR3pQ1bIUN JI7ZZNzDQlrtoEVpPuOaSIsFCcXDNhEFurwGbGw5VRKSmoBOhT+yC4oyDPVYTnqNMBYe lDAdHhhLwm5LudPb4JvIxvsZ0P9kN36zr21/+O79B6Wr9pFCMypPFIkriVA0NE8S23P9 Vsm3oWcXP8HOXCf3+Q9jt/w6qA/t3w+iCvwQdzk2KxlHsqlWbdu3Ou6co1ZzCJtJl2G2 tgs4xeh4EM7y009YlcIduEtNIiBKSzoCf+oswmALdTgmbZSi51d4FE564KQBY6he4sKP C7nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ilWBpVaz7tim4BhtPmkdQdhYCNjSuFWWWOgzt2FZgCw=; b=ywlGPYhUUT5TPGG9OYBhF63v2bpefZA7iuKNa3SVgfzc1+jFjt4QnK/RcRZxQ4eywU Abc4M+pI5HKViMUrCLyJFAG+VHe/rhzJ73rtJ7Searq7LxETC7Y2neQm+x/CCMUAtAa9 cr0VB9Om5VTF1RUturNAshtnxaSJ/lVTDozBg7ssrCrFx2iKOEfQtg28ZJj1ZszAeV67 ByW9UII1N6mwnx3xYRtnTDlvoJ3uQQesoh1hi0EuUIqBDaqqJ0S/r5snQEid+tAOEkGR hdEAcb6u5hhbxFV0YXkgpXiSpkDP3smZGjzc2ZWgNDn3G77GGwK+1ndM900FaUHQzCYZ pi0Q== X-Gm-Message-State: AOAM531NJgQyTkPTHmWVezBeA4ggukpTg5u5dcMs2mgVUCq4gV5JjynZ RdAuS1DofgZMEHSQnIl1hrT63HJAf3AhxwWCI4lsOzOC X-Received: by 2002:a05:620a:450a:: with SMTP id t10mr11607242qkp.412.1636534087567; Wed, 10 Nov 2021 00:48:07 -0800 (PST) MIME-Version: 1.0 References: <1634278612-17055-1-git-send-email-huangzhaoyang@gmail.com> In-Reply-To: From: Zhaoyang Huang Date: Wed, 10 Nov 2021 16:47:46 +0800 Message-ID: Subject: Re: [Resend PATCH] psi : calc cfs task memstall time more precisely To: Peter Zijlstra Cc: Vincent Guittot , Dietmar Eggemann , Ke Wang , xuewen.yan@unisoc.com, Johannes Weiner , Andrew Morton , Michal Hocko , Vladimir Davydov , Zhaoyang Huang , "open list:MEMORY MANAGEMENT" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 4:36 PM Peter Zijlstra wrote: > > On Wed, Nov 10, 2021 at 09:37:00AM +0800, Zhaoyang Huang wrote: > > On Tue, Nov 9, 2021 at 10:56 PM Peter Zijlstra wrote: > > > > > > On Tue, Nov 02, 2021 at 03:47:33PM -0400, Johannes Weiner wrote: > > > > CC peterz as well for rt and timekeeping magic > > > > > > > > On Fri, Oct 15, 2021 at 02:16:52PM +0800, Huangzhaoyang wrote: > > > > > From: Zhaoyang Huang > > > > > > > > > > In an EAS enabled system, there are two scenarios discordant to current design, > > > > > > > > > > 1. workload used to be heavy uneven among cores for sake of scheduler policy. > > > > > RT task usually preempts CFS task in little core. > > > > > 2. CFS task's memstall time is counted as simple as exit - entry so far, which > > > > > ignore the preempted time by RT, DL and Irqs. > > > > > > It ignores preemption full-stop. I don't see why RT/IRQ should be > > > special cased here. > > As Johannes comments, what we are trying to solve is mainly the > > preempted time of the CFS task by RT/IRQ, NOT the RT/IRQ themselves. > > Could you please catch up the recent reply of Dietmar, which maybe > > provide more information. > > In that case NAK. Would you please explaining if there is any constraint to prevent from doing so? We do think eliminating the preempted time is reasonable and doable as it is memory irrelevant but probably related to lack of CPU etc.