Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4072662rdg; Wed, 18 Oct 2023 14:14:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvgUhAkQrlbYNbWaWIAzhiTiRi5ThCVZrjxHQbU2Suc2tzlYdgGcuybkAIScMX2YYZTTwO X-Received: by 2002:a17:90a:be0c:b0:27c:df02:88b3 with SMTP id a12-20020a17090abe0c00b0027cdf0288b3mr41315pjs.8.1697663640066; Wed, 18 Oct 2023 14:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697663640; cv=none; d=google.com; s=arc-20160816; b=DpAonao9IiXtVDEzYS4LrS0LOTGlGWnbBjgWn/J8sAJl2ZR+r5Qt+4ybSGU863FIfl AWCOgcJx35de1QeObssu6cQNyS2tPECLs1xT6HvqRcK9TLN6I/Wq9JC6mvs5AHe7KELt CKzFNxP8O7NM/tRm/ygzwHc7vjYw6m9is12mHqPuE5NxcYHMLHqGBCwFhO0pd9lfVniZ V9bVhu/r+ytRcI+3A8muOsrLBcaaMZvUsaQmUnGGeyi4ifZE5ctShjRGGq6CkkxUqo1o EWHQieSwi9SxnQ8++2tdAv9SB2L2xCF0qDuUAuXvZFyekrWae6uTdSz0ySIPrtpotAcS yHcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rq7udZNLEIIE+sCA+FkTkPvL/hqhHQc+DqACAhfjrmA=; fh=OD7Oamb5i+D24T9pgGtEGaUqOcAJll00rITwbXzBjf0=; b=LgC70os4m3QwTY4EIJyzTYaaN4WSzqDfbdXwa9JJPWEnI0O0QAxs157W7xGVVeLjl0 kUFFlCLavl+KIroYCxKwm2LIYapnuqhhZgn6fp/3qbuV6cTvqZSI+1COQHHWnngwnfUc TzAbs/EgIpMDCqHpc++i65p+DoPaU1t1aMlb+tTypQTyOmyOfhpPlIqGUv5i0fIMw0qz R4bz9sbRWN082BJh5uBW54AQmCq52iO49jj3erAK0ENtDI7BuFrF1014rnC6SWqHAoWZ i+2KggKXzwCikigBkhL+vPQmhLQBEtKcvMIaA3bs48sgOoBSaFXjBv3ctHH67sKZT0W+ P6YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b=Lu1T455u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l14-20020a17090a72ce00b0026b365096e5si649084pjk.53.2023.10.18.14.13.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 14:14:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=fail header.i=@linux-foundation.org header.s=korg header.b=Lu1T455u; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AA4A38246E1E; Wed, 18 Oct 2023 14:13:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbjJRVNk (ORCPT + 99 others); Wed, 18 Oct 2023 17:13:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235065AbjJRVN0 (ORCPT ); Wed, 18 Oct 2023 17:13:26 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19537FE; Wed, 18 Oct 2023 14:12:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36D02C433C8; Wed, 18 Oct 2023 21:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1697663534; bh=v0mycPn3E3zjUT2kT9+qpZamlgS19LMrA2IlGjIHwWw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Lu1T455un28uaa0f21CJNoJiCVebBrEeT+s1wLlK947EmPR8JPfQuJuyu8/OfEnSo i9o59Rm6NviZT5byWy9C3pPKUwE7IB6jy1iBtFTUJT4m0W6E3t6AN8dOcphCMwMK4Y 7qG1XlNzgpJZbL6n3xQT3tSym36HYNrpcmkYhywE= Date: Wed, 18 Oct 2023 14:12:13 -0700 From: Andrew Morton To: Yosry Ahmed Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song , Ivan Babrou , Tejun Heo , =?ISO-8859-1?Q? "Michal_?= =?ISO-8859-1?Q?Koutn=FD" ?= , Waiman Long , kernel-team@cloudflare.com, Wei Xu , Greg Thelen , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/5] mm: memcg: subtree stats flushing and thresholds Message-Id: <20231018141213.b80ad9742d41dd11fb122e10@linux-foundation.org> In-Reply-To: <20231010032117.1577496-1-yosryahmed@google.com> References: <20231010032117.1577496-1-yosryahmed@google.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 14:13:55 -0700 (PDT) On Tue, 10 Oct 2023 03:21:11 +0000 Yosry Ahmed wrote: > This series attempts to address shortages in today's approach for memcg > stats flushing, namely occasionally stale or expensive stat reads. The > series does so by changing the threshold that we use to decide whether > to trigger a flush to be per memcg instead of global (patch 3), and then > changing flushing to be per memcg (i.e. subtree flushes) instead of > global (patch 5). > > Patch 3 & 5 are the core of the series, and they include more details > and testing results. The rest are either cleanups or prep work. > > This series replaces the "memcg: more sophisticated stats flushing" > series [1], which also replaces another series, in a long list of > attempts to improve memcg stats flushing. It is not a new version of > the same patchset as it is a completely different approach. This is > based on collected feedback from discussions on lkml in all previous > attempts. Hopefully, this is the final attempt. Seems that Shakeel's performance concerns have largely been set aside. It would be good to have some affirmative input on this patchset from the memcg developers, please?