Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3938320pxb; Tue, 7 Sep 2021 10:46:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaYxSq3ZxwU92q8XsxBiPiqn6FP4SuyUcsZlHhVK7z37+Ui1zNzkUs3IALBQVAt/LiHjHJ X-Received: by 2002:a17:906:368e:: with SMTP id a14mr19451043ejc.60.1631036792888; Tue, 07 Sep 2021 10:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631036792; cv=none; d=google.com; s=arc-20160816; b=AyeToNMHbyDrhZgFws490E6qN9R6ktftIkH9NUvLQod1WARBSxNAaY7zYAmNf4zfyw u3sV3AZCIQgu9CQXUctYX9M6AIS6Pb6Sc6EjhihjBjQyeESfWeB5Dzf4uOp7nimJe83h yBN+Uzp2zPN4cCs9zcuCtIRNK7E3+jPFqr4dKKO8KIIlpVq9F0ZYBhQyJjne5c7vzTDK wTwr+t5vB+m+d8fFU77NgvpUa6cwNBRyr3NGFmWlRQLaQJns/fObg47OOGPJ7lcn8bMX P/p5PBt74vnYFC1kQCOPiluHPAt8NpfkTmpxbWBF1gJglNaIO09ueIGRenP9lY4h8fUg uFfQ== 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:sender:dkim-signature; bh=FjhWJM3JAcxJyWXW2pwc/fGwqLigw+FDFXMEyVU7A5A=; b=OVC+edOFZdFuvQ6GtpAdXsEMs4V7YX+h+yzlP+ZiqXGsSESpijDlqX+AxN1dFvmrkd 6DeJWgNvBv00pCrtiSmkSyJ1vq3UG1msOppFhVpD5mXo/s9ZkqMETjwWQj72xf8X2bB8 bm9rBKRqOlgD3+oLI/N56uH3MKFWFtVizbRangRIz84U4XVs3ZJnSjr24AwPeaAUk372 tEcL8xS2OXVJmvdDTOa7t6Qtk3J9WfSSe+ln861Up0rNw1UOqmNXSqas6apCBVYW3GiZ 84hOC0ZTOIUMQIttsjn2dBw+/0v4HKE1BpfLwyTjYsqy5MzmFzFsXp5qgPpOz5LebO1h lJuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FZEOnQYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n10si13141185ejk.210.2021.09.07.10.46.08; Tue, 07 Sep 2021 10:46:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=FZEOnQYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345702AbhIGRUa (ORCPT + 99 others); Tue, 7 Sep 2021 13:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345688AbhIGRUP (ORCPT ); Tue, 7 Sep 2021 13:20:15 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9237C061575; Tue, 7 Sep 2021 10:19:07 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id y17so8670739pfl.13; Tue, 07 Sep 2021 10:19:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FjhWJM3JAcxJyWXW2pwc/fGwqLigw+FDFXMEyVU7A5A=; b=FZEOnQYIH4IFKS0zgfI8NJI7grFEyCvnUTWh0L6GR5t4Qzyg4C2zbDD+bfVKF2g1sn LPDXOQBb/2DbZqJ1QAfegV0z7SNUyCWA5t7/6PlwrI3CHK1MRE2Fuslxeg7GktznHPKP aOjvFt7QqZdYO6+bqOCDdVhASStXJbDQLCdVQZG6WzZLy4aYLd9KcT3uKjw0IayV2JE5 SqXrgGTVqU/B+4rUtpGJPxLaUvSsSnavCYQb0Z45OlGPYRpTUeeJPojTf7e0cD14Le2t Q2lalSHIn6WmCwVXFkCMwWlWF9RCecqVS/23XM4qVFWUmIgg9nvyPKt3dTFLZP5Y7yQr 16EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=FjhWJM3JAcxJyWXW2pwc/fGwqLigw+FDFXMEyVU7A5A=; b=oqJxeFzV4IgWmje+zdUhtAdtuX3Gvsmexm84sebF+hJQjhfbeUkiTSG+9B5CIO0Y4X NPW3UlC0EqiswdY1oANsP/OjCyZesrsT/gG0oam49r3K9gZ/RTkK1LHfNePUUynZgyNU exyp5qx/FZdCQ6Rme4DQ3n/RUBaABBpqge9dzTXlBcaGVA0WpIm8zdY99ZTUBZ1bGYLO rSM/JniotQrea2WJEjTx6/eDApqzdHkRRXyy15qHAAm8ay8vRhL1U3yXASBrkEBqpESR PN26+I4j4a7M6afc+j/li25bR34emelB7MJKH33dybaERv04iK7DaguKBIwjQRjbQwn0 f51A== X-Gm-Message-State: AOAM531W2DuWGJqC111EjS873bGx6vh481lQPCCneOgwpL55TzqLU6K4 XDUeWQVnIzAqPqDLR6d5eIo= X-Received: by 2002:a63:e04a:: with SMTP id n10mr17628021pgj.381.1631035147041; Tue, 07 Sep 2021 10:19:07 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-e24f-43ff-fee6-449f.res6.spectrum.com. [2603:800c:1a02:1bae:e24f:43ff:fee6:449f]) by smtp.gmail.com with ESMTPSA id l23sm3121914pji.45.2021.09.07.10.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 10:19:06 -0700 (PDT) Sender: Tejun Heo Date: Tue, 7 Sep 2021 07:19:05 -1000 From: Tejun Heo To: Andrey Ryabinin Cc: Zefan Li , Johannes Weiner , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Daniel Jordan , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, bharata@linux.vnet.ibm.com, boris@bur.io, stable@vger.kernel.org Subject: Re: [PATCH v2 1/5] cputime, cpuacct: Include guest time in user time in cpuacct.stat Message-ID: References: <20210217120004.7984-1-arbn@yandex-team.com> <20210820094005.20596-1-arbn@yandex-team.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210820094005.20596-1-arbn@yandex-team.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 12:40:01PM +0300, Andrey Ryabinin wrote: > cpuacct.stat in no-root cgroups shows user time without guest time > included int it. This doesn't match with user time shown in root > cpuacct.stat and /proc//stat. This also affects cgroup2's cpu.stat > in the same way. > > Make account_guest_time() to add user time to cgroup's cpustat to > fix this. > > Fixes: ef12fefabf94 ("cpuacct: add per-cgroup utime/stime statistics") > Signed-off-by: Andrey Ryabinin > Cc: The fact that this has been broken for so long, prolly from the beginning, gives me some pause but the patches looks fine to me. For the series, Acked-by: Tejun Heo Thanks. -- tejun