Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp222799rdb; Thu, 21 Dec 2023 07:28:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRWt9LcZ5qj4d0l48GUxKANJxGoG4yDaG/XHwrT978oWTl3P+ENr/9LY7TXsI3dZrU/19O X-Received: by 2002:a05:6102:15a4:b0:464:5268:4031 with SMTP id g36-20020a05610215a400b0046452684031mr801383vsv.28.1703172516125; Thu, 21 Dec 2023 07:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703172516; cv=none; d=google.com; s=arc-20160816; b=E0HQ7veE2PzjUu7iZpUoNuv/TlR/nXrs3qyHR72nP6+45nbjchVq9VegVSUcePhmg2 laEiSXs62fZnHZw3xSFJU+QdwGr4LF5gZeVcIvS6Nq80KfVsoy427/jK8/qWKrG3dZWq t5KbxpJCxQhYyT9DM6K4Wn3CE8TPwSFcKgcgESl/wW7Op5a/sULi2NURKO4jAPR57Y54 3zNL8VN0IYAP2LDLQfhjuL7tnHK5lXJNavbDf3QoZpAsvQYRFP/zcUSE105NQYA2eboL sEIelrzCLpvmt/xRnm/ers/QmRMD6Qax7NS8knc1fzC35AE7WbJJRItXsSzjB11a+UZj 1Oug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=dC5SYh5wvDuLRLTzz+EBxLcN+RV8t/MMdts61ZKTGpM=; fh=hy6/8i9LnP2qgqYkEnJWVJ8IJMCWBKkUXckmCwuj+48=; b=PLnf70Trjf6uj+f7YsAuowbOnlh0WYpsaKGjZ5RglPUYWREfEWnmjYlafj1UCs8d9B eXKmZNHYOAqy86SG4aioljcK5dlA0p+lzzRkDQfJ1k9aJcpPfIeOnXeYp4Ja3svgH9zx cuARLThAYgsoy+8FVJH4R2uabRV9rVrYE3HzrSPuqTeeGJmjLFTZu4lMOzan3ieUOAZ8 wBof4UR9TNA6/FYepzOfYmaHVfZe0Cdscyetd7Hf6ZXkxtSKy883aneDAmrxfOvy/qjb en6q8opEeRwNeIhk+27WmqZSKZcPfxsq4N9EeLaeeN/tGc5//wWuteDXDqeyZq9bw1fT qQ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gAQK00WN; spf=pass (google.com: domain of linux-kernel+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x11-20020a67e88b000000b0046689049be3si323245vsn.769.2023.12.21.07.28.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 07:28:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gAQK00WN; spf=pass (google.com: domain of linux-kernel+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B5B751C25C8D for ; Thu, 21 Dec 2023 15:28:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD24A539FB; Thu, 21 Dec 2023 15:26:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gAQK00WN" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAB8C539F9 for ; Thu, 21 Dec 2023 15:26:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pj1-f54.google.com with SMTP id 98e67ed59e1d1-28bc870c540so724910a91.2 for ; Thu, 21 Dec 2023 07:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703172402; x=1703777202; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=dC5SYh5wvDuLRLTzz+EBxLcN+RV8t/MMdts61ZKTGpM=; b=gAQK00WNHcA8r+I0bj28Kz7rqnbPcfUT2GYgmb8LDByRdUPvO4czgORZRb8uiIkkdG 0+25qmmcpCNL9I1EbR4sYjFNYjCNvaso+AFRRMREnT0SuowObLh7L5fG15dNNz0oHIDr MBQmBtor2ncMs5EMj7pF4Z01S+MBRQGtgKpNMZmjQnW+Sbzcf9A2XZPdB7df0HN1YAvr aY3joIDG+Tnx8BNCIQiaNFXEY+fhR55GKrB8sNpVLyd84PacoM9eahV90nue/77pniL3 0o3WvIkRBtDaISBtawSeRapTRTgkxuRR6kxx3ZoT/CDA9pe3CXhrfdbnkXqjnk9/MHaQ EpRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703172402; x=1703777202; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dC5SYh5wvDuLRLTzz+EBxLcN+RV8t/MMdts61ZKTGpM=; b=fd5IjA4zLSd4OMEkax2uKv1K0PbO/CuhKer/QOdx8Fm1ui7bPtYkoE4yt2jdAQ0iCL HxvwN6cjMipTtJU3LnIsClpFp/uSN/JXB4KvdmGAUviFPNYgtDWOF09QqDOaI8Htrpy/ HO7C7II7xRxTUg6v3jBCPgyoicrIXPhwVI+DmHrqhWwD0ELCoYuSPl7Wq2ORu+HNxfuH 8h5tUh3a8DvhvWhiIsP2Dzbrjmihhv/knG8sRLEXMhoq2ztDbbA8oJ6eL3DteX9dP45z LYJ1pfihzYHPD/elkSLnvpqeHUckbG7rhvKuKJ3Ze6zpsN4Hr4ntEEkv617qWGy3cI0Q MZ3g== X-Gm-Message-State: AOJu0YzvqdQgfOpXPj7BlHejPYgstw49bk9hOoOBOEO0vt+nJCEpbmWr EW3IeRKkZy4EBHYmWW4mJ386e2x8lBSAQEZdii9MPA== X-Received: by 2002:a17:90a:5408:b0:28b:cbec:2f4a with SMTP id z8-20020a17090a540800b0028bcbec2f4amr2327195pjh.15.1703172401946; Thu, 21 Dec 2023 07:26:41 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215052652.917741-1-imran.f.khan@oracle.com> <1c13b0cc-098c-4f75-9f37-a53a66965409@oracle.com> <20231221082105.GA600162@ziqianlu-desk2> In-Reply-To: <20231221082105.GA600162@ziqianlu-desk2> From: Vincent Guittot Date: Thu, 21 Dec 2023 16:26:30 +0100 Message-ID: Subject: Re: [RFC PATCH] sched: fair: reset task_group.load_avg when there are no running tasks. To: Aaron Lu Cc: Imran Khan , mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Hi Aaron, On Thu, 21 Dec 2023 at 09:21, Aaron Lu wrote: > > Hi Vincent, > > Thanks for the heads up. > > On Wed, Dec 20, 2023 at 06:31:08PM +0100, Vincent Guittot wrote: > > Aaron, > > Could you run the tests that you run for testing "Ratelimit update to > > tg->load_avg" and check if this patch impacts your performance ? > > I run hackbench/netperf/postgres_sysbench with nr_thread=nr_cpu on a 2 > sockets/120cores/240cpus Intel server and didn't notice any performance > change after applying your diff so I think it's not a problem. Thanks for the tests. I'm going to prepare a proper patch > > Regards, > Aaron