From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8646C3A5A6 for ; Mon, 23 Sep 2019 13:28:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9839120882 for ; Mon, 23 Sep 2019 13:28:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9839120882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3499A6B0006; Mon, 23 Sep 2019 09:28:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3210B6B0008; Mon, 23 Sep 2019 09:28:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 284966B000A; Mon, 23 Sep 2019 09:28:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0096.hostedemail.com [216.40.44.96]) by kanga.kvack.org (Postfix) with ESMTP id 0B5DA6B0006 for ; Mon, 23 Sep 2019 09:28:33 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 9F279181AC9B6 for ; Mon, 23 Sep 2019 13:28:32 +0000 (UTC) X-FDA: 75966264864.26.chair95_2d6ef2beb2a55 X-HE-Tag: chair95_2d6ef2beb2a55 X-Filterd-Recvd-Size: 2702 Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Sep 2019 13:28:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id DE0C5B152; Mon, 23 Sep 2019 13:28:30 +0000 (UTC) Date: Mon, 23 Sep 2019 15:28:30 +0200 From: Michal Hocko To: Hillf Danton Cc: Johannes Weiner , Andrew Morton , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Shakeel Butt , Roman Gushchin , Matthew Wilcox Subject: Re: [RFC] mm: memcg: add priority for soft limit reclaiming Message-ID: <20190923132830.GQ6016@dhcp22.suse.cz> References: <20190919133222.GD15782@dhcp22.suse.cz> <20190923130459.11072-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190923130459.11072-1-hdanton@sina.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon 23-09-19 21:04:59, Hillf Danton wrote: > > On Thu, 19 Sep 2019 21:32:31 +0800 Michal Hocko wrote: > > > > On Thu 19-09-19 21:13:32, Hillf Danton wrote: > > > > > > Currently memory controler is playing increasingly important role in > > > how memory is used and how pages are reclaimed on memory pressure. > > > > > > In daily works memcg is often created for critical tasks and their pre > > > configured memory usage is supposed to be met even on memory pressure. > > > Administrator wants to make it configurable that the pages consumed by > > > memcg-B can be reclaimed by page allocations invoked not by memcg-A but > > > by memcg-C. > > > > I am not really sure I understand the usecase well but this sounds like > > what memory reclaim protection in v2 is aiming at. > > Please describe the usecase. > A tipoint to the v2 stuff please. Documentation/admin-guide/cgroup-v2.rst > > > That configurability is addressed by adding priority for soft limit > > > reclaiming to make sure that no pages will be reclaimed from memcg of > > > higer priortiy in favor of memcg of lower priority. > > > > cgroup v1 interfaces are generally frozen and mostly aimed at backward > > compatibility. I am especially concerned about adding a new way to > > control soft limit which is known to be misdesigned and unfixable to > > behave reasonably. > > > An URL to the drafts/works about the new way in your git tree. Whut? -- Michal Hocko SUSE Labs