Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp372343imn; Wed, 27 Jul 2022 08:31:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vaZpNaxiwttTfecsl0bFyF5GyRh7HKsA+DqEeg4Pjv5jHxjDGpjopGXsBOT0Hoq1yTvwZe X-Received: by 2002:a63:6746:0:b0:41b:5589:a7f3 with SMTP id b67-20020a636746000000b0041b5589a7f3mr1361214pgc.414.1658935900440; Wed, 27 Jul 2022 08:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658935900; cv=none; d=google.com; s=arc-20160816; b=GUI6yUOlXc583yrKafy63frKX2zBad+UMTsO/fG6/xh4RPsMcwtdSC+w4Lu3TGBa6e Gc5X9+9FSK9gYO2UymSr4daucmnb34Ls5WByweYnQZyx7cumlHOThp1+1omRoYKZP35v rza1uF2jVfu6w5aIuERjjnUpWx5fyGHS/NGK5ryEXPRWs46Can+nT7xXgEhfvEjpYScp 4tEKDvrxLm4JgT0g56v5DgcgKGtZFX24/oWCeRKyzqmoX24Rg1RAUE2ItqSNTtp6fTQt AhiyIzMrLzCsAyzzvWCACHWCigIDa74SLf5xJPluvLG6gfK5BAzxHu4rw8RDVyeyalsy EJ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DejOeyc5Bty+6/iRLEMvFvVGs80thD2zi1F/z5KtilQ=; b=akeH1GIJpGCur69fMB7FM5nTB1ugB/1ogAWgvGV7AO6g86Rbh2su9CwDEE3GA8XfFL qiSAycNep0DDWzA8yxEBhvZcS3IA22AjddIGsl1F0YRCXzaKUKniJPQtLV9VXxrwohdc TsoFiD6IGAv5aCHG0EbQIxasckmoq5IsCTR/wUyfHe4u4U3o6bBoLysjFZdzuu1rZklt QPldF8pskLasWjtFzotIIoVZQcvFKL+wpJ2DKGOEJEZKFR0nLraWi8tqenPaJHaSGxdi TYSGvgfKTW9NfnOMwSwvZ2MDpYjIi0AH8EwgSsiRJZG/hj31eEwJIjRhjARFFBkuTPap E0Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=S4xk6iuq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a17090270cc00b0016d190e8b78si17184067plt.548.2022.07.27.08.31.24; Wed, 27 Jul 2022 08:31:40 -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=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=S4xk6iuq; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbiG0PKF (ORCPT + 99 others); Wed, 27 Jul 2022 11:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbiG0PKE (ORCPT ); Wed, 27 Jul 2022 11:10:04 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F8B6459B3 for ; Wed, 27 Jul 2022 08:10:02 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id p5-20020a17090a284500b001f318993120so114731pjf.4 for ; Wed, 27 Jul 2022 08:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=DejOeyc5Bty+6/iRLEMvFvVGs80thD2zi1F/z5KtilQ=; b=S4xk6iuqrK2V6O+FNHAsu2C7x4XJs+23oGUi5oHWTWQnBlli+yAG+HZmiWeLLlbpbM RtHNKyzYNQ98X6FHE7uMEGImP/fIXqGsdoSBUoLrmG1K2yz3+KjnFpBbq2yvEkc/tlWn zUTEw1Sl3/zTmYldqoh6SVe8Zabq4bwGO6R++U5wbsWMatVsJ3lWm7r72s1N0W31yKiC gz2M30fO7at6a+e80cvKZaQ9wByQaqZgUHjfyGOJUxVy6NoZKYyJAP3nEHZkbYXOjMJu qmDLVLKFFge0qg9+DNv4gYYiAzMT2+1fUuDMBSqcFglBV4wbKrWaxKIK6ZdRgTO08ldB Pb9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=DejOeyc5Bty+6/iRLEMvFvVGs80thD2zi1F/z5KtilQ=; b=DgEYQ+cD6D1gx9cRoDx62JPivVn7QmQAnKTxzWNgoim7MXtuqO1tAlWP/gwxy/NhuW QzSuBGi5oVUhkb1zHvQTv/zgQjRrp++AMSICu/tuOw3NulsCm7S/HD+9zWFohVK8sqg9 NVpEozovfDD0e6x9TDcH0cyTbXICxRBQgFUbMrsnUd+MjBFDyjNQIhN9TSdZD9NGUCbj MpaFMauxaEkoIgTDU1kgGL5GfyZRcz5GgZnFuvQlIfQ5A/7NZ06jmDqFqtJWBO5d/z/c T2ASCNbVouw4MuTg/qsz2nPvsciRtNdIHGO3yQHb8SjJEVarCzE7y//tsn1NjfaRJH92 VOqg== X-Gm-Message-State: AJIora/Qc1m8oe6HcgHTNuBKcP4vgIjAd2JlJwrnLm1PvPyTXs+4NxVX yXiyWjDi5/X5z61PpSHi5tJQJg== X-Received: by 2002:a17:90b:3d05:b0:1f3:e80:7b30 with SMTP id pt5-20020a17090b3d0500b001f30e807b30mr2957028pjb.185.1658934601992; Wed, 27 Jul 2022 08:10:01 -0700 (PDT) Received: from [10.4.228.171] ([139.177.225.235]) by smtp.gmail.com with ESMTPSA id k5-20020a17090ad08500b001ef87123615sm1815996pju.37.2022.07.27.08.09.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Jul 2022 08:10:01 -0700 (PDT) Message-ID: <0a1f7ce7-2869-c189-3703-89bff2198874@bytedance.com> Date: Wed, 27 Jul 2022 23:09:53 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.0.3 Subject: Re: [PATCH 9/9] sched/psi: add PSI_IRQ to track IRQ/SOFTIRQ pressure Content-Language: en-US To: Johannes Weiner Cc: surenb@google.com, mingo@redhat.com, peterz@infradead.org, tj@kernel.org, corbet@lwn.net, akpm@linux-foundation.org, rdunlap@infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com, cgroups@vger.kernel.org References: <20220721040439.2651-1-zhouchengming@bytedance.com> <20220721040439.2651-10-zhouchengming@bytedance.com> <5f91e194-439a-12c0-4987-5dea0e68a60a@bytedance.com> From: Chengming Zhou In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 2022/7/27 21:00, Johannes Weiner wrote: > On Wed, Jul 27, 2022 at 07:28:37PM +0800, Chengming Zhou wrote: >> On 2022/7/26 02:26, Johannes Weiner wrote: >>> I think we can remove the NR_CPU task count, which frees up one >>> u32. Something like the below diff should work (untested!) >> >> Hi, I tested ok, would you mind if I put this patch in this series? >> >> Subject: [PATCH] sched/psi: remove NR_ONCPU task accounting >> >> We put all fields updated by the scheduler in the first cacheline of >> struct psi_group_cpu for performance. >> >> Since we want add another PSI_IRQ_FULL to track IRQ/SOFTIRQ pressure, >> we need to reclaim space first. This patch remove NR_ONCPU task accounting >> in struct psi_group_cpu, use TSK_ONCPU in state_mask to track instead. > > Thanks for testing it, that sounds good. > >> Signed-off-by: Johannes Weiner >> Reviewed-by: Chengming Zhou >> Tested-by: Chengming Zhou > > Since you're handling the patch, you need to add your own > Signed-off-by: as well. And keep From: Johannes (git commit --author). Got it. Thanks!