Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2133571rdb; Tue, 3 Oct 2023 11:11:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf4wRkSN/JepfiuEleHqZLmkXXyPfPAm72ygf3OppEayQr+FTRz0GIp5G++yZMoQLaLOhd X-Received: by 2002:a05:6a20:7f96:b0:131:b3fa:eaaa with SMTP id d22-20020a056a207f9600b00131b3faeaaamr209589pzj.61.1696356672163; Tue, 03 Oct 2023 11:11:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696356672; cv=none; d=google.com; s=arc-20160816; b=0PLPSNn9R4kD48nh5VEmrXgW6YQELowqjNi+H9Kms77cImdQuEF8h/zkv+hg+Xr2qo A7elJQ9GSSxdvcIZL8ZHTQH3IsKlT9OCG9+LjpTEdoXbVEg1o2YdaffsgnoH0wrC1w6K jnjpJbBIzzKfkHKJ0MIbNucs3Uswd+G8IzghXwcc3WrzS2Rr+So0atiszHdM7JDCyRug m0VJZdl7y4rh8UDt3mS/WgKeZrGzE35G1+AgtiezwQmnuchoNRTDgnx1PFhouiyyrtq4 p5Zudoh2ilaMn5OFiir8n1f6DnhUo4OmXkSoZj9gSNLfmCnM9dIqUVRwDFD8rtzgAj+I ZO1Q== 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=yYYOS2Rb4Gft46HT9a3Ew+hqjRkAXefJxlOoM/tdWIY=; fh=kbRWIM8ZOVSybhyeGCsE16fd1GzY6dINIO+J3v/yDJc=; b=NLtKG7ClNUSY29j0UJ3IUrKS0/OU/5Lr0LTI7T2/252h1nNHYMmjSK4rj9FdFQAugf 5snfTSTf5GsBjyDe+uQK6nkHqza769sJxB4yPODfJZZ8wpO9YTyJjqDFBKNeV25WO57n AMnziiINiL+pIZqNzaihm0KeKVOu/Ksx2cXYAYRD8fGlmXecoNwxoH8Sc4SuQWhPXFwF jekrP0IkQlOyAbsy2bon+afTPnD/qt98Y5aWKvHr0fCHkVYgAzG/zSF6hCaWRqp8W1D+ 2HkcRfp8CN6W0biTqcGR+iOCkLD9q2dgcjqsKGXeeVcIPsgrDPYNrWtfanPffchRBfMt oQRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="HjXqxe8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id eb15-20020a056a004c8f00b0068e405d9217si1880749pfb.302.2023.10.03.11.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 11:11:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="HjXqxe8/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6E8B282CBA75; Tue, 3 Oct 2023 11:11:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240734AbjJCSLK (ORCPT + 99 others); Tue, 3 Oct 2023 14:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbjJCSLI (ORCPT ); Tue, 3 Oct 2023 14:11:08 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC6B083; Tue, 3 Oct 2023 11:11:05 -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 96A882188F; Tue, 3 Oct 2023 18:11:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1696356664; 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=yYYOS2Rb4Gft46HT9a3Ew+hqjRkAXefJxlOoM/tdWIY=; b=HjXqxe8/wntTzrvTsNfrdAnyH44mpAxBB6GfxJpG+O5R+e4+dnQHgqK9G5JCIrOIEjL3NE T23x25vBLUDKeflfuTNYE0yyZKiN856A+VVR4uA/Gw1qrQopSUditko2I6uEw7eWU4tcMN NGDPRRnyZbYrxIO2LKxocUmkG14coDI= 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 6DEFB139F9; Tue, 3 Oct 2023 18:11:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id lc4wGjhZHGVCNwAAMHmgww (envelope-from ); Tue, 03 Oct 2023 18:11:04 +0000 Date: Tue, 3 Oct 2023 20:11:03 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Yosry Ahmed Cc: Andrew Morton , Shakeel Butt , Johannes Weiner , 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: References: <20230922175741.635002-1-yosryahmed@google.com> <20230922175741.635002-2-yosryahmed@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="i3qdsoh2u6z4zu32" Content-Disposition: inline In-Reply-To: <20230922175741.635002-2-yosryahmed@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 11:11:10 -0700 (PDT) --i3qdsoh2u6z4zu32 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 22, 2023 at 05:57:39PM +0000, Yosry Ahmed wrote: > memcg_page_state_unit() is currently used to identify the unit of a > memcg state item so that all stats in memory.stat are in bytes. However, > it lies about the units of WORKINGSET_* stats. These stats actually > represent pages, but we present them to userspace as a scalar number of > events. In retrospect, maybe those stats should have been memcg "events" > rather than memcg "state". Why isn't it possible to move WORKINGSET_* stats under the events now? (Instead of using internal and external units.) Thanks, Michal --i3qdsoh2u6z4zu32 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZRxZNQAKCRAGvrMr/1gc jgo0AQDb9lpy0zerQzFtiZH/g19b+bqmEZBBe46qnjohE+hXYgD/WBCdV4mnuxTI vnNNETrx33ndymulCkeglLV+sj3sYwc= =mr+D -----END PGP SIGNATURE----- --i3qdsoh2u6z4zu32--