Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1086779imu; Wed, 9 Jan 2019 11:21:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4u6OdOrxqDXFUJB7Ovnyt2o+22zQG/C7s/9AeMKIITVmSAhoztgtc60XpuYGGcBpFroK9g X-Received: by 2002:a17:902:b707:: with SMTP id d7mr6934267pls.29.1547061716321; Wed, 09 Jan 2019 11:21:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547061716; cv=none; d=google.com; s=arc-20160816; b=N0VJuoW/Wu+0vvaX+f1/pyiCuz5q9mb95MuHKp2vgjSA46m8OaUIy0vLWjdOa8IpB9 JGD/OyQaALH2oqepWgjIlNpgc5+Zp+K2shKyxU6fKF04FEzY8hBxR95ioHUxrsAGhXw0 1z828DhQ48ktdv5x5TzcXnD5v+fIyRxKN9JeuJcJxFzU06UZudUwDjarcL6zJVXF+3Pq ZKsNyJZl4+K6fTWo6KBiHVskpQd7xefpDMnmoPkpCj8VXjypR6VVAWrFblHYDMdYc0/X 0EmjPb3dSYv+3tSTL5nSzYRh4rWyxNTRR4Qnnd3eo1tUeO8o0ORAzJUVOUAlVDKKiKUZ A7Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=YvHbbFTQGKzu1yoPcOk6gELXGq0DpSPHtmrDxZOcDa4=; b=lYyNLWqgrhOIOMxAbT8PVuI2fvcRG4QlZq5+lIxRt8vk+ztkUsSx1K3UgLaba6zbZF hLxqma9qAZ0hFCCcqAATKsd+ajCqlYoVN3N3Ls/gD1atrr+Ci8Si+fbyc5gAHYxYv7XJ QyZK4L4EioUJ9ai1WXlJ7T9Ihxk08X5f3w2ALn2a2s6XHA7PINtC+G3au5FvAKZq5aS/ FrbL7nKrv5pm87K/55fZaj3UJ9ehKr7XV3gmQrPkotIlXa5qwX60JOPShIR6FVsFpCzl f4A1k+RMbDpyqm5drr0LYk8imY+PUi6TnDy36HHgesiU5IEDq8zgSgiw2aggzantCy2N dVZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c64si36686858pfg.239.2019.01.09.11.21.39; Wed, 09 Jan 2019 11:21:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728197AbfAITUY (ORCPT + 99 others); Wed, 9 Jan 2019 14:20:24 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:43002 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728143AbfAITUX (ORCPT ); Wed, 9 Jan 2019 14:20:23 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R231e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07486;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 5/5] doc: memcontrol: add description for wipe_on_offline Date: Thu, 10 Jan 2019 03:14:45 +0800 Message-Id: <1547061285-100329-6-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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add desprition of wipe_on_offline interface in cgroup documents. Cc: Michal Hocko Cc: Johannes Weiner Cc: Shakeel Butt Signed-off-by: Yang Shi --- Documentation/admin-guide/cgroup-v2.rst | 9 +++++++++ Documentation/cgroup-v1/memory.txt | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst index 0290c65..e4ef08c 100644 --- a/Documentation/admin-guide/cgroup-v2.rst +++ b/Documentation/admin-guide/cgroup-v2.rst @@ -1303,6 +1303,15 @@ PAGE_SIZE multiple when read back. memory pressure happens. If you want to avoid that, force_empty will be useful. + memory.wipe_on_offline + + This is similar to force_empty, but it just does memory reclaim + asynchronously in css offline kworker. + + Writing into 1 will enable it, disable it by writing into 0. + + It would reclaim as much as possible memory just as what force_empty does. + Usage Guidelines ~~~~~~~~~~~~~~~~ diff --git a/Documentation/cgroup-v1/memory.txt b/Documentation/cgroup-v1/memory.txt index 8e2cb1d..1c6e1ca 100644 --- a/Documentation/cgroup-v1/memory.txt +++ b/Documentation/cgroup-v1/memory.txt @@ -71,6 +71,7 @@ Brief summary of control files. memory.stat # show various statistics memory.use_hierarchy # set/show hierarchical account enabled memory.force_empty # trigger forced page reclaim + memory.wipe_on_offline # trigger forced page reclaim when offlining memory.pressure_level # set memory pressure notifications memory.swappiness # set/show swappiness parameter of vmscan (See sysctl's vm.swappiness) @@ -581,6 +582,15 @@ hierarchical_= N0= N1= ... The "total" count is sum of file + anon + unevictable. +5.7 wipe_on_offline + +This is similar to force_empty, but it just does memory reclaim asynchronously +in css offline kworker. + +Writing into 1 will enable it, disable it by writing into 0. + +It would reclaim as much as possible memory just as what force_empty does. + 6. Hierarchy support The memory controller supports a deep hierarchy and hierarchical accounting. -- 1.8.3.1