Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp359478rwl; Wed, 5 Apr 2023 01:31:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Y86MLQLnqrOgsUf1dIA2mZ/+fzMiQJbugRWbbtix/1Pdc01cHeOygiDHVFi0DiA3bln8HR X-Received: by 2002:a17:906:99ce:b0:921:d539:1a3a with SMTP id s14-20020a17090699ce00b00921d5391a3amr2228591ejn.58.1680683465033; Wed, 05 Apr 2023 01:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680683465; cv=none; d=google.com; s=arc-20160816; b=BMq6Nf785/8pnHQc3P3nxuFSUk9v31mz4JDxGDAkbaRnxbd3acWe2L8KcPgzn2l95B jDQerqNJ233vHKH6xYXIo37tn2/EpiEg9txqzX+HuEFPaTmxf0/GT6BCVvZAlbZH2u88 Tyf2NPKEKVU2du3qG2fq56EZhhp+HMRE6x0ESbtURggwwtDgUpKMkTP5aagl9nXizsGU 6sx49cCWjkExq39QNcwXw9i/9gbjFw+V/wZgv4ijzzy+BZxSFRS/UPXp5gGe+v8fSMgD ISKaBzPTO3G29Ya41QtoehqJJTmx/hCLNTKg5MVy6FGr8fNlRgxkyllgsI+EMvw0HkG+ SOIg== 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=KQiY2BSTqgmN+97qITG2MYayhrDwaEuFNxVLU8l4ftY=; b=WvJbsnLMY9vS3ImOY+84//ppJTtDovbqG60G1/0buKTdzajueJ12OJ9G5AuWFrPYBe /53j+n/YOIlR77lOrBbeMNfUptquTRMZZkeKX3lUB1vNvbKnXVxgU8TSFbyZDx0WSPyd IyXnKGZPdkR+Xj1/LeB3G6gzmKW6yXtePIIpkmmOVSCebfTmcd6W3JVDEiFy8gtW3PJS SGJEPfihAhfxIm4QQ2q1dp9KPimuW7oCDYT2b1WbDQo68R+y7/dlfkIcd/ITbv7rA3jS Ci0qi0iuj6aSDGfRN4qiG0qHSHeRHnEpNGa77eQTHXQAWC6GWXX+eD86Cb92TEimnkTu 1QrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YwHgF0dO; 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 h25-20020a170906111900b008cc657e52afsi10206465eja.604.2023.04.05.01.30.40; Wed, 05 Apr 2023 01:31:05 -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=casper.20170209 header.b=YwHgF0dO; 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 S237037AbjDEIPE (ORCPT + 99 others); Wed, 5 Apr 2023 04:15:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236486AbjDEIPC (ORCPT ); Wed, 5 Apr 2023 04:15:02 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85EC0DF for ; Wed, 5 Apr 2023 01:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=KQiY2BSTqgmN+97qITG2MYayhrDwaEuFNxVLU8l4ftY=; b=YwHgF0dOXNDf/Zvb8KQ+KLe6Jj G7kemxYPf+LFnG8NepZohdGNzMPRGotzaBiSL0J1qTtxAPue6Stc8rPpVKiTVa3fODkl6bjEFTJgW zshTeymiz1oNvX1jnCUipTXuZqfyV4lNaiNeH2vkQDAXd36K/nzscTkzZ7tR0qSlS21glbMxqCYbs KNn3HfPaw9SVaozewM/GEP4DO5+etM2YQBkhRFFShKAz2hxiIEZb5YU0eKavycd3Z5FziTod2J/Dt ZisACwOlCaVREyBmjq//NrtnBSjn2zrO6QhZpKo5g6wOYw9S8F+YkA2PqbNWmgmcI0ilJ5PJgrQFC +6Y25Qkg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pjyI6-00GBdn-Ld; Wed, 05 Apr 2023 08:14: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 B0898300202; Wed, 5 Apr 2023 10:14:49 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8DC4026A69DAC; Wed, 5 Apr 2023 10:14:49 +0200 (CEST) Date: Wed, 5 Apr 2023 10:14:49 +0200 From: Peter Zijlstra To: David Dai Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 1/6] sched/fair: Add util_guest for tasks Message-ID: <20230405081449.GX4253@hirez.programming.kicks-ass.net> References: <20230330224348.1006691-1-davidai@google.com> <20230330224348.1006691-2-davidai@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230330224348.1006691-2-davidai@google.com> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Thu, Mar 30, 2023 at 03:43:36PM -0700, David Dai wrote: > @@ -499,6 +509,7 @@ struct sched_avg { > unsigned long load_avg; > unsigned long runnable_avg; > unsigned long util_avg; > + unsigned long util_guest; > struct util_est util_est; > } ____cacheline_aligned; > Yeah, no... you'll have to make room first. struct sched_avg { /* typedef u64 -> __u64 */ long long unsigned int last_update_time; /* 0 8 */ /* typedef u64 -> __u64 */ long long unsigned int load_sum; /* 8 8 */ /* typedef u64 -> __u64 */ long long unsigned int runnable_sum; /* 16 8 */ /* typedef u32 -> __u32 */ unsigned int util_sum; /* 24 4 */ /* typedef u32 -> __u32 */ unsigned int period_contrib; /* 28 4 */ long unsigned int load_avg; /* 32 8 */ long unsigned int runnable_avg; /* 40 8 */ long unsigned int util_avg; /* 48 8 */ struct util_est { unsigned int enqueued; /* 56 4 */ unsigned int ewma; /* 60 4 */ } __attribute__((__aligned__(8)))util_est __attribute__((__aligned__(8))); /* 56 8 */ /* size: 64, cachelines: 1, members: 9 */ /* forced alignments: 1 */ } __attribute__((__aligned__(64)));