Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp888356rwe; Thu, 25 Aug 2022 10:55:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR7RnzPeojwhf4cn9RAWOsYo8HJ1rrZOaFsxAQ0dAfz4fT9PFztUI/U5wOVWh7511TCexFz0 X-Received: by 2002:a17:907:9693:b0:73d:cc84:deb with SMTP id hd19-20020a170907969300b0073dcc840debmr3094057ejc.552.1661450158131; Thu, 25 Aug 2022 10:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661450158; cv=none; d=google.com; s=arc-20160816; b=FNpwTC5C4UAbmivJAg2TWlV5SIT4CG+ya7e5IRzg8nvKJly9XCZt4ypRJqZcKIPaZj 9smLaW84jAZrhzppIIWNAZ5oP2gyszW26ftuBNKRsrxdpYQ+cPA/knbSQl/E5Q1KrCMr 4L8vWH5wkPr2iHITsB+uA2G5ZhkShdyOrWNcbbcn9q49hT0Dqo8cpxvfSvOFYTJA8/fE f5HodQRomAfJ0ubC8pWxzgGImX1xNf9hShNeBaSXv9kf2oiBXFvG+MA1WTu0lByQY9yq pQQJFxRRvbo2T0U64+H7TXV+gjalJgA7GVEAd8eU/qjxq6dODkF4A4nqI4Ii4ntXXV5h H0sg== 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=jwOz4iT2BQeb7Z52GoBXCVE165vQ/PaiB7E4MX3VOzg=; b=mv82TGK5Y0X/uNLJNFJfv6RbREmR2TPkosW+fnrEPYZkKajFi3AedWHFPae8jIZ/S/ avJwehvmGtt9LOPaB02fcmNtFbg49MkVkNcBfBd/ZpRrotILWj+OK5S8IqXypg1YHKls 2trkda0agDa9Gqgbre3TLbfHEH0TLeC+vS7idmTn+8EOhU5UdHBz/2ogTKTbYcG/5T9Z Z+uvC15MYDc/2lBZKsNoqmU5QsaEIBVftdoK82Lxm0bQtmEtjPBVe22/R6cMdQS0PiOn pyELzmzcSJAwWgLZ4Nw+jh3bGXqKtks09+aX2dZlDsp6CgtjoZbZeqFncZui/ZsYkGP3 dEug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=2g15XhRT; 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=cmpxchg.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz12-20020a0564021d4c00b0043d32528589si49078edb.549.2022.08.25.10.55.32; Thu, 25 Aug 2022 10:55:58 -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=@cmpxchg-org.20210112.gappssmtp.com header.s=20210112 header.b=2g15XhRT; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241324AbiHYRRn (ORCPT + 99 others); Thu, 25 Aug 2022 13:17:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237654AbiHYRRl (ORCPT ); Thu, 25 Aug 2022 13:17:41 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 228E7BC117 for ; Thu, 25 Aug 2022 10:17:38 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id w10so14833643edc.3 for ; Thu, 25 Aug 2022 10:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20210112.gappssmtp.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=jwOz4iT2BQeb7Z52GoBXCVE165vQ/PaiB7E4MX3VOzg=; b=2g15XhRTJVHl3pGrBt7KYB9tODJZNPuo0RKK7aO0xcfwNYoiDa5gNnl9QhBZgRTZH1 wzpGaPDTqYX9h4jpDuvgylUNoOT5Lch3EvX7BL7CkVbuyhm4hktsWJUFfLe8tib4v0Gq 7Mjh3VgV21lcVMlZx06acL/VUPi6ODi2kr4hsmTpzEfwuJdhGtRa+uoNv7nXEudFJyIa iA890Pl9xzrBCOFHHrzOlOLMm3xlPiAqK2MFwaQKkmjwrpdkyiGN38v19lF6PONeoSXg guMjW7r9YLJwuo6i6gLS8hBFDFsrS2G7IU8PFhcG5seKK+gz7LlbLeq6E7UcbagEEWsK LpUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=jwOz4iT2BQeb7Z52GoBXCVE165vQ/PaiB7E4MX3VOzg=; b=jijSig2NfiCG1d28VjU0zz2eNPyUEcKIYhF+ALqezx8pKeVfyp85f69KDZPkW3Rbkg jMnQzBSVh4qj1jf+aGIc5LLK9fKwBiBrDA3h9JP2rb8TLURl9Xcu1UTgY2fkvbQUbscv 5Y7IqT31OzkK5QRZYXxMF4zoDvhCDJX8kxM76HSyTMcwB1VFt+gUYd6lpRv4ELapLa0H Tzzxv2s9SH8PXISsbzyfbo7E0OUert+YAIFjSa4ZItEKhhz8C7yvNkEUpnQ7BV0mDF/e +MHb2bV1JgYKfqPE3uwZQ8yE8HGy4upYSL2LZrPBfioLVEUQFAxt2iMm2j6b1Trgk4pv rTeQ== X-Gm-Message-State: ACgBeo0FVpeXelTrr99acUSNFOXs4jVJCWfdV6xQfrk5QYsoOPZQD5pA MqwnCwjB4giiA5LuM+A3yTmpYw== X-Received: by 2002:aa7:c316:0:b0:447:b517:919e with SMTP id l22-20020aa7c316000000b00447b517919emr3251864edq.175.1661447856379; Thu, 25 Aug 2022 10:17:36 -0700 (PDT) Received: from localhost ([2a02:8070:6389:a4c0:2ca9:6d59:782b:fff3]) by smtp.gmail.com with ESMTPSA id h3-20020a056402094300b00445e037345csm22904edz.14.2022.08.25.10.17.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 10:17:36 -0700 (PDT) Date: Thu, 25 Aug 2022 13:17:35 -0400 From: Johannes Weiner To: Chengming Zhou Cc: tj@kernel.org, mkoutny@suse.com, surenb@google.com, mingo@redhat.com, peterz@infradead.org, gregkh@linuxfoundation.org, corbet@lwn.net, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, songmuchun@bytedance.com Subject: Re: [PATCH v4 07/10] sched/psi: add PSI_IRQ to track IRQ/SOFTIRQ pressure Message-ID: References: <20220825164111.29534-1-zhouchengming@bytedance.com> <20220825164111.29534-8-zhouchengming@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825164111.29534-8-zhouchengming@bytedance.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Fri, Aug 26, 2022 at 12:41:08AM +0800, Chengming Zhou wrote: > Now PSI already tracked workload pressure stall information for > CPU, memory and IO. Apart from these, IRQ/SOFTIRQ could have > obvious impact on some workload productivity, such as web service > workload. > > When CONFIG_IRQ_TIME_ACCOUNTING, we can get IRQ/SOFTIRQ delta time > from update_rq_clock_task(), in which we can record that delta > to CPU curr task's cgroups as PSI_IRQ_FULL status. > > Note we don't use PSI_IRQ_SOME since IRQ/SOFTIRQ always happen in > the current task on the CPU, make nothing productive could run > even if it were runnable, so we only use PSI_IRQ_FULL. > > Signed-off-by: Chengming Zhou Acked-by: Johannes Weiner