Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2985876pxa; Tue, 18 Aug 2020 03:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRcp/0DADcR7M3kNuayiRcI8IhzPmq4vQ7FYgRMTPOz8xrEQvlk3uZWYr/8T8z/0pVzTXQ X-Received: by 2002:a17:906:84cf:: with SMTP id f15mr20221069ejy.259.1597746880903; Tue, 18 Aug 2020 03:34:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597746880; cv=none; d=google.com; s=arc-20160816; b=dPk8O1+EOwl42y9DOT6GsllQGzRbp8dymBsNbIfydINmv1rM1zDKOdsN5ZZdd9Edlb dmyhNtck+FYxu9WNnxgRQARK5382hSpx8RLnkdqRjUvqfDeku/z4p7d9OA8oJI26rD8I Y0h16hr4Xhb1x6GlBJjyi0QQcfFclIfsBI6RYBGLPUCOYj0P+QAlKr5QpK5LQ6mVxADU zN90NiRQMi+JVSptS2P5VIcO5/eiQ2ue7T08WufTYUHAbKCo2LItW9AX5sPlaJ/GjRBZ Ic58GCf6eZEfuPZRz76aFSVaBVQNniGSLX3LrNJIL5R9/oOqdAHSnzPRW7RHlGpaACvG VbaQ== 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=cAF+mr1d2bIg6RcvtoKboXYtllh9Sz6ony3jwZBlxak=; b=Zug6rqRfI4qCEmcIl249LdlN0SDPKs1iV3UGprDOGo/CG8nVFiSUQx1k60U+uXBGZP YHlaOXxIfZE7rc7fYnTsVsI/h8SOW8yXSdxGi81Vghd5k6P+wH+TWX+nI+bn/AheT/1D LsmxsIn30YO0OY86fsQFZRERjQ2S9oeG7jNqK8yHUXAYl+ClPhDEfvv6dTG75g0NgHqX qpZWld+ty5S08nNpXQgc2AM8hdfFSLUyxhaMKVv/BOtRy6FHz1DLDIDGuMte8XJg/igq 8e6EBNrnhP/Mfzk3kx2sVCjkB84TXTAkw7T7IeDZtWf+E29Yl+z3Jez1xv1NkgTrpo9x TjIw== 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 bs25si12942295edb.174.2020.08.18.03.34.16; Tue, 18 Aug 2020 03:34:40 -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 S1726620AbgHRKbC (ORCPT + 99 others); Tue, 18 Aug 2020 06:31:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:59240 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726043AbgHRKbC (ORCPT ); Tue, 18 Aug 2020 06:31:02 -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 B3221AF8E; Tue, 18 Aug 2020 10:31:25 +0000 (UTC) Date: Tue, 18 Aug 2020 12:30:59 +0200 From: Michal Hocko To: peterz@infradead.org Cc: Waiman Long , Andrew Morton , Johannes Weiner , Vladimir Davydov , Jonathan Corbet , Alexey Dobriyan , Ingo Molnar , Juri Lelli , Vincent Guittot , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control Message-ID: <20200818103059.GP28270@dhcp22.suse.cz> References: <20200817140831.30260-1-longman@redhat.com> <20200818091453.GL2674@hirez.programming.kicks-ass.net> <20200818092617.GN28270@dhcp22.suse.cz> <20200818095910.GM2674@hirez.programming.kicks-ass.net> <20200818100516.GO28270@dhcp22.suse.cz> <20200818101844.GO2674@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200818101844.GO2674@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 18-08-20 12:18:44, Peter Zijlstra wrote: > On Tue, Aug 18, 2020 at 12:05:16PM +0200, Michal Hocko wrote: > > > But then how can it run-away like Waiman suggested? > > > > As Chris mentioned in other reply. This functionality is quite new. > > > > > /me goes look... and finds MEMCG_MAX_HIGH_DELAY_JIFFIES. > > > > We can certainly tune a different backoff delays but I suspect this is > > not the problem here. > > Tuning? That thing needs throwing out, it's fundamentally buggered. Why > didn't anybody look at how the I/O drtying thing works first? > > What you need is a feeback loop against the rate of freeing pages, and > when you near the saturation point, the allocation rate should exactly > match the freeing rate. > > But this thing has nothing what so ever like that. Existing usecases seem to be doing fine with the existing implementation. If we find out that this is insufficient then we can work on that but I believe this is tangent to this email thread. There are no indications that the current implementation doesn't throttle enough. The proposal also aims at much richer interface to define the oom behavior. -- Michal Hocko SUSE Labs