From patchwork Wed Jan 9 19:14:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 10754845 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 67BC86C2 for ; Wed, 9 Jan 2019 19:18:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5872E289BF for ; Wed, 9 Jan 2019 19:18:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A40A289CB; Wed, 9 Jan 2019 19:18:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12630289BF for ; Wed, 9 Jan 2019 19:18:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 393938E009E; Wed, 9 Jan 2019 14:18:51 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 36B968E0038; Wed, 9 Jan 2019 14:18:51 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 280A88E009E; Wed, 9 Jan 2019 14:18:51 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by kanga.kvack.org (Postfix) with ESMTP id D9DCE8E0038 for ; Wed, 9 Jan 2019 14:18:50 -0500 (EST) Received: by mail-pf1-f199.google.com with SMTP id u20so5947638pfa.1 for ; Wed, 09 Jan 2019 11:18:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=8XCIJfqelyCc8vq4TfoTZne/96LBokAk2miuT+Bctcc=; b=BMMkVxMMaG5MzJxUb5zqZAOwWSmwKfipblp58SfCfZglMLgOw4oRzKaEeLa4xCNCN7 qVek2eczxkjVQWyPJ1B8BQloILOnyrAb0W/y+YZTsi35AW0LeTO7xZCNPaT5HIkzp32n W8x6qA2Bhto+kqmSiFOECT6QeDFYJIozFB4Y+RCDZouygTJoTmPBV5s5aSSp26TFTXYi 8CZrW3HphCnUI2bjwxgJqv2hkWWUVF5XLJ5PC4ZaD9EL2bejXEPOxOuhpuiiNbVDA1aL eMzF+KN3V2tuaH8fUwGr80OnJXqLWX0T3poDhzqD/aCeq+kfjkvZnhHwaFzgK2dTA78o 6INg== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yang.shi@linux.alibaba.com designates 115.124.30.132 as permitted sender) smtp.mailfrom=yang.shi@linux.alibaba.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alibaba.com X-Gm-Message-State: AJcUukeaQl3+tO6RRLCaQy6rdKWUqpCW6C+/C0C/ZX+Srq5FtJYjboNA eJWfcIUoGVKFMLEs03yIOmETJVHka7ZQlmh45M8kTTQw2cYLbfHSAJWcIrWv1agQXpQ47vfwA0K kIEYF2mRMSIMo/x++hF7jp4m6Gaa7nz09u85HMCiu7afo2fvIdh/K64xIlh/NsagSsg== X-Received: by 2002:a62:a1a:: with SMTP id s26mr7237964pfi.31.1547061530558; Wed, 09 Jan 2019 11:18:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN6jH5VJIGk7DTIY5jxAIvrQM56ZYzBqDjGCNg2ciY02a84WTOUOYJ6WiJ9WHtMimhhzIilc X-Received: by 2002:a62:a1a:: with SMTP id s26mr7237916pfi.31.1547061529393; Wed, 09 Jan 2019 11:18:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547061529; cv=none; d=google.com; s=arc-20160816; b=gkv9YwYiZquThoSCUBYpBw8z90Z9603mHSuD647K9Gcs5JmSCDv6UpDlmhCGNgL8UB Zl5peHNs2DtVEG/9bmQe9NYlN0gX0quXrOZXlJs0muDGbsUzSeP4jc8qYYD7mc/xVRLo ILa8T8lttwC2rFSqHj4M7xWk8UoiRlMUrrNfARTzAh2HXINvIzppYsG2kVT4rVUhjlRf Ma33iowkmuzhb0wGtDFn+iWUVUXiObTYpYzSW6azCTxCHa6KAP86/0xZjh4Wtmn3P4tU VQNyTvNZLPUPtP7xliOjRZhT103+7S4/dfmkHKsxY9s14lfIlQFVNZgi2wcxfgaUSUBX YOyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=8XCIJfqelyCc8vq4TfoTZne/96LBokAk2miuT+Bctcc=; b=SyZ4xR7oS7lghDeA667ccwtZ0IrHLnnjKwHcI6ZbteQ8lufGouqhP3C1RvktEY6ZeR Br4CfsGpEQDLcbnpHPX1g49og5XwBaehMNsj0VZ3oNw9CzSTGeVujYFoBatGSdHqU5xI f6W7qXyPpZskRbcbZPxF8z1U7diQNBx8gL/W6Bdj15L9wD6xyeAhFed1BCn6McW1eoGr GB15faxBzrQbFMjI6Em5cmu5lrX61Hvlic55gVER6IQPWInZ+rl0UURTE1VAdKPesBa4 AmDxg/uSiegpM34c57zP4o9XHIZymeh1obOzAHiWWW+LBqIgvQ4QfuBgDkDowxJCbFh1 jFRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yang.shi@linux.alibaba.com designates 115.124.30.132 as permitted sender) smtp.mailfrom=yang.shi@linux.alibaba.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com. [115.124.30.132]) by mx.google.com with ESMTPS id p14si5220131pfi.12.2019.01.09.11.18.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 11:18:49 -0800 (PST) Received-SPF: pass (google.com: domain of yang.shi@linux.alibaba.com designates 115.124.30.132 as permitted sender) client-ip=115.124.30.132; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yang.shi@linux.alibaba.com designates 115.124.30.132 as permitted sender) smtp.mailfrom=yang.shi@linux.alibaba.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04446;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0THtvvDg_1547061291; Received: from e19h19392.et15sqa.tbsite.net(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0THtvvDg_1547061291) by smtp.aliyun-inc.com(127.0.0.1); Thu, 10 Jan 2019 03:14:59 +0800 From: Yang Shi To: mhocko@suse.com, hannes@cmpxchg.org, shakeelb@google.com, akpm@linux-foundation.org Cc: yang.shi@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [v3 PATCH 1/5] doc: memcontrol: fix the obsolete content about force empty Date: Thu, 10 Jan 2019 03:14:41 +0800 Message-Id: <1547061285-100329-2-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1547061285-100329-1-git-send-email-yang.shi@linux.alibaba.com> References: <1547061285-100329-1-git-send-email-yang.shi@linux.alibaba.com> 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: X-Virus-Scanned: ClamAV using ClamSMTP We don't do page cache reparent anymore when offlining memcg, so update force empty related content accordingly. Reviewed-by: Shakeel Butt Acked-by: Michal Hocko Cc: Johannes Weiner Signed-off-by: Yang Shi --- Documentation/cgroup-v1/memory.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/cgroup-v1/memory.txt b/Documentation/cgroup-v1/memory.txt index 3682e99..8e2cb1d 100644 --- a/Documentation/cgroup-v1/memory.txt +++ b/Documentation/cgroup-v1/memory.txt @@ -70,7 +70,7 @@ Brief summary of control files. memory.soft_limit_in_bytes # set/show soft limit of memory usage memory.stat # show various statistics memory.use_hierarchy # set/show hierarchical account enabled - memory.force_empty # trigger forced move charge to parent + memory.force_empty # trigger forced page reclaim memory.pressure_level # set memory pressure notifications memory.swappiness # set/show swappiness parameter of vmscan (See sysctl's vm.swappiness) @@ -459,8 +459,9 @@ About use_hierarchy, see Section 6. the cgroup will be reclaimed and as many pages reclaimed as possible. The typical use case for this interface is before calling rmdir(). - Because rmdir() moves all pages to parent, some out-of-use page caches can be - moved to the parent. If you want to avoid that, force_empty will be useful. + Though rmdir() offlines memcg, but the memcg may still stay there due to + charged file caches. Some out-of-use page caches may keep charged until + memory pressure happens. If you want to avoid that, force_empty will be useful. Also, note that when memory.kmem.limit_in_bytes is set the charges due to kernel pages will still be seen. This is not considered a failure and the