Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3335360pxa; Tue, 18 Aug 2020 12:30:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCTPfrvmUHXC2Boa3fSK27isnQTvoMJW+/ByVfWYLcYI8OQukr8tX3V1In+xZ7vUK4IYUW X-Received: by 2002:a17:907:42cd:: with SMTP id nz21mr21965649ejb.395.1597779048547; Tue, 18 Aug 2020 12:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597779048; cv=none; d=google.com; s=arc-20160816; b=ddWZzIPPmPEJrfK1PKS7oHY+NpZFQM9L5U4Iqt8YKeZX+3Ph2UiYRxUXRU6PInJDhv jlqY5O8zC1B2uEuPloAH4+RYrdhRr312oTr4cZ9dRp3+y6scjrT73UvvWqWe3eFf6GX2 CKTW4hE8aQ8Z4nhrTsXGT7GvZlW+l/M06S5Nk7Fi3MtLfOokZ8RP+pohkjY36NY5F63u Z8+j8vflKHKyzY9ksr0XlpUiBhW13qy/TaALzenegPZP9uAxw+wX+dyNdQewvlEh8Moz 7jtfoXNnXtIoESzesZH04F337244kIRQvPiH9TdYVux8mBnp0SMqiSqFSUi08YpTOqZu vGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature; bh=EYREHDLi/OwVaks7d7Yd3+mLedE3CgJg65cYrNwwqcA=; b=uhcJy9XXYX2oOVgJN2lkMzu1L5fM7YMjy2/zSVmLdMzSeshv3gdZBhUuk/ScwU55fA YliCqBLCdjbe+iLptXkxUyZEjI7lqKUu4x5eCRtg/u4SsfAR7u3gibMNcCq2boK/i2Zb xZRUWdppeGTfXEWaMhy8CJlQLkOLi0yJRlmxHm5fMV7LqPcG2MOe2Eg7JENr1ZIeG2cj 2EQpLV9zTwa/wVcw+dJkcvuY8lFVPWMB1ynVBAI6LUnkTyF7kYFniS/IH5VtAVMu/EvS J9ePTpOJ+Kz6vBSSaiHqm//xnZWUUda7DfwQmZsEoewUXC8yhQTOFWxQJ/dhsjB/SCnq g9rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AhuqMZwj; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si13637103eja.418.2020.08.18.12.30.24; Tue, 18 Aug 2020 12:30:48 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AhuqMZwj; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgHRT1d (ORCPT + 99 others); Tue, 18 Aug 2020 15:27:33 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:28494 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726585AbgHRT1b (ORCPT ); Tue, 18 Aug 2020 15:27:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597778850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EYREHDLi/OwVaks7d7Yd3+mLedE3CgJg65cYrNwwqcA=; b=AhuqMZwjHMXxwIJLh2/xk46SPDY0TnodDuFG3LkQhEeE8xa4mG1jtLxCFpOQdaJ6sCUNwR Vh7sebKCp+3mf99lrHZc9RSJItQB+jLbfofWTEOVq00TAss4hKcxbNcn02P4klILVMQ4go +Y/TWvpLffwQrg8UUTw/b4bdVLjJfsg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-221-hQS0I0WjOQSRP7dtma0PCA-1; Tue, 18 Aug 2020 15:27:28 -0400 X-MC-Unique: hQS0I0WjOQSRP7dtma0PCA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9F6421DDF1; Tue, 18 Aug 2020 19:27:25 +0000 (UTC) Received: from llong.remote.csb (ovpn-112-51.rdu2.redhat.com [10.10.112.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 870857D91B; Tue, 18 Aug 2020 19:27:23 +0000 (UTC) Subject: Re: [RFC PATCH 0/8] memcg: Enable fine-grained per process memory control To: peterz@infradead.org Cc: Andrew Morton , Johannes Weiner , Michal Hocko , 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 References: <20200817140831.30260-1-longman@redhat.com> <20200818091453.GL2674@hirez.programming.kicks-ass.net> From: Waiman Long Organization: Red Hat Message-ID: <3a4d858c-0605-c5fc-4a9e-f05cf221d6ac@redhat.com> Date: Tue, 18 Aug 2020 15:27:21 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200818091453.GL2674@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/20 5:14 AM, peterz@infradead.org wrote: > On Mon, Aug 17, 2020 at 10:08:23AM -0400, Waiman Long wrote: >> Memory controller can be used to control and limit the amount of >> physical memory used by a task. When a limit is set in "memory.high" in >> a v2 non-root memory cgroup, the memory controller will try to reclaim >> memory if the limit has been exceeded. Normally, that will be enough >> to keep the physical memory consumption of tasks in the memory cgroup >> to be around or below the "memory.high" limit. >> >> Sometimes, memory reclaim may not be able to recover memory in a rate >> that can catch up to the physical memory allocation rate. In this case, >> the physical memory consumption will keep on increasing. > Then slow down the allocator? That's what we do for dirty pages too, we > slow down the dirtier when we run against the limits. > I missed that there are already allocator throttling done in upstream code. So I will need to reexamine if this patch is necessary or not. Thanks, Longman