Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6719595rwd; Mon, 19 Jun 2023 11:12:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6rsxZbzyi4sz+89tahlRJWMZusuxFGdYZ6Xd7rBHzV8XGuY9Y/OgThJBYC54lqfLGxDNog X-Received: by 2002:a05:6a20:3945:b0:119:4141:6989 with SMTP id r5-20020a056a20394500b0011941416989mr21118232pzg.13.1687198340491; Mon, 19 Jun 2023 11:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687198340; cv=none; d=google.com; s=arc-20160816; b=svDObIJn1QpbGaF8vpPucrq0PedEIvocVnpG9OcwUOHTQP/70n5qQDlpvzZ/f6Z2Zc V+BZlZ/82e408Xu7w0UeKKF6rT0LrH2KdyHM0pY/tXs+3aSg7kSKtH+QtUTJ/apWzE6L 0evql6RjT4rQJoeLffzCR3FuH8HFqEmZNrZvt8IqsPzz+lJ/8ZUPMvJdggZEDqEdCKyH Zs4XoE7dwluKwSM7Ad+DEas1w0ag7l+hVF4OchqPdT35+fBrOrUE/5naXDR5zYPcdQuC 9ENXOgKUheentJsjvoJxU4OCBtXCNuoLsMBbYPtUtJQu9d7yXgZY1g5uqP7OGAOOrEN8 HDrA== 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=ZIuFur/HcfWhT5DdI6dfHnQIRvcQlNpf5jwJtp/eN3s=; b=kvsIylovsC3K0wYspsPjxGuWb+v1SFa0rOxzRo6UoH/Qhuhn9vJ9PuxI8yXMg6G3+d lcLwoK7eEvdRtL6GlZXj1tEZXSq6JoVWBQ8tndV2Y1wzvQVLV63+jq9l/Q/xsIwabr0d UIbHt0yXWZJlaQ9qC1X52aZi3NGGHuqqsDdGMSfODWWoEYBhnRhe1Z264b3X0rm88bto udpvecJS/PBiC+FSaChCzu03tYJ1+lOC3W9NmhHo9giYQUlILmO4ZfSB5tB3iYbJ8N0d F3hA+O8IO0qzPF4MmKGnWSnyh2SWVj/MbDWgrDXtJr/gpH3jcQtUbOt4GA83znswbjOg 8feQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Re5KD9WL; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a637f45000000b00553ca769598si4288pgn.761.2023.06.19.11.12.06; Mon, 19 Jun 2023 11:12:20 -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=@suse.com header.s=susede1 header.b=Re5KD9WL; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbjFSRxR (ORCPT + 99 others); Mon, 19 Jun 2023 13:53:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjFSRxP (ORCPT ); Mon, 19 Jun 2023 13:53:15 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54D8B12A; Mon, 19 Jun 2023 10:53:14 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id EC6CE216DC; Mon, 19 Jun 2023 17:53:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1687197192; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ZIuFur/HcfWhT5DdI6dfHnQIRvcQlNpf5jwJtp/eN3s=; b=Re5KD9WLu+GeYv4h//LoyjUWFxbB9Iu1ah46eFj8lnpcZygGjrd8KMsnjy5+wFPb5rtsDW DpwXdSQWAlFSQoSh4P6p0i8dN6aUpYgv3C3Vobf/+qfFnJexoAU+cXDCd/C083H3oliYOf iHkT4rAB8xCQQrePLXgYRe0OT0azyTY= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A04D9139C2; Mon, 19 Jun 2023 17:53:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3KNLJgiWkGT5fwAAMHmgww (envelope-from ); Mon, 19 Jun 2023 17:53:12 +0000 Date: Mon, 19 Jun 2023 19:53:11 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Josh Don Cc: Tejun Heo , Zefan Li , Johannes Weiner , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Xiangling Kong Subject: Re: [PATCH v2 2/2] sched: add throttled time stat for throttled children Message-ID: References: <20230612232748.3948659-1-joshdon@google.com> <20230612232748.3948659-2-joshdon@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="icuc2q4jvzwybeqp" Content-Disposition: inline In-Reply-To: <20230612232748.3948659-2-joshdon@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 --icuc2q4jvzwybeqp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 12, 2023 at 04:27:48PM -0700, Josh Don wrote: > We currently export the total throttled time for cgroups that are given > a bandwidth limit. I assume you refer to cpu.stat:throttled_usec (from struct cfs_bandwidth) -- notice that the value is not properly hierarchical despite v2 filename. > This patch extends this accounting to also account the total time that > each children cgroup has been throttled. IIUC, this is visible on inner-nodes cpu cgroups (i.e. with no tasks)? IOW, wouldn't you get the intended information if hierarchical summing was added/fixed for cpu.stat:throttled_usec? Thanks, Michal --icuc2q4jvzwybeqp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZJCWBQAKCRAGvrMr/1gc joqPAP9/BBtJGar7Rx1bCxiaeV7A8Au3XlzUAVHwxn9zARidBQEA3vGFSuyZNsXN mKBFqLKkUlhCp6znAuvFIB3pq5frRAk= =P/O2 -----END PGP SIGNATURE----- --icuc2q4jvzwybeqp--