Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp821599imp; Thu, 21 Feb 2019 11:56:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IZDrl/VZXgw5xn5bKwEqxQZBGA60wY0gR6spEDl8iF4pp9U/J7ArXc70k4uXOQZtYPrp3Rs X-Received: by 2002:a63:c0e:: with SMTP id b14mr243720pgl.236.1550779015300; Thu, 21 Feb 2019 11:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550779015; cv=none; d=google.com; s=arc-20160816; b=g1LULxIgVqA3SCel/u4b0RBSPtvNkfz/OM7jDVM6JZdwG3lQK1QugvaRLV+0JyjPYN NJYh1jK5WtO77bLU7e27xxWQDi3G0pxvHHvv7P3PH+dnB86T0BH5x4dxCjp2h9kF18jK C9wuhpj+WHWOnKDFqK4aaGUnX4gfN0yrwgYARSP7A4ztCCLbQgsCF34u1UzMNh1agjH/ D6s8WkO9iTl90pw4RthboPOlhbL+dfVRd4A8ymm0MzjA5QlS5ubZ/2LGBiPhacMozMgI CxoiZE5vr2+Wh5ui1tkHJJpGPQwKilhaUuSRCOpdPnL7AZvCLyXSieeqOfMxbqFGbkUQ aZ8A== 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:from:references:cc:to:subject; bh=wB4SX18yKj2OZqs2LeBLT+5cJhYt1dxSO5d2eYYYHPs=; b=Mqgvl7hm4FN7eLt2B+Hs2FghZGppW4puz/EjsSWn+hOt2yGMJjkS+8/6d6VmzfA7Wg 6Ps7iywpgj/Dknq/bPq2qUYiRh+blC6ttuT+ftl7XRwvSzvmhgdBqRYDAjwSjr02F9+2 1gtZEuXAbSD92jf/R8PQu14lt0aojeg2Mm9ECtsu6jidq6z6CaCc5E08a02e5rGxwnoG P+fTMng3FYVaSZoWrgWTbNYLZ8qD8poPce718zEtS1vuqJ0+XDK2TJRLVCYvfCeAkVcD K5TLrQqftO7C8gyVIBSjlxKg29XvaDkBoHTuiTXzweRMhRliDjYw12QAg9Nz7mgcqT4O 1ACA== 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 j11si23740170plb.253.2019.02.21.11.56.40; Thu, 21 Feb 2019 11:56:55 -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 S1726590AbfBUTy5 (ORCPT + 99 others); Thu, 21 Feb 2019 14:54:57 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:55000 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbfBUTy4 (ORCPT ); Thu, 21 Feb 2019 14:54:56 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R551e4;CH=green;DM=||false|;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_---0TKsBKHK_1550778890; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TKsBKHK_1550778890) by smtp.aliyun-inc.com(127.0.0.1); Fri, 22 Feb 2019 03:54:52 +0800 Subject: Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure To: =?UTF-8?B?56a56Iif6ZSu?= , Tejun Heo Cc: hannes@cmpxchg.org, corbet@lwn.net, cgroups@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1550278564-81540-1-git-send-email-yang.shi@linux.alibaba.com> <20190218210504.GT50184@devbig004.ftw2.facebook.com> From: Yang Shi Message-ID: <3edd7008-d568-f9b1-a991-bd0ee88f6c52@linux.alibaba.com> Date: Thu, 21 Feb 2019 11:54:46 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/19 2:45 AM, 禹舟键 wrote: > Hi TeJun > I've built the 5.0.0-rc6 kernel with psi option, but I cannot find any > cgroup.controllers when I mounted cgroup2. > > [root@bogon /]# uname -r > [root@bogon /]# 5.0.0-rc6+ > [root@bogon /]# mount -t cgroup2 none cgroup2/ > [root@bogon /]# cat cgroup2/cgroup.controllers > [root@bogon /] > [root@bogon /]# cat cgroup2/cgroup.subtree_control > [root@bogon /]# > > What's wrong with this kernel? Or maybe I lost some mount option? I'm not sure what you did before you mounted cgroup2, but if you have legacy controllers mounted, you have to unmount them, otherwise cgroup.controllers would show up as empty. Or you can pass "cgroup_no_v1=" in your kernel parameter. Yang > > Thanks > Yuzhoujian > > Tejun Heo 于2019年2月19日周二 上午10:32写道: >> On Sat, Feb 16, 2019 at 08:56:04AM +0800, Yang Shi wrote: >>> Since PSI has implemented some kind of measure of memory pressure, the >>> statement about lack of such measure is not true anymore. >>> >>> Cc: Tejun Heo >>> Cc: Johannes Weiner >>> Cc: Jonathan Corbet >>> Signed-off-by: Yang Shi >>> --- >>> Documentation/admin-guide/cgroup-v2.rst | 3 +-- >>> 1 file changed, 1 insertion(+), 2 deletions(-) >>> >>> diff --git a/Documentation/admin-guide/cgroup-v2.rst b/Documentation/admin-guide/cgroup-v2.rst >>> index 7bf3f12..9a92013 100644 >>> --- a/Documentation/admin-guide/cgroup-v2.rst >>> +++ b/Documentation/admin-guide/cgroup-v2.rst >>> @@ -1310,8 +1310,7 @@ network to a file can use all available memory but can also operate as >>> performant with a small amount of memory. A measure of memory >>> pressure - how much the workload is being impacted due to lack of >>> memory - is necessary to determine whether a workload needs more >>> -memory; unfortunately, memory pressure monitoring mechanism isn't >>> -implemented yet. >>> +memory. >> Maybe refer to PSI? >> >> Thanks. >> >> -- >> tejun