From patchwork Sat Jan 5 00:19:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 10749019 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 3F1E41575 for ; Sat, 5 Jan 2019 00:22:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B30F287EF for ; Sat, 5 Jan 2019 00:22:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19BBE287FE; Sat, 5 Jan 2019 00:22:46 +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 6F09F287EF for ; Sat, 5 Jan 2019 00:22:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A00098E0114; Fri, 4 Jan 2019 19:22:44 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9AF238E00F9; Fri, 4 Jan 2019 19:22:44 -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 877B78E0114; Fri, 4 Jan 2019 19:22:44 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by kanga.kvack.org (Postfix) with ESMTP id 42D6B8E00F9 for ; Fri, 4 Jan 2019 19:22:44 -0500 (EST) Received: by mail-pf1-f200.google.com with SMTP id x67so11810249pfk.16 for ; Fri, 04 Jan 2019 16:22:44 -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=GQfln1JRWsGOTIa3dAVsEQN7XVqEyKws2FFgku/qIQkzxIqzXDKfxuH870cubSsU6C c2bmp4HjbsJkbgKQkUcAj8K+OcT6cvfnOT5MTzxx4vLPd1hEUkX8NOncUPy+ElyGBaSa w93yRsM/Idv/j//9Y8GzpHEpLzwDd2m3NkDebosxprRJGSAYo+ZpR0I26CShNjZFIog1 I7uwgftTzpyTLrk847SRD3eCNvUEK3qUQZDJApAa6qWsMNhmRSHqS3BR7gxoiELe88VA /goPJlEcPpStEoPwXv/5VnL7aGoq//mx8qC67xYYmqDAUB0ws4MimoYU7dChgvyDdZAi u6Fg== 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: AJcUukftGhpcBys6KZIMnQjaLGSZLM8XXH1e9lR7CmJzRcDPFEMpXol5 ll3iUZfK9Y6kfG+Q9WmC7V2IGUusq1a/aFjJlGRpQ3zU7jhdRx1ZEj/jxPNm3FfZsnoe9SuH4Q2 pytrJA+Tn2PnMpX/CiwLT+6nDXfed4KUdbNndWZSH7yHT/Gy8yuXIKLou09SH1oEi8A== X-Received: by 2002:a63:f1f:: with SMTP id e31mr3314450pgl.274.1546647763900; Fri, 04 Jan 2019 16:22:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN5/ZYz+GXwJJUwiPpAV2b398jK0l4EXCCJqKB1jAHV3k8u3diezY0w4YwVcwayhu3KTOd7O X-Received: by 2002:a63:f1f:: with SMTP id e31mr3314423pgl.274.1546647763141; Fri, 04 Jan 2019 16:22:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546647763; cv=none; d=google.com; s=arc-20160816; b=MzXd7fkpowgBulkbzG45G2I/TFQhYqwbJZ77r+0KtgnxR8QGoh2lK5A/O5/M5czOzP 8n0ZMbirZqHO14EQ8ZFt+4RBz7eonPhEYrXUMSn7a91tX0lN10nJKhZQBWdiYn4iHXR/ HNiQb/QcEcUAXL4T1vIXQfxOaLkvC3P5fDrWJnG+WMe01FRnkgdfyryyu0iTmHoCOT7b FPZoj5HNRtVx6uJyJWDAuMelB1Ui+WMtx91fd1mKuRMDlzH9YZPGc+FNfT/0Vsc7RpgD JXLGxO4pmc9T+RL/lAWF9UzT6xqSANFkesmNC6A5VU2xQw6DMVniFMrkRaWtWsZpAn0E Vkjg== 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=l8IXP/XedbaRkZzUSVaRry4Bai/0Lmen6b5jIfApwK3dV1GzXMCc+HRsvTRPgBqpE9 ZC21iq5vxqAd9b+fs4EIchveDQop2SgoeYq8+7RiMA4tJRDjfjgv0wSJwTjlx9w89KKE CK3YDhal0FzZgTGuAM/caT1AsZDgrlthh5OgC4aSI0H4tN5thg50SxAOftQMYX2vPH0H wSV69alEmOOR9dplsjOp1DzzAa1YMxgbdL28LuZvqTciCQCS4GyqpH88OumyX6vv5K5J tHPM9flW9W9tFzFVXClbqy/qz42dzlSfiBXjTmnk84scrGbTKuzWnEW+3/5PLIH4XYdA gnWg== 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 b3si10260947pgc.587.2019.01.04.16.22.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 16:22:43 -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=01201311R191e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04452;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0THYi1he_1546647563; Received: from e19h19392.et15sqa.tbsite.net(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0THYi1he_1546647563) by smtp.aliyun-inc.com(127.0.0.1); Sat, 05 Jan 2019 08:19:30 +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: [v2 PATCH 1/5] doc: memcontrol: fix the obsolete content about force empty Date: Sat, 5 Jan 2019 08:19:16 +0800 Message-Id: <1546647560-40026-2-git-send-email-yang.shi@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1546647560-40026-1-git-send-email-yang.shi@linux.alibaba.com> References: <1546647560-40026-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