Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2090577rwr; Fri, 28 Apr 2023 06:10:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7d8akguBZLLkmhviUTNswNASU/3qy1+r65F090vuVAXHEhEc9wbFR03aj+D6iRucsZ3IgQ X-Received: by 2002:a81:5253:0:b0:54f:b615:1e44 with SMTP id g80-20020a815253000000b0054fb6151e44mr3994691ywb.7.1682687405272; Fri, 28 Apr 2023 06:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682687405; cv=none; d=google.com; s=arc-20160816; b=XK9n7fOqNfKGre72iDTAoS+lNWSXQMpKX8WH0Iav1infcmIE4rGbB8iVkbgGQ4fm4R pO4xwoPlJ3PVOFY/zpmO/xoO+EcBaGcMdhPJnah7lVHeeStDG/NSLVmWnxxpVrWnlmAm Ajx8u0yWBUX39/yNTJEapR4qV5p3t29sr5O94UMV+wvEoYQ+Zgffa8vCM8O+GYZWv3nB 8nYzLH7ufJT+PLsm5z79nqx67lfO9tu/maAUgedIl967kID8w8jQWOAjefbySMeNl3jk 5rDgWbLtoxTBt3t1ulKk0/M1iwmuv2nmpAKBTPjOg0XkMDIMiHNAyS1szR87JOW69vRw d6Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=oQwjJ+xoYNglHrNfrRoLJyEfjXE+BHOsMRCb4QaEt/g=; b=IGhJRc3PeQ7EsIfsHI2n5p3io1ofoW9dl0uwhkpNRYGId8w341ot3cqgVdmJEIP/B+ wrQ7EpstNTBUQ6B5oYgZOLJFQxsvY2RiAFc4uRXmkkHCvJhrOx2KLWONdCIpdPKKhS7i PwLW8+UTsjb+o5k19K8DYPE05sVNnSFz8X6ixvU7ehzGBG54sGZaXNBv7LfOhpVUSzAR mRFxUyHGX9CKh2ZoDNaSt/b+g9idce/xWePRji+glS8pXvcpuOw27AX7zmB1DjnALUzG zOQkQj2dsBiu6NTd/aRrpUUXFxMiIFctnOqza9YdBKDZpv0WvWjnoarEuF7O3HXlQ90V yhGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=EBoAejzw; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w206-20020a0dd4d7000000b0054c23fcea08si12705509ywd.32.2023.04.28.06.09.35; Fri, 28 Apr 2023 06:10:05 -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=@google.com header.s=20221208 header.b=EBoAejzw; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbjD1NFz (ORCPT + 99 others); Fri, 28 Apr 2023 09:05:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjD1NFx (ORCPT ); Fri, 28 Apr 2023 09:05:53 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD719BA for ; Fri, 28 Apr 2023 06:05:52 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-94f109b1808so1883695366b.1 for ; Fri, 28 Apr 2023 06:05:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682687151; x=1685279151; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oQwjJ+xoYNglHrNfrRoLJyEfjXE+BHOsMRCb4QaEt/g=; b=EBoAejzwbTBADNp4pMEUIYW1v6E60NZGOyGiIHIIH7vNiwcU0E7lyoZfCG6RImKtmC j6fL6h5wjwiZ9e0OL2cB8QRZ6rXObXCtLg44xFci+vz4TpqyvvTeApbKgE+spgGCeXXe PGYqgRzsQ2B4DN+Xfr9MAvKm4PaTJk6FWKLJDSHBRjJmvoaOSm7BijKvp56/DpJHhAm/ LhGWTCmWWzMDMRSkoZhB0AMKWOqvDgQkNSdttAvx+QEanXzXoFcWZ/8iylKiNS/LuI9G mdoG+F329veZDK2/AHXVUEqTjRyr2moo9MvG2Rn3oOe2sh6y38Vx+SHqHCLkkE4Eutuu 7ieA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682687151; x=1685279151; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oQwjJ+xoYNglHrNfrRoLJyEfjXE+BHOsMRCb4QaEt/g=; b=YY33N/pHTrjxfC5iaFndLkdgffArJKCnl2Oo0FlPbFdAmPNG66rGnMaogHw7RkSjmg LbSuJYK+iCz5KAQVRh+i6ZTdbQC/Etp2x0Ue635kUeygvJ0GyJw/54BAWpm/hs/ltxea ZEWTsSItwLMeSqLoOH0UJOXXJx7+TVM2iepi2w+wbF4xttKOh4Prb1Ujm3pR53krgtl+ 5c+YFaOtF9aGuCRFCLliCMTXxlRGHRulW/Xu0nUGFp0cOSzmRi5MdyF6S/pWHdo4sKiO VN1kg54hNT683MB5/nbdfbD9pqZ2tz9BVzNDAauqquixodundnru3PMZlh5sj0Vl6BAS 6Zmg== X-Gm-Message-State: AC+VfDzyrFWVzx24L/c6TygpGPAg12FPnAWzmWFNw/ZZcutBzfk/Zu9S 9fTrrfZ4FZGZLFonvFj6Fg2qA8qSK5yXgJDTaqTEoQ== X-Received: by 2002:a17:907:629b:b0:95e:e0fa:f724 with SMTP id nd27-20020a170907629b00b0095ee0faf724mr5579644ejc.39.1682687151086; Fri, 28 Apr 2023 06:05:51 -0700 (PDT) MIME-Version: 1.0 References: <20230426133919.1342942-1-yosryahmed@google.com> <20230426133919.1342942-3-yosryahmed@google.com> In-Reply-To: From: Yosry Ahmed Date: Fri, 28 Apr 2023 06:05:12 -0700 Message-ID: Subject: Re: [PATCH 2/2] memcg: dump memory.stat during cgroup OOM for v1 To: Michal Hocko 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Apr 28, 2023 at 2:44=E2=80=AFAM Michal Hocko wrot= e: > > On Thu 27-04-23 15:12:46, Yosry Ahmed wrote: > [...] > > However, I still think this change is valuable. Like you mentioned, > > the OOM log is not set in stone, but we shouldn't just change it for > > no reason. In this case, for cgroup v1 users, the OOM log changed for > > no reason beyond a side effect of another patch. Upon upgrading our > > kernel we noticed the behavior change. This patch restores the old > > behavior without any cost really, and it makes the code a tiny bit > > more consistent. > > Fair enough. Just make sure you go into more details about why this is > causing problems/inconveniences. I am slightly worried this might cause > problems to other people who would like to have the same report for both > v1 and v2 so we should at least have some solid argumetns to revert > rather than "it used has changed and we liked it more that way". > > I personally do not care all that much. It kinda sucks to dump counters > that are not tracked or fully tracked in v1 because that can mislead > people and that would be a bigger problem from my POV. Great point, let me send a v2 rephrasing the commit log of this patch and adding the Ack's on the first one. Thanks Michal! > -- > Michal Hocko > SUSE Labs