Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAFEBC61DA4 for ; Thu, 23 Feb 2023 14:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234721AbjBWOU7 (ORCPT ); Thu, 23 Feb 2023 09:20:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234365AbjBWOU4 (ORCPT ); Thu, 23 Feb 2023 09:20:56 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA65F2A15A; Thu, 23 Feb 2023 06:20:55 -0800 (PST) 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-out2.suse.de (Postfix) with ESMTPS id AA45B1FD92; Thu, 23 Feb 2023 14:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1677162054; 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=kav8FmN/Pj89hSxrGp53cgOm8Q4RadxShRyIj0aVt2M=; b=KCM/GkDJ5CtrBapJmm08Wf0Llp3zhiGYXKrM4uUOajtjgJm1kj8pXs2eksaizhJIHaIvux giEr4JnWA2DcaeQVK7kAsTR0tU68shsJhTBm4/Q/OyvKGeQp1CKXopYhQCk/ovC0IJ/keI QnKHkQpZqz8LzK3EIVQZqqymtg9rcKQ= 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 6519D13928; Thu, 23 Feb 2023 14:20:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YQxiF0Z292NNFgAAMHmgww (envelope-from ); Thu, 23 Feb 2023 14:20:54 +0000 Date: Thu, 23 Feb 2023 15:20:53 +0100 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Matthew Chae Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Andrew Morton , kernel@axis.com, christopher.wong@axis.com, Muchun Song , cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/memcontrol: add memory.peak in cgroup root Message-ID: <20230223142053.ejpygn4asiks7uue@blackpad> References: <20230221143421.10385-1-matthew.chae@axis.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q22yp5mylqojoxly" Content-Disposition: inline In-Reply-To: <20230221143421.10385-1-matthew.chae@axis.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --q22yp5mylqojoxly Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello Matthew. On Tue, Feb 21, 2023 at 03:34:20PM +0100, Matthew Chae wrote: > The kernel currently doesn't provide any method to show the overall > system's peak memory usage recorded. Instead, only each slice's peak > memory usage recorded except for cgroup root is shown through each > memory.peak. The memory.peak value is useful as a calibration insight when you want to configure memcg limit. But there is no global (memcg) limit on memory. So what would be this (not clearly) defined value good for? Or better then userspace sampling of chosen available metric? Thanks, Michal --q22yp5mylqojoxly Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTrXXag4J0QvXXBmkMkDQmsBEOquQUCY/d2QgAKCRAkDQmsBEOq uZKPAP0XDln51ca97Q7J1pGYE4mYyE5HiobHbhWmbtWeDr85qwD9GTceOFjkX9Xb q33nFRFD1ixImjgy/z6X9cnP0dK/WQ4= =3ruE -----END PGP SIGNATURE----- --q22yp5mylqojoxly--