linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure
@ 2019-02-16  0:56 Yang Shi
  2019-02-18 21:05 ` Tejun Heo
  0 siblings, 1 reply; 5+ messages in thread
From: Yang Shi @ 2019-02-16  0:56 UTC (permalink / raw)
  To: tj, hannes, corbet; +Cc: yang.shi, cgroups, linux-mm, linux-kernel

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 <tj@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
---
 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.
 
 
 Memory Ownership
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure
  2019-02-16  0:56 [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure Yang Shi
@ 2019-02-18 21:05 ` Tejun Heo
  2019-02-19 10:45   ` 禹舟键
  2019-02-19 16:47   ` Yang Shi
  0 siblings, 2 replies; 5+ messages in thread
From: Tejun Heo @ 2019-02-18 21:05 UTC (permalink / raw)
  To: Yang Shi; +Cc: hannes, corbet, cgroups, linux-mm, linux-kernel

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 <tj@kernel.org>
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Cc: Jonathan Corbet <corbet@lwn.net>
> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
> ---
>  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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure
  2019-02-18 21:05 ` Tejun Heo
@ 2019-02-19 10:45   ` 禹舟键
  2019-02-21 19:54     ` Yang Shi
  2019-02-19 16:47   ` Yang Shi
  1 sibling, 1 reply; 5+ messages in thread
From: 禹舟键 @ 2019-02-19 10:45 UTC (permalink / raw)
  To: Tejun Heo; +Cc: Yang Shi, hannes, corbet, cgroups, linux-mm, linux-kernel

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?

Thanks
Yuzhoujian

Tejun Heo <tj@kernel.org> 于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 <tj@kernel.org>
> > Cc: Johannes Weiner <hannes@cmpxchg.org>
> > Cc: Jonathan Corbet <corbet@lwn.net>
> > Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
> > ---
> >  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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure
  2019-02-18 21:05 ` Tejun Heo
  2019-02-19 10:45   ` 禹舟键
@ 2019-02-19 16:47   ` Yang Shi
  1 sibling, 0 replies; 5+ messages in thread
From: Yang Shi @ 2019-02-19 16:47 UTC (permalink / raw)
  To: Tejun Heo; +Cc: hannes, corbet, cgroups, linux-mm, linux-kernel



On 2/18/19 1:05 PM, Tejun Heo wrote:
> 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 <tj@kernel.org>
>> Cc: Johannes Weiner <hannes@cmpxchg.org>
>> Cc: Jonathan Corbet <corbet@lwn.net>
>> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
>> ---
>>   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?

I thought so too, but the above "memory.pressure" has already referred 
to PSI. So, I was not sure if we should duplicate PSI information.

Thanks,
Yang

>
> Thanks.
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure
  2019-02-19 10:45   ` 禹舟键
@ 2019-02-21 19:54     ` Yang Shi
  0 siblings, 0 replies; 5+ messages in thread
From: Yang Shi @ 2019-02-21 19:54 UTC (permalink / raw)
  To: 禹舟键, Tejun Heo
  Cc: hannes, corbet, cgroups, linux-mm, linux-kernel



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 <tj@kernel.org> 于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 <tj@kernel.org>
>>> Cc: Johannes Weiner <hannes@cmpxchg.org>
>>> Cc: Jonathan Corbet <corbet@lwn.net>
>>> Signed-off-by: Yang Shi <yang.shi@linux.alibaba.com>
>>> ---
>>>   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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-21 19:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-16  0:56 [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure Yang Shi
2019-02-18 21:05 ` Tejun Heo
2019-02-19 10:45   ` 禹舟键
2019-02-21 19:54     ` Yang Shi
2019-02-19 16:47   ` Yang Shi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).