Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp975480rwr; Wed, 26 Apr 2023 08:35:37 -0700 (PDT) X-Google-Smtp-Source: AKy350alh45HhngirjihAUrHrgd9M/bJKtz7ZPIQbySW5wD7anTdwqLHFL9pl7q7OwYSmUL2iosE X-Received: by 2002:a05:6a20:a10c:b0:f5:7035:99fa with SMTP id q12-20020a056a20a10c00b000f5703599famr11067775pzk.57.1682523336855; Wed, 26 Apr 2023 08:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682523336; cv=none; d=google.com; s=arc-20160816; b=XQ7ULOYZe422kwlzi8Y4OrGzZFmA6SpjuzStLY1FLClswfPQRmfRL2Ln4GJAZbgZpI hcl/T9xBr7MvJ9tmhIXMvOA7tZhiF2Ogft5rBOw/kzLNKAbcW+FrLZe0V5rGvT4QcOk+ sjOpDogqqepTACJ+lV1rm+q9K3RilFUcbMTHW0cGSqDb3AgamV6Vt+gZFmQTrLXzJeAv 96+xPQlS+U2naOd05Pxp266TopmMuMV5zaVddYVByjxN2/Nxk96cOt5wG1eZxVlgIGnw 534RIhBhX6VcJyzWd07TTEyVoTNrtyOgbKuRlpJ2selxGU+mvsguiiwTobC9D9dav/v1 CV/A== 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=PxTXn2BTS1MgLfa6uUxx1IJIGot7tRzMX6mJKeRAOU0=; b=0QCuEuGxICxoB19Q5brV5PZ10SbdnYBUEkE9uopFtgI/QNzkQCiXZhDqPZ97/UXHCr ZzZP1MyehHuHXo92A1pggI5n1gpZA7hE1qINyYFbnRcyniznA8GFuMb6NYyV8rBGnK1K 0JEb0V0Qw4X5Fojvx2QCorR8/anjJPqWpdxQuJSQ5UIhIjBF4eg33bGcnl1csMn+AE41 Ps9CK5QSKWX1rj0gpKycgpFNkTtu4EoiEDC7v6GC8+ums+6Gbax2hUsyC3IGw9XI3kR6 mTHL9w72HjbtmoakrJHX0RvyT6bQfWPfARR6pBM00LeD9pWe4ZbvVI0gMjIrvjbB6sWY HAqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=QDiaNXkK; 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 il2-20020a17090b164200b00246ff7fbff8si18113460pjb.11.2023.04.26.08.35.11; Wed, 26 Apr 2023 08:35:36 -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=QDiaNXkK; 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 S240791AbjDZP1Y (ORCPT + 99 others); Wed, 26 Apr 2023 11:27:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234002AbjDZP1W (ORCPT ); Wed, 26 Apr 2023 11:27:22 -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 2D4C02707; Wed, 26 Apr 2023 08:27:21 -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 D86A521A17; Wed, 26 Apr 2023 15:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1682522839; 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=PxTXn2BTS1MgLfa6uUxx1IJIGot7tRzMX6mJKeRAOU0=; b=QDiaNXkKB3uTdY6B9oH8hNNCSYV+uqkT4a1892oDrK572lszPhfddPLLMre1CgTN3Dsf5G ScrUsE1jjfCCS9RdneK3ReDxQPcYS0UeDH/7UrhHe7/jwYuQBWILAIQmwaaDfjMZvTqx/I Ekl+fSwPwceAjY3EN+9UF9Yv5eHU6lw= 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 AF9B5138F0; Wed, 26 Apr 2023 15:27:19 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YNWXKNdCSWRPBAAAMHmgww (envelope-from ); Wed, 26 Apr 2023 15:27:19 +0000 Date: Wed, 26 Apr 2023 17:27:19 +0200 From: Michal Hocko To: Yosry Ahmed Cc: Johannes Weiner , Roman Gushchin , Shakeel Butt , Andrew Morton , Muchun Song , Sergey Senozhatsky , Steven Rostedt , Petr Mladek , Chris Li , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] memcg: dump memory.stat during cgroup OOM for v1 Message-ID: References: <20230426133919.1342942-1-yosryahmed@google.com> <20230426133919.1342942-3-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230426133919.1342942-3-yosryahmed@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,URIBL_BLOCKED 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 Wed 26-04-23 13:39:19, Yosry Ahmed wrote: > Commit c8713d0b2312 ("mm: memcontrol: dump memory.stat during cgroup > OOM") made sure we dump all the stats in memory.stat during a cgroup > OOM, but it also introduced a slight behavioral change. The code used to > print the non-hierarchical v1 cgroup stats for the entire cgroup > subtree, not it only prints the v2 cgroup stats for the cgroup under > OOM. > > Although v2 stats are a superset of v1 stats, some of them have > different naming. We also lost the non-hierarchical stats for the cgroup > under OOM in v1. Why is that a problem worth solving? It would be also nice to add an example of the oom report before and after the patch. -- Michal Hocko SUSE Labs