Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4021506rdg; Wed, 18 Oct 2023 12:27:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeNg8zS4ESXQkGEe6bQnZoNWnMM9tF3ynFdVqWeijMGQPfwZb1J2L1uqcUuCEtoXDQFZUG X-Received: by 2002:a05:6359:5e9b:b0:15a:8dfd:9c68 with SMTP id px27-20020a0563595e9b00b0015a8dfd9c68mr5961191rwb.27.1697657272961; Wed, 18 Oct 2023 12:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697657272; cv=none; d=google.com; s=arc-20160816; b=l25ZZ599ZVe/14eWT5TAVAnAtMl0tacFX8fziHqM20ax9DGB5C52FzzPkG7RxAJsFg +1eB5ZS0G3p1rmvKniXJMgr9C5g5CZ6a3hwnoNdpjGfuiNZIL7BpuRRIlJinlVia50wn A80AuaVLiJZnL+1rqWIo7YGwLR+VRZd8Kp26/5+wfFIiwGo0ljNPKS0VaErsErAhPgWx HzgBJknj6lOWfrZ0lIthJFsP8HOJz7p/+KoIww6JZReKIn+4pYPxcnyzDD7zUBd4yutv 2YtDNMNeAH0O9KFWLnNwT2arJCSAvdeIVojNlUIHaOkIh0B3mfO71MtD4FovMullCmuD FiLg== 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=ReEL7S8QLhrptmnYzcUYW6/caEAkomjD+pKymVuamzU=; fh=7U2vkLdeY9AuU3aoiT13UGtOtesV5EAwgNkGT/Jci4A=; b=BqfuwhburonH+3acd5btywhmH0YTqEKFrMub/O0nzUabsZHHO/w0kWiTtkED0aOXBQ GV3XaZCvl4IjXliWqOxzlo2WyFUueCj2gtitTuUmsoQhrZOJeSrLr4Q4pB93WxKKxyh0 wcN9/mdqErys0r9qzMSvgM2EKhrb4P9rETWjheR+1zdvVIHT13bnJgqqO1wFTItTqXEd qsy0gSzJKQyQTE/H21AtQGB7Hf1BszAxhP207Wnz8mnuX+jsLpk1e89/ZgpXzWbtIk0P Vq6AslKpH1AHeqzrVh5INLhOgVHAqztWekRdp6Efyg7HRCfMJwVs5mfPpjNmBHK6runz PVJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=C+Tu235f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t12-20020a056a0021cc00b0069026254582si4644028pfj.98.2023.10.18.12.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 12:27:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=C+Tu235f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 C6DC182429B9; Wed, 18 Oct 2023 12:27:49 -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 S229897AbjJRT1k (ORCPT + 99 others); Wed, 18 Oct 2023 15:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjJRT1j (ORCPT ); Wed, 18 Oct 2023 15:27:39 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D330E109; Wed, 18 Oct 2023 12:27:37 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22244C433C8; Wed, 18 Oct 2023 19:27:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1697657257; bh=1rqOwZjRE1nbagNyIX9i1zuz/F+kupl3lvfqaew4Dl4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=C+Tu235fFZ9ShVy1YAybs9EPC7bM8MDFacJsq5th4+oYT8RpPrUNEGKRnllQfBjNd tswotbPOIfdrDpHPMfTpCIsSF2Fjzo7dLnS28BR6NqqUjGTNupAWlpBf6EK1oIUAo0 PnYCoah04uvXQ9UbUW/isQiAsUWKJXjrwFucbmZk= Date: Wed, 18 Oct 2023 12:27:36 -0700 From: Andrew Morton To: Yosry Ahmed Cc: Michal =?UTF-8?B?S291dG7DvQ==?= , Johannes Weiner , Shakeel Butt , Michal Hocko , Roman Gushchin , Muchun Song , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] mm: memcg: refactor page state unit helpers Message-Id: <20231018122736.9a2b6abd4f0a1112144503ae@linux-foundation.org> In-Reply-To: References: <20230922175741.635002-1-yosryahmed@google.com> <20230922175741.635002-2-yosryahmed@google.com> <20231004183619.GB39112@cmpxchg.org> <542ggmgjc27yoosxg466c6n4mzcad2z63t3wdbzevzm43g7xlt@5l7qaepzbth6> <4h5uae72ti6jyiibcyfg2bytooy6d6ggtkrgod5a6rmpateyra@4setu5jmd5kn> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 12:27:49 -0700 (PDT) On Thu, 5 Oct 2023 10:30:36 -0700 Yosry Ahmed wrote: > On Thu, Oct 5, 2023 at 9:30 AM Michal Koutný wrote: > > > > On Thu, Oct 05, 2023 at 02:31:03AM -0700, Yosry Ahmed wrote: > > > I am not really sure what you mean here. > > > > My "vision" is to treat WORKINGSET_ entries as events. > > That would mean implementing per-node tracking for vm_event_item > > (costlier?). > > That would mean node_stat_item and vm_event_item being effectively > > equal, so they could be merged in one. > > That would be situation to come up with new classification based on use > > cases (e.g. precision/timeliness requirements, state vs change > > semantics). > > > > (Do not take this as blocker of the patch 1/2, I rather used the > > opportunity to discuss a greater possible cleanup.) > > Yeah ideally we can clean this up separately. I would be careful about > userspace exposure though. It seems like CONFIG_VM_EVENT_COUNTERS is > used to control tracking events and displaying them in vmstat, so > moving items between node_stat_item and vm_event_item (or merging > them) won't be easy. I like the word "separately". This series has been in mm-unstable for nearly a month, so I'll move it into mm-stable as-is,