Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7454033pxb; Thu, 18 Feb 2021 10:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOzuga/Y1fcnVooHwVmEB7bN7fTcS5HPgwBiW8N6u4xHUcdnQxzSc427iRxrEfvIFKB7Fa X-Received: by 2002:a05:6402:555:: with SMTP id i21mr5530922edx.356.1613672710486; Thu, 18 Feb 2021 10:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613672710; cv=none; d=google.com; s=arc-20160816; b=t3Q3DUcK0yIbdcoweEeludABMRGb0aKvB2DkILCjSwG+6YdJuEBiQN1MXmNL14UH+x Zglrbj5AuPpR9ukhGZi7CpeUemyEppn5XTLhiDmnXD5Dvwz1fw7P/0ZAjuJXUVfh3g96 Hi/D6fYj9B338aRTv6gG7Ftf9WGGDlTXgD5oMEuDH3hK7k/uhGXyKREfcYNZ6cRW9tLg vDbaUPZSzELOjtRR8cEDyeI9SE5j1xAlXDxBl0RQoE3J5f7T6IVTC6ASb8eqTEZ4018z 4oJ6Lj89AU2xOIVoQYgnkMyPKVOY2azVFjFwPS+viQ3dvA0bSWzL+9lH63zXbshgKkQB S7yg== 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=J0bYXrkkoPf7gVIUGqIf4ANRouo9dbAcE/WUn/S4mKM=; b=duM8Hynack6Eflrudo5EmawKq4RZMez+5KVR1kITQDHmqjEq6jmCjSLcd9SADp+KGL mUiMEmB3dvaHQGCgX9ZgKf9JCZldBXQmB1rhR3iwaa4ZpRqg2xxGz4kVsD9bFk23ZD+6 U2eEXUAGGilPBy5zmgqxTzeVpIHtHyGWd19v9a9Cg0gO00JHCscwdOxRSkxy1H+bfuAb P7VG3hokVoHs+RCmN8nkVsckLElHNYfhS19rOpBCh3vn4ESbv7apj/3RwvUT92fyg7zF eHj+zvWcSqQtE45GWgM9g7jHO3OvWDi7gHzuLPes3tWnzn9xAcpYbm9J5o3zwxFGVoa5 KqlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bQvVgdZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si4420891edm.19.2021.02.18.10.24.46; Thu, 18 Feb 2021 10:25:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=bQvVgdZl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230073AbhBRSVg (ORCPT + 99 others); Thu, 18 Feb 2021 13:21:36 -0500 Received: from mx2.suse.de ([195.135.220.15]:56832 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232812AbhBRPyZ (ORCPT ); Thu, 18 Feb 2021 10:54:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1613662566; 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=J0bYXrkkoPf7gVIUGqIf4ANRouo9dbAcE/WUn/S4mKM=; b=bQvVgdZl5ZzeQ5N4N+rSaHvztptxpoBV6JLXiGija5xYmN7S7MzLGqJuhKzUQXt1AOE0qw +8qZMv8zEhIJbjjpds5/C/T3v3hQei4tRzfneKT7l0oV12t5skMkNnqZ5R5zIFdornAQy8 mw9/delHn81QPDF/I6Rkba1cxdv/Sak= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1AE14ACD4; Thu, 18 Feb 2021 15:36:06 +0000 (UTC) Date: Thu, 18 Feb 2021 16:36:00 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Johannes Weiner Cc: Andrew Morton , Tejun Heo , Michal Hocko , Roman Gushchin , Shakeel Butt , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH v3 6/8] mm: memcontrol: switch to rstat Message-ID: References: <20210209163304.77088-1-hannes@cmpxchg.org> <20210209163304.77088-7-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uZNJgE1PSkaSK3Iw" Content-Disposition: inline In-Reply-To: <20210209163304.77088-7-hannes@cmpxchg.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --uZNJgE1PSkaSK3Iw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 09, 2021 at 11:33:02AM -0500, Johannes Weiner wrote: > Rstat combines the best of both worlds: from the write side, it > cheaply maintains a queue of cgroups that have pending changes, so > that the read side can do selective tree aggregation. This way the > reported stats will always be precise and recent as can be, while the > aggregation can skip over potentially large numbers of idle cgroups. IIUC, on the unified hierarchy the rstat tree built from writer notifications is shared with all controllers. (Currently, it means memory updates are merged with base stats cpu time updates.) This is just for reference, to stress the current rstat design. > --- > include/linux/memcontrol.h | 67 ++++++----- > mm/memcontrol.c | 223 +++++++++++++++---------------------- > 2 files changed, 132 insertions(+), 158 deletions(-) Well done. Reviewed-by: Michal Koutn=FD --uZNJgE1PSkaSK3Iw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAmAuiVwACgkQia1+riC5 qSgMFQ/+P3SjzQZK1rAMCOLKGsCvWS+G4aY2oJqOwqeeoIbEl4mvs2o0K3JTl72o u/NuEl/GEEehOrO6wnWA1QW0fVPFGXIkvFLmprRk9vOhg7nixi7VqAB73FnWyIOW NR0mM5CHnjAR7VfB2eh8rOnMTjA/LL6W+QGc2Z9OTbYHQ8ZHpILIjqlFAvIWa7SL C8y6vGv9wpiB3oZngg1NVtQ5+CS8EkkUNgJRmSzi8DatO4gwjhFVvXpFD1oFjCvk 1aHQeouFOxvpgy2m6LHjKzg3ybP1APXunDnhrPV8d0/hsw3JNUtyGLlDWMGQmJyg q4UVVeUu92jDkD9iWsRSBSxG0AELlHIsxJJKh4lm0VXbYSMprX90+cNLEA7fAOy7 TTEUpzaJvOHM9/KzMKjV5EPL1YQ7ZkKV20Vf09802YRh2FZm9njxneqS0GHHS89f ZtVPB21C7INTntOrNVP8vDT/IcpAUG6eSXWGtrCWL+/Lcbr9IE0jw1Py7rUV1VnR 6CBQgFXf/qckuLdZULmlRjTsy3N3OE5KryOe8EL9c0ikHA+SJBQZ90JW3NapX/q9 KRMdi6oMWEBGp8mUPAWuT5jFrExSKOjemRdeYAF0x+l1kzVIVST7kFc2djkFi3o8 UCQ/yJaL/0En58UKyBOJPmQNBCBNwC2kH5g9ws0hiAdwlDUnxxc= =Dp9h -----END PGP SIGNATURE----- --uZNJgE1PSkaSK3Iw--