Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3326816pxa; Tue, 18 Aug 2020 12:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA1JhuSaGRyvXbIyg0ljT1B9NE90B470fJSDKUd8lsd/TyIBxgGIihjrKjZfYjIHWiM5Xs X-Received: by 2002:a17:906:e2d6:: with SMTP id gr22mr771094ejb.455.1597778154659; Tue, 18 Aug 2020 12:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597778154; cv=none; d=google.com; s=arc-20160816; b=Zughc1fETT+qqjxS6Qwf+R7Y2UPqj9B/RQvKQweknur06vRpw2uMOHtsdq2/UQArx/ rzl2t4CuDp3D1bwEFF3UvfW18szosi+YJvvHj3gjbUnWlR6S2b/NSk3uYeNdx5SZdnn3 9NsT2IX6IFpiJDqyILCbv5ZxeDT9ab/TqekNvhZlbunbjbyktKsu9Y34tqugc3juouMd Quct/uXee7HeBnAYaliuHWTMa5wUgejrD+778p/C1pzdQIDHrk/3VphVDIl5vztzDeDk MBD2BpMQNo6RbjiVet/U2+9ibgEUU/JtZ5XtgbuwTfGO5pXwQ9XKumyA0cTSDcqZe0UQ dkeQ== 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=zfJNd7RYls8lhl+N7+nbfG2UK0yQWhrSTT/VQFptF2Q=; b=B5XcB6wTj7aHyo5JIs4ZsIXh0gF9b//Uih+bXhtmhKwpmHlxnTMpj0MY+5YJ5YQ/g2 LpK9kp1fy6M5+b+Wk3sRS462YWNKW81EXdksFANGVRMP2d8aPberntqG8xi3xMh0RxvM syaGMXDHiV7ytRw/YcUXICHZJsnoR++jw1FiIDUmCHAzZRUydcGyxGlAV72nOSD6WpVm QXocE4ie3S3s0HkyV/7t3D3FJT4UxOwxPfiR5ZFHD4kCrvTUz0/EVwwOvILT6BKfErd2 tzfZtXJ9Z9hTtialug4QTXrDjZXjdjbHm9qa5WMVupZYQeVHA2LflZSQ5xLOUIo2O4Py vtlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dKsTvxvo; 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 r24si13498816edy.160.2020.08.18.12.15.29; Tue, 18 Aug 2020 12:15:54 -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=dKsTvxvo; 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 S1726729AbgHRTOs (ORCPT + 99 others); Tue, 18 Aug 2020 15:14:48 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:50951 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726651AbgHRTOq (ORCPT ); Tue, 18 Aug 2020 15:14:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597778085; 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=zfJNd7RYls8lhl+N7+nbfG2UK0yQWhrSTT/VQFptF2Q=; b=dKsTvxvo30WNc4z6+zYiUpLcrH2ttz2hWRkw4DhfjN+gyLCN2VyjOYhqFfcxrmKimVifhS xN8NUgrvpo3NcEilN1DZ1WxkzaPxukXCYpfFuF0AAwdE5auiRV0t+D2HsmLFlT1adC0Oom t39Fz+/hrqHQDGcSRQvgySSz44zBoUI= 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-122-qCnjyY6iPQiK4u6wOlrzhQ-1; Tue, 18 Aug 2020 15:14:42 -0400 X-MC-Unique: qCnjyY6iPQiK4u6wOlrzhQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6142581F020; Tue, 18 Aug 2020 19:14:39 +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 6A4091014169; Tue, 18 Aug 2020 19:14:07 +0000 (UTC) Subject: Re: [RFC PATCH 1/8] memcg: Enable fine-grained control of over memory.high action To: Shakeel Butt Cc: Andrew Morton , Johannes Weiner , Michal Hocko , Vladimir Davydov , Jonathan Corbet , Alexey Dobriyan , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , LKML , linux-doc@vger.kernel.org, linux-fsdevel , Cgroups , Linux MM References: <20200817140831.30260-1-longman@redhat.com> <20200817140831.30260-2-longman@redhat.com> From: Waiman Long Organization: Red Hat Message-ID: <89179081-697d-232d-a936-697e3c662f65@redhat.com> Date: Tue, 18 Aug 2020 15:14:06 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/17/20 12:44 PM, Shakeel Butt wrote: > On Mon, Aug 17, 2020 at 7:11 AM 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 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 especially >> when rotating disks are used for swapping or writing dirty pages. In >> this case, the physical memory consumption will keep on increasing. > Isn't this the real underlying issue? Why not make the guarantees of > memory.high more strict instead of adding more interfaces and > complexity? > > By the way, have you observed this issue on real workloads or some > test cases? It would be good to get a repro with simple test cases. > As said before, this is from a customer request. I will need to re-examine the existing features to see if they can satisfy the customer need. Cheers, Longman