Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2595389rdb; Mon, 4 Dec 2023 01:54:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGvqzTwOxNXFgA+CTPCbkDbD+EkQ3H7iQeaorVOspd1eNcdKMElf+atXSDqycOrBDmF0ig4 X-Received: by 2002:a17:90b:4f88:b0:286:8a9c:6825 with SMTP id qe8-20020a17090b4f8800b002868a9c6825mr799242pjb.12.1701683689538; Mon, 04 Dec 2023 01:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701683689; cv=none; d=google.com; s=arc-20160816; b=PT99gIU2KjQ9ngsupDOIgDnuLa0sTRCaFgFGFm6jpvSr3EyY77b67u1DwVfSwfpFSx RnFoUFw+ckmDUuIAi4Az8r6Fsm/BcYUG8Rj4LduEh7NqgAUsqhje+JOP7Hf74iJpiIQs bNFNDJHi83DXz9hPvcLWT9XOB/TvUHqOLA880IFuAtx+4+DS6P6VurWqLWmDRvExB7wN a6rsBtwpDrzvrL6AO0lwyPW6jVLPT9rhv82ao+GXTU0s40vieebBimu2hKdOV9jB4dAB XbB4ScdO3NgCfawodp/mHNuOZJB5iQAFaRpUlT5UwzNpAAORl58sEITqHI8mtQdygLSQ 9DHw== 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=hUsWs1Nvk+Jou3+4Sjpg4bycXQIYoHKO7jqfrQ8ZCms=; fh=8UKOWctlVOMGhLBak6osK7nkHr1PHTYU2ntba0camoI=; b=OYhOZ5kbGW//tnqVzSV60e+jnvdfhoLiioyrD7ijHRXr/1E9vwEHuLZNej1MmDe1Jd /4iN8YWwID0BffPi3ukitQngcQtYHTb6WEV7C5/dnDaJVYME1XAPSQRIOjWavIMnEnMe i8Z6kKtU38dq7oY2R8G57O3rx3JKhiMM1g4RTua+TiRMY8WhA1pJKMlsbumRrOW+OYG1 zJeSMMxN3C7U9J+UiN9/er566mcBog1Z30169OW3CEnlb2nmWudzPNbzSH04Hn9GhR+m pK84q6SeWJMatfBvd99Krd20Q/PgQPPT2hKQR99I2qgOBSASlHOXCpjp+V8o5manA6R+ ZJeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJAWxRAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id k1-20020a17090a62c100b00286adc9fd7fsi1429381pjs.60.2023.12.04.01.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:54:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJAWxRAe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E67358092C88; Mon, 4 Dec 2023 01:54:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230127AbjLDJye (ORCPT + 99 others); Mon, 4 Dec 2023 04:54:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbjLDJyd (ORCPT ); Mon, 4 Dec 2023 04:54:33 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADB3B2 for ; Mon, 4 Dec 2023 01:54:40 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5c6734e0c22so279902a12.0 for ; Mon, 04 Dec 2023 01:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701683679; x=1702288479; 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=hUsWs1Nvk+Jou3+4Sjpg4bycXQIYoHKO7jqfrQ8ZCms=; b=IJAWxRAeXQBOaGQ6v2MVvGZ69vDURHh/b6sxUxyVbBOt/1vyLdZwRTlgTS3mM6+GOt Km1udSbP1wZpcLSAAikAyDuJNS932uQlrzdCRbx1IjDa5VbwhyAl27tpzJ1CTPx8P6rN lWecl5nTpsEjGnvBniujmo4hB3SNHXJyPejb//WIzokHXrLRLwHmz7bBDh7F1JvrVr8K 1p56/rf/L9IaEBeENDjQ95DKFweFDCXsD6y7mRRlXooyTw0B7DT3WY4JoP/RtBNgkp34 lcKoHpPRUFOanq4T6uJ5vb1RgDnrpLQvFx/oy7lcJjasU/qglbpgXxQPr6glxTrkng5t KTtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701683679; x=1702288479; 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=hUsWs1Nvk+Jou3+4Sjpg4bycXQIYoHKO7jqfrQ8ZCms=; b=s6YCVc+sJZ+IeFjzaMH3NDpiXcTmdh2cgUsZdL9HnTuC5uEQvQcQa8PJoVYpEXgutC R6MDIK2OXMj0pLVWcMBYGeQwze90X7ton5d1xWSimAvwR9MJ4VHOBh50R3L7BcFYgtUl 3yhj1n6zpXGSrShHOLt57U8NfSrMzrE8ypcmGK4eXmvyjtYEuLBTxmxsKFU/rNCEGC5W GiEfL2R/6TbcVuAc1EMNdc+Sm7iqt9npGfVa67HvpZBdBJRTGZ63AyHAKq/oqesSPoss BhB5QvBvZifygLzWmRHla3/zOtf98L2F1GXPTDrh/PL51rPHBAmRBBwQ6P/xyArDqIQN O2gQ== X-Gm-Message-State: AOJu0Yx+nmrbcvmCdv2xUlu5wzLLitV0WF9f7HXrCbiptzpcoGrQm4BL QODun7a1OwjVbd6WFwCmrxNRjqJYfq7CBJPlTfDlxw== X-Received: by 2002:a17:90a:e7c2:b0:285:92c6:cc26 with SMTP id kb2-20020a17090ae7c200b0028592c6cc26mr1026221pjb.40.1701683679503; Mon, 04 Dec 2023 01:54:39 -0800 (PST) MIME-Version: 1.0 References: <20231201161652.1241695-1-vincent.guittot@linaro.org> <20231201161652.1241695-3-vincent.guittot@linaro.org> <20231202233812.cq2nodia3estdexy@airbuntu> In-Reply-To: <20231202233812.cq2nodia3estdexy@airbuntu> From: Vincent Guittot Date: Mon, 4 Dec 2023 10:54:28 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] sched/fair: Simplify util_est To: Qais Yousef Cc: 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, corbet@lwn.net, alexs@kernel.org, siyanteng@loongson.cn, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, lukasz.luba@arm.com, hongyan.xia2@arm.com, yizhou.tang@shopee.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 01:54:47 -0800 (PST) On Sun, 3 Dec 2023 at 00:38, Qais Yousef wrote: > > On 12/01/23 17:16, Vincent Guittot wrote: > > > /* > > * The load/runnable/util_avg accumulates an infinite geometric series > > * (see __update_load_avg_cfs_rq() in kernel/sched/pelt.c). > > @@ -505,9 +469,20 @@ struct sched_avg { > > unsigned long load_avg; > > unsigned long runnable_avg; > > unsigned long util_avg; > > - struct util_est util_est; > > + unsigned int util_est; > > } ____cacheline_aligned; > > unsigned long would be better? I thought about changing it to unsigned long but I prefered to keep using the same type as before for the ewma as we don't need to extend it