All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.cz>
To: Vladimir Davydov <vdavydov@parallels.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, cgroups@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH] Documentation/memcg: update memcg/kmem status
Date: Tue, 7 Apr 2015 17:13:58 +0200	[thread overview]
Message-ID: <20150407151358.GB8123@dhcp22.suse.cz> (raw)
In-Reply-To: <1427898636-4505-1-git-send-email-vdavydov@parallels.com>

On Wed 01-04-15 17:30:36, Vladimir Davydov wrote:
> Memcg/kmem reclaim support has been finally merged. Reflect this in the
> documentation.
> 
> Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>

Acked-by: Michal Hocko <mhocko@suse.cz>

> ---
>  Documentation/cgroups/memory.txt |    8 +++-----
>  init/Kconfig                     |    6 ------
>  2 files changed, 3 insertions(+), 11 deletions(-)
> 
> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
> index a22df3ad35ff..f456b4315e86 100644
> --- a/Documentation/cgroups/memory.txt
> +++ b/Documentation/cgroups/memory.txt
> @@ -275,11 +275,6 @@ When oom event notifier is registered, event will be delivered.
>  
>  2.7 Kernel Memory Extension (CONFIG_MEMCG_KMEM)
>  
> -WARNING: Current implementation lacks reclaim support. That means allocation
> -	 attempts will fail when close to the limit even if there are plenty of
> -	 kmem available for reclaim. That makes this option unusable in real
> -	 life so DO NOT SELECT IT unless for development purposes.
> -
>  With the Kernel memory extension, the Memory Controller is able to limit
>  the amount of kernel memory used by the system. Kernel memory is fundamentally
>  different than user memory, since it can't be swapped out, which makes it
> @@ -345,6 +340,9 @@ set:
>      In this case, the admin could set up K so that the sum of all groups is
>      never greater than the total memory, and freely set U at the cost of his
>      QoS.
> +    WARNING: In the current implementation, memory reclaim will NOT be
> +    triggered for a cgroup when it hits K while staying below U, which makes
> +    this setup impractical.
>  
>      U != 0, K >= U:
>      Since kmem charges will also be fed to the user counter and reclaim will be
> diff --git a/init/Kconfig b/init/Kconfig
> index 7766b500f679..caffca37ccb7 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -1059,12 +1059,6 @@ config MEMCG_KMEM
>  	  the kmem extension can use it to guarantee that no group of processes
>  	  will ever exhaust kernel resources alone.
>  
> -	  WARNING: Current implementation lacks reclaim support. That means
> -	  allocation attempts will fail when close to the limit even if there
> -	  are plenty of kmem available for reclaim. That makes this option
> -	  unusable in real life so DO NOT SELECT IT unless for development
> -	  purposes.
> -
>  config CGROUP_HUGETLB
>  	bool "HugeTLB Resource Controller for Control Groups"
>  	depends on HUGETLB_PAGE
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe cgroups" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Michal Hocko
SUSE Labs

WARNING: multiple messages have this Message-ID (diff)
From: Michal Hocko <mhocko@suse.cz>
To: Vladimir Davydov <vdavydov@parallels.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, cgroups@vger.kernel.org,
	linux-kernel@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>
Subject: Re: [PATCH] Documentation/memcg: update memcg/kmem status
Date: Tue, 7 Apr 2015 17:13:58 +0200	[thread overview]
Message-ID: <20150407151358.GB8123@dhcp22.suse.cz> (raw)
In-Reply-To: <1427898636-4505-1-git-send-email-vdavydov@parallels.com>

On Wed 01-04-15 17:30:36, Vladimir Davydov wrote:
> Memcg/kmem reclaim support has been finally merged. Reflect this in the
> documentation.
> 
> Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>

Acked-by: Michal Hocko <mhocko@suse.cz>

> ---
>  Documentation/cgroups/memory.txt |    8 +++-----
>  init/Kconfig                     |    6 ------
>  2 files changed, 3 insertions(+), 11 deletions(-)
> 
> diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt
> index a22df3ad35ff..f456b4315e86 100644
> --- a/Documentation/cgroups/memory.txt
> +++ b/Documentation/cgroups/memory.txt
> @@ -275,11 +275,6 @@ When oom event notifier is registered, event will be delivered.
>  
>  2.7 Kernel Memory Extension (CONFIG_MEMCG_KMEM)
>  
> -WARNING: Current implementation lacks reclaim support. That means allocation
> -	 attempts will fail when close to the limit even if there are plenty of
> -	 kmem available for reclaim. That makes this option unusable in real
> -	 life so DO NOT SELECT IT unless for development purposes.
> -
>  With the Kernel memory extension, the Memory Controller is able to limit
>  the amount of kernel memory used by the system. Kernel memory is fundamentally
>  different than user memory, since it can't be swapped out, which makes it
> @@ -345,6 +340,9 @@ set:
>      In this case, the admin could set up K so that the sum of all groups is
>      never greater than the total memory, and freely set U at the cost of his
>      QoS.
> +    WARNING: In the current implementation, memory reclaim will NOT be
> +    triggered for a cgroup when it hits K while staying below U, which makes
> +    this setup impractical.
>  
>      U != 0, K >= U:
>      Since kmem charges will also be fed to the user counter and reclaim will be
> diff --git a/init/Kconfig b/init/Kconfig
> index 7766b500f679..caffca37ccb7 100644
> --- a/init/Kconfig
> +++ b/init/Kconfig
> @@ -1059,12 +1059,6 @@ config MEMCG_KMEM
>  	  the kmem extension can use it to guarantee that no group of processes
>  	  will ever exhaust kernel resources alone.
>  
> -	  WARNING: Current implementation lacks reclaim support. That means
> -	  allocation attempts will fail when close to the limit even if there
> -	  are plenty of kmem available for reclaim. That makes this option
> -	  unusable in real life so DO NOT SELECT IT unless for development
> -	  purposes.
> -
>  config CGROUP_HUGETLB
>  	bool "HugeTLB Resource Controller for Control Groups"
>  	depends on HUGETLB_PAGE
> -- 
> 1.7.10.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe cgroups" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  parent reply	other threads:[~2015-04-07 15:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-01 14:30 [PATCH] Documentation/memcg: update memcg/kmem status Vladimir Davydov
2015-04-01 14:30 ` Vladimir Davydov
2015-04-01 14:44 ` Jonathan Corbet
2015-04-01 14:44   ` Jonathan Corbet
2015-04-01 14:44   ` Jonathan Corbet
2015-04-01 15:17   ` Vladimir Davydov
2015-04-01 15:17     ` Vladimir Davydov
2015-04-01 15:17     ` Vladimir Davydov
2015-04-04 13:29     ` Jonathan Corbet
2015-04-04 13:29       ` Jonathan Corbet
2015-04-07 15:13 ` Michal Hocko [this message]
2015-04-07 15:13   ` Michal Hocko
2015-04-11 13:24 ` Jonathan Corbet
2015-04-11 13:24   ` Jonathan Corbet
2015-04-11 13:24   ` Jonathan Corbet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150407151358.GB8123@dhcp22.suse.cz \
    --to=mhocko@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=cgroups@vger.kernel.org \
    --cc=corbet@lwn.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=vdavydov@parallels.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.