Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1944155imu; Thu, 10 Jan 2019 05:50:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN7MJ0XCUpq5Z4VDwurs8w4z7kKA0nOxTRLuhn/xJE+fAhcC2NQK3EBUX7KsWLAyoxL6mcEY X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr9950222plm.249.1547128257169; Thu, 10 Jan 2019 05:50:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547128257; cv=none; d=google.com; s=arc-20160816; b=QIpebFaeIvgpVuJgL4ZI2lJYuwrw7WvCoS7ThYB+bPfr3dLO4wMC6Vqjl3pZE9QMIs 6D5toHnPU45UWhdebYN1Fpc9ri0A1IpCJyPEVqUQTe7Of+JSWqiBTv62Uch40a5Up+0G fpj5Dd0FUn6useG8ibKBKrmQXXkFdMvp4mdFofVctOA97uK6Q/eEIkZN8HR2Pl+CKb6N KWrJbDTQta51KcgFHxqQtsVtJzdlEc05DqD2sdhIRo6vuzOyEWzBqGeeotzywEP8ZGJN 0AbvkzWsC0X5xEfNjcVa6SyIDkuA1vw4sM4us7dB6BpdtJzlj5cSTMZY5WeCG5aTVv2e F/fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=GWqeNjykrBmumfAFDBHANaR0ima2Sl2zZcSGnQ8ONmU=; b=OySyREF7bBqha6dJyYy3eah4FeNzXs71f/JlK2YSFaTw/Eo+sTGUJWSnEY9zBz+wSs KYyzXxLHG79dP9Rx32TP7w/msOXj2VlqufQQuWCmFGyeOV1g1+I62TYLi2o5ARykCrXH MJEh+1yQoOh3024zS6iYwcMQNQdpIYbAjSBGORgVOFl8iheb7Ir4a5d+avZ/6zLglo2/ P2NtYoF0NCoDtSIwhu3sjp3pPa5ydqW+fkd5o1M/ZU2M8W2JSZEcZomReBRy95B/JL10 FDibeKFvKi0mMH4x7HWoApRnv8DGIq9pk6Q6ZQDkcAbuvXVZAnW1ITF5871RcgPhQVnL 3HEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=iWBIZLBr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si6013519pfb.41.2019.01.10.05.50.41; Thu, 10 Jan 2019 05:50:57 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=iWBIZLBr; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727933AbfAJMA3 (ORCPT + 99 others); Thu, 10 Jan 2019 07:00:29 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:40076 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726612AbfAJMA3 (ORCPT ); Thu, 10 Jan 2019 07:00:29 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0ABwwSg122111; Thu, 10 Jan 2019 12:00:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=GWqeNjykrBmumfAFDBHANaR0ima2Sl2zZcSGnQ8ONmU=; b=iWBIZLBrhCrsOI7OYtbwW0Q5u7cRK4J3NxFAqOyKhxu2kQ7LOom/dUKecOT6MrWRKPcc UscqFxl27UtYao3lDLj7Qp45tnS4H042+fGy2rbi0HI1R48897Uo6VXVx96qQz6vRkdE vQjuGdaqY95LgLM4lhONOa8Kybn6qTimdnaJpB0lhVlzh9e1QfYdQ10w1ZFBzjFE0deu byHVSpbtXoqnCyO7UMYBz9gUfa+WHU3LLMrDC+GJj9fEegvPvnlPVvUDRfITCsCrP70N jGKWoSAaM4fGoAilow0YSMQyTARtWyylFeTeTeYykUc0Q2wes6vSN5R2plysBvqORW9L qg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2ptn7r6m8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jan 2019 12:00:17 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0AC0GxX024006 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jan 2019 12:00:16 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0AC0Ee1029162; Thu, 10 Jan 2019 12:00:15 GMT Received: from [192.168.0.110] (/73.243.10.6) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Jan 2019 04:00:14 -0800 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [v3 PATCH 5/5] doc: memcontrol: add description for wipe_on_offline From: William Kucharski In-Reply-To: <1547061285-100329-6-git-send-email-yang.shi@linux.alibaba.com> Date: Thu, 10 Jan 2019 05:00:13 -0700 Cc: Michal Hocko , hannes@cmpxchg.org, shakeelb@google.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <0746F690-2C0C-4041-842A-19CEB28A5E45@oracle.com> References: <1547061285-100329-1-git-send-email-yang.shi@linux.alibaba.com> <1547061285-100329-6-git-send-email-yang.shi@linux.alibaba.com> To: Yang Shi X-Mailer: Apple Mail (2.3445.102.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9131 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901100099 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just a few grammar corrections since this is going into Documentation: > On Jan 9, 2019, at 12:14 PM, Yang Shi = wrote: >=20 > Add desprition of wipe_on_offline interface in cgroup documents. Add a description of the wipe_on_offline interface to the 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(+) >=20 > 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. >=20 > + 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. Writing a 1 will enable it; writing a 0 will disable it. > + > + It would reclaim as much as possible memory just as what = force_empty does. It will reclaim as much memory as possible, just as force_empty does. > + >=20 > 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_=3D N0=3D N1=3D ... >=20 > The "total" count is sum of file + anon + unevictable. >=20 > +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. Writing a 1 will enable it; writing a 0 will disable it. > + > +It would reclaim as much as possible memory just as what force_empty = does. It will reclaim as much memory as possible, just as force_empty does. > + > 6. Hierarchy support >=20 > The memory controller supports a deep hierarchy and hierarchical = accounting. > --=20 > 1.8.3.1 >=20