Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp613685pxa; Tue, 11 Aug 2020 10:38:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFXigJSTo9InnDZjcIREb/tHfsdkmEk6jDb7NoJn2T2gee+VPSMijzJ0PUZIlLouFSpU65 X-Received: by 2002:aa7:cd6c:: with SMTP id ca12mr26199979edb.365.1597167481788; Tue, 11 Aug 2020 10:38:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597167481; cv=none; d=google.com; s=arc-20160816; b=WmoQkvNXFVqh8q6bGxGdbbN2oAyMC5aSt9GkNPrWGcZ2mDy8/m80SfeCfPyBw4djJy u2liNqgGZSbaky7Rf9KB7xhUa+y2n2mnDmYRUNnHKrIOPSsLlwGqEbzcz3uSmEu6ICk6 qlWRrwaegNffX/MSmkB/nDRqux2WTduwwnUexbB87lXjD/uQ4C/9E4kZgNY/cLervADQ 52zaVSLxJKUYWxmgHAesJ001xvfnTxyFiMrBzl2kFZVbC/xUYc4Szbou2KcfeeKr3E71 96zekT6fDenBLGXYtpI4wiIiz5UWYvgu9/w8MUlNy+DtrnZiwNOgE/9oJECfpGNt+rsF oabw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IjVEe2a7R6B6mG3pcdZL1YdDslPxehl/O8zJiSaq2zg=; b=zwj4h93cOpDs/00v1IhPTVs/wxbwguL92jFhfngJuy2po+H0oxzTWN/fHi93V3Xs1C f3Ny7sg4q4gtEFi1YJ/7ZAHWWR5Dxad5zqXNC4cGH0v8EHdeZQIC6E4dwse3VFy8eiyb MZcR3iIMA6Avvqs8Wl+oxaAIXttE5ySE1TJdGzefFcZQRgt4VRa2KP2Q+NoIbT2PnoXl KcJDTDi+vQ84GNMvG8mJGjJJPGLcsemOAgYeRbHsP5JIs44nF3YkqBoVmY1ZaNLHm7ei pO5Ys7m5XwdFGNwkbJ1WA7cwrsKn5dyampfWsqyc7DJwt6HrRu3ld0A0Hq7wk5We0R7x Qa2w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 30si13126826edq.190.2020.08.11.10.37.38; Tue, 11 Aug 2020 10:38:01 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729234AbgHKRgn (ORCPT + 99 others); Tue, 11 Aug 2020 13:36:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:41558 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729046AbgHKRgl (ORCPT ); Tue, 11 Aug 2020 13:36:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8D6E5B69F; Tue, 11 Aug 2020 17:37:00 +0000 (UTC) Date: Tue, 11 Aug 2020 19:36:26 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Shakeel Butt Cc: Michal Hocko , Johannes Weiner , Roman Gushchin , Yang Shi , David Rientjes , Greg Thelen , Andrew Morton , Linux MM , LKML , Cgroups Subject: Re: [RFC PROPOSAL] memcg: per-memcg user space reclaim interface Message-ID: <20200811173626.GA58879@blackbook> References: <20200702152222.2630760-1-shakeelb@google.com> <20200703063548.GM18446@dhcp22.suse.cz> <20200707121422.GP5913@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Shakeel. On Tue, Jul 07, 2020 at 10:02:50AM -0700, Shakeel Butt wrote: > > Well, I was talkingg about memory.low. It is not meant only to protect > > from the global reclaim. It can be used for balancing memory reclaim > > from _any_ external memory pressure source. So it is somehow related to > > the usecase you have mentioned. > > >=20 > For the uswapd use-case, I am not concerned about the external memory > pressure source but the application hitting its own memory.high limit > and getting throttled. FTR, you can transform own memory.high into "external" pressure with a hierarchy such as limit-group memory.high=3DN+margin memory.low=3D0 `- latency-sensitive-group memory.low=3DN `- regular-group memory.low=3D0 Would that ensure the latency targets? Michal --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEEoQaUCWq8F2Id1tNia1+riC5qSgFAl8y1xcACgkQia1+riC5 qShqhw//YT26h60lQF35uV5/xyJu8L4l+X7FL+ZZjsTqvY/lPSVgvrRzv3zb2h4B ocoUY0cjJ4JatVY9uurZJAMEbGd9Iww8UmPaZAvCb8VPssWTHFgSbD1Eb+RAi4py zEBPLd1JMZ4IeI7FmjGfZHk1/2Qr7nle3KPhHSZKrc83t0tDF6DTTYLOkWBTm+bS JL56nLcXOb8Gm3kOkhLhseffcaWhBKYBzn3GzBXHYfbwX0Ba1I/OX6YrJD649vvc xsmlJc9YfMVixDEatA4Vzt3Pi9ZhpsdfbqMrgHeVA1p81MoA3q8Sk7q9Oz1mze7p aZbmCnl7t04NW7quKmqqqeMG91u+76KpmdGP/T+xpgXu2F8yLDGxzlfgbftb6wVr LhcqYd9SXnX5fy/A0rV4tKAOXTqEpSY9/gEhnBwptwI2KO8VIiFo4a0dKKZ/9K9F yREd3aoKMyad5E99i0N8ZJloo0X42sRdnVoc5SGV0Lj30Wp660IMEO/atRP0Z2+1 SgQmD9VTbsU4wBb2LcaCEz4P83keWm1oMfqdZ7EuGXzvmRT0FOMWvXAQ17RxYBtG DjA+HOCeP9EuHXyefUA2DxsVRbK7Yn0Zb79nOkitb0oXrJuKTFlIW0qQ8oYmmrY8 gsOblNPf1DI2gLr+Wqh58u8/vER3NRgGv77xs/R39KeDh9DMz6Q= =ODBM -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--