memcg: revert kmem.tcp accounting
Subsystems (7)
RFC PATCH 1/1 memcg: revert kmem.tcp accounting
memory.kmem.tcp.limit_in_bytes works as the system-wide tcp_mem sysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.
Kernel memory usage of a memory cgroup can be limited by the kmem resource counter, so tcp buffers created by processes inside a container don't threaten to the whole system.
One might think that it could be useful to protect processes of a container against tcp growth inside a continaer, but that's also rather redundant. Memory cgroups can be nested one into another so the user of a container can isolate a potentially dangerous load by creating a container inside the container.
The system-wide sysctl was introduced very long time ago when cgroups hadn't been invented yet. If they had, probably there wouldn't be a reason to introduce tcp_mem at all. Anyway, we shouldn't have projected an abstraction like tcp_mem on cgroups.
So this patch reverts all the code doing kmem.tcp accounting and removes memory.kmem.tcp.* files from cgroup fs. Though it alters the memory.kmem user interface, I don't think it's critical, because the whole kmem is characterized as not working properly and being only useful for development/testing (see init/Kconfig) and therefore shouldn't be selected by most distributions.
--- Documentation/cgroups/memory.txt | 22 +-- include/linux/memcontrol.h | 13 -- include/net/sock.h | 272 -------------------------------------- include/net/tcp.h | 3 +- include/net/tcp_memcontrol.h | 7 - mm/memcontrol.c | 107 +-------------- net/core/sock.c | 120 ++++------------- net/ipv4/Makefile | 1 - net/ipv4/proc.c | 6 +- net/ipv4/sysctl_net_ipv4.c | 1 - net/ipv4/tcp.c | 3 +- net/ipv4/tcp_input.c | 12 +- net/ipv4/tcp_ipv4.c | 9 +- net/ipv4/tcp_memcontrol.c | 228 -------------------------------- net/ipv4/tcp_output.c | 2 +- net/ipv4/tcp_timer.c | 2 +- net/ipv6/tcp_ipv6.c | 4 - 17 files changed, 51 insertions(+), 761 deletions(-) delete mode 100644 include/net/tcp_memcontrol.h delete mode 100644 net/ipv4/tcp_memcontrol.c
Documentation/cgroups/memory.txt +5 -17
@@ -78,11 +78,6 @@ Brief summary of control files. memory.kmem.failcnt # show the number of kernel memory usage hits limits memory.kmem.max_usage_in_bytes # show max kernel memory usage recorded - memory.kmem.tcp.limit_in_bytes # set/show hard limit for tcp buf memory - memory.kmem.tcp.usage_in_bytes # show current tcp buf memory allocation - memory.kmem.tcp.failcnt # show the number of tcp buf memory usage hits limits - memory.kmem.tcp.max_usage_in_bytes # show max tcp buf memory usage recorded - 1. History The memory controller has a long history. A request for comments for the memory
@@ -292,12 +287,11 @@ is removed. The memory limitation itself, can of course be removed by writing -1 to memory.kmem.limit_in_bytes. In this case, kmem will be accounted, but not limited. -Kernel memory limits are not imposed for the root cgroup. Usage for the root -cgroup may or may not be accounted. The memory used is accumulated into -memory.kmem.usage_in_bytes, or in a separate counter when it makes sense. -(currently only for tcp). -The main "kmem" counter is fed into the main counter, so kmem charges will -also be visible from the user counter. +Kernel memory limits are not imposed for the root cgroup. The memory used is +accumulated into memory.kmem.usage_in_bytes. + +The kmem counter is fed into the main counter, so kmem charges will also be +visible from the user counter. Currently no soft limit is implemented for kernel memory. It is future work to trigger slab reclaim when those limits are reached.
@@ -315,12 +309,6 @@ skipped while the cache is being created. All objects in a slab page should belong to the same memcg. This only fails to hold when a task is migrated to a different memcg during the page allocation by the cache. -* sockets memory pressure: some sockets protocols have memory pressure -thresholds. The Memory Controller allows them to be controlled individually -per cgroup, instead of globally. - -* tcp memory pressure: sockets memory pressure for the tcp protocol. - 2.7.3 Common use cases Because the "kmem" counter is fed to the main user counter, kernel memory can
include/linux/memcontrol.h +0 -13
@@ -390,19 +390,6 @@ enum { OVER_LIMIT, }; -struct sock ; -#if defined(CONFIG_INET ) && defined(CONFIG_MEMCG_KMEM ) -void sock_update_memcg (struct sock *sk); -void sock_release_memcg (struct sock *sk); -#else -static inline void sock_update_memcg (struct sock *sk) -{ -} -static inline void sock_release_memcg (struct sock *sk) -{ -} -#endif /* CONFIG_INET && CONFIG_MEMCG_KMEM */ -#ifdef CONFIG_MEMCG_KMEM extern struct static_key memcg_kmem_enabled_key;
include/net/sock.h +0 -272
331 lines not on this page · raw message
include/net/tcp.h +1 -2
@@ -46,7 +46,6 @@#include <net/dst.h> #include <linux/seq_file.h> -#include <linux/memcontrol.h> extern struct inet_hashinfo tcp_hashinfo;
@@ -303,7 +302,7 @@ static inline bool between(__u32 seq1, __u32 seq2, __u32 seq3)static inline bool tcp_out_of_memory (struct sock *sk) {if (sk->sk_wmem_queued >SOCK_MIN_SNDBUF && -sk_memory_allocated (sk) >sk_prot_mem_limits (sk,2 )) +atomic_long_read (&tcp_memory_allocated) > sysctl_tcp_mem[2 ])return true;return false; }
include/net/tcp_memcontrol.h deleted +0 -7
@@ -1,7 +0,0 @@ -#ifndef _TCP_MEMCG_H -#define _TCP_MEMCG_H - -struct cg_proto *tcp_proto_cgroup (struct mem_cgroup *memcg); -int tcp_init_cgroup (struct mem_cgroup *memcg,struct cgroup_subsys *ss); -void tcp_destroy_cgroup (struct mem_cgroup *memcg); -#endif /* _TCP_MEMCG_H */
mm/memcontrol.c +5 -102
167 lines not on this page · raw message
net/core/sock.c +27 -93
214 lines not on this page · raw message
net/ipv4/Makefile +0 -1
@@ -52,7 +52,6 @@ obj-$(CONFIG_TCP_CONG_SCALABLE) += tcp_scalable.o obj-$(CONFIG_TCP_CONG_LP) += tcp_lp.o obj-$(CONFIG_TCP_CONG_YEAH) += tcp_yeah.o obj-$(CONFIG_TCP_CONG_ILLINOIS) += tcp_illinois.o -obj-$(CONFIG_MEMCG_KMEM) += tcp_memcontrol.o obj-$(CONFIG_NETLABEL) += cipso_ipv4.o obj-$(CONFIG_XFRM) += xfrm4_policy.o xfrm4_state.o xfrm4_input.o \
net/ipv4/proc.c +3 -3
@@ -57,17 +57,17 @@ static int sockstat_seq_show(struct seq_file *seq, void *v)local_bh_disable (); orphans =percpu_counter_sum_positive (&tcp_orphan_count); - sockets =proto_sockets_allocated_sum_positive (&tcp_prot); + sockets =percpu_counter_sum_positive (&tcp_sockets_allocated);local_bh_enable ();socket_seq_show (seq);seq_printf (seq,"TCP: inuse %d orphan %d tw %d alloc %d mem %ld\n" ,sock_prot_inuse_get (net, &tcp_prot), orphans, tcp_death_row.tw_count, sockets, -proto_memory_allocated (&tcp_prot)); +atomic_long_read (&tcp_memory_allocated));seq_printf (seq,"UDP: inuse %d mem %ld\n" ,sock_prot_inuse_get (net, &udp_prot), -proto_memory_allocated (&udp_prot)); +atomic_long_read (&udp_memory_allocated));seq_printf (seq,"UDPLITE: inuse %d\n" ,sock_prot_inuse_get (net, &udplite_prot)); seq_printf(seq, "RAW: inuse %d\n",
net/ipv4/sysctl_net_ipv4.c +0 -1
@@ -24,7 +24,6 @@#include <net/cipso_ipv4.h> #include <net/inet_frag.h> #include <net/ping.h> -#include <net/tcp_memcontrol.h> static int zero;static int one =1 ;
net/ipv4/tcp.c +1 -2
@@ -420,8 +420,7 @@ void tcp_init_sock(struct sock *sk) sk->sk_rcvbuf = sysctl_tcp_rmem[1 ];local_bh_disable (); -sock_update_memcg (sk); -sk_sockets_allocated_inc (sk); +percpu_counter_inc (&tcp_sockets_allocated);local_bh_enable (); }EXPORT_SYMBOL (tcp_init_sock);
net/ipv4/tcp_input.c +6 -6
@@ -347,7 +347,7 @@ static void tcp_grow_window(struct sock *sk, const struct sk_buff *skb)/* Check #1 */ if (tp->rcv_ssthresh < tp->window_clamp && (int )tp->rcv_ssthresh <tcp_space (sk) && - !sk_under_memory_pressure (sk)) { + !tcp_memory_pressure) {int incr;/* Check #2. Increase window, if skb with such overhead
@@ -434,8 +434,8 @@ static void tcp_clamp_window(struct sock *sk)if (sk->sk_rcvbuf < sysctl_tcp_rmem[2 ] && !(sk->sk_userlocks &SOCK_RCVBUF_LOCK ) && - !sk_under_memory_pressure (sk) && -sk_memory_allocated (sk) <sk_prot_mem_limits (sk,0 )) { + !tcp_memory_pressure && +atomic_long_read (&tcp_memory_allocated) < sysctl_tcp_mem[0 ]) { sk->sk_rcvbuf =min (atomic_read (&sk->sk_rmem_alloc), sysctl_tcp_rmem[2 ]); }
@@ -4676,7 +4676,7 @@ static int tcp_prune_queue(struct sock *sk)if (atomic_read (&sk->sk_rmem_alloc) >= sk->sk_rcvbuf)tcp_clamp_window (sk); -else if (sk_under_memory_pressure (sk)) +else if (tcp_memory_pressure) tp->rcv_ssthresh =min (tp->rcv_ssthresh,4U * tp->advmss);tcp_collapse_ofo_queue (sk);
@@ -4720,11 +4720,11 @@ static bool tcp_should_expand_sndbuf(const struct sock *sk)return false;/* If we are under global TCP memory pressure, do not expand. */ -if (sk_under_memory_pressure (sk)) +if (tcp_memory_pressure)return false;/* If we are under soft global TCP memory pressure, do not expand. */ -if (sk_memory_allocated (sk) >=sk_prot_mem_limits (sk,0 )) +if (atomic_long_read (&tcp_memory_allocated) >= sysctl_tcp_mem[0 ])return false;/* If we filled the congestion window, do not expand. */
net/ipv4/tcp_ipv4.c +1 -8
@@ -74,7 +74,6 @@#include <net/xfrm.h> #include <net/netdma.h> #include <net/secure_seq.h> -#include <net/tcp_memcontrol.h> #include <net/busy_poll.h> #include <linux/inet.h>
@@ -1858,8 +1857,7 @@ void tcp_v4_destroy_sock(struct sock *sk)/* If socket is aborted during connect operation */ tcp_free_fastopen_req (tp); -sk_sockets_allocated_dec (sk); -sock_release_memcg (sk); +percpu_counter_dec (&tcp_sockets_allocated); }EXPORT_SYMBOL (tcp_v4_destroy_sock);
@@ -2431,11 +2429,6 @@ struct proto tcp_prot = { .compat_setsockopt = compat_tcp_setsockopt, .compat_getsockopt = compat_tcp_getsockopt,#endif -#ifdef CONFIG_MEMCG_KMEM - .init_cgroup = tcp_init_cgroup, - .destroy_cgroup = tcp_destroy_cgroup, - .proto_cgroup = tcp_proto_cgroup, -#endif };EXPORT_SYMBOL (tcp_prot);
net/ipv4/tcp_memcontrol.c deleted +0 -228
228 lines not on this page · raw message
net/ipv4/tcp_output.c +1 -1
@@ -2265,7 +2265,7 @@ u32 __tcp_select_window(struct sock *sk)if (free_space < (full_space >>1 )) { icsk->icsk_ack.quick =0 ; -if (sk_under_memory_pressure (sk)) +if (tcp_memory_pressure) tp->rcv_ssthresh =min (tp->rcv_ssthresh,4U * tp->advmss);
net/ipv4/tcp_timer.c +1 -1
@@ -243,7 +243,7 @@ void tcp_delack_timer_handler(struct sock *sk) } out: -if (sk_under_memory_pressure (sk)) +if (tcp_memory_pressure)sk_mem_reclaim (sk); }
net/ipv6/tcp_ipv6.c +0 -4
@@ -62,7 +62,6 @@#include <net/netdma.h> #include <net/inet_common.h> #include <net/secure_seq.h> -#include <net/tcp_memcontrol.h> #include <net/busy_poll.h> #include <linux/proc_fs.h>
@@ -1889,9 +1888,6 @@ struct proto tcpv6_prot = { .compat_setsockopt = compat_tcp_setsockopt, .compat_getsockopt = compat_tcp_getsockopt, #endif -#ifdef CONFIG_MEMCG_KMEM - .proto_cgroup = tcp_proto_cgroup, -#endif .clear_sk = tcp_v6_clear_sk, };
Signature · 1 line
1.7.10.4
Quoted 5 lines · Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide
tcp_memsysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.
Parallels was the primary driver for this change. I haven't heard of anybody using the feature other than Parallels. I also remember there was a strong push for this feature before it was merged besides there were some complains at the time. I do not remember details (and I am one half way gone for the weekend now) so I do not have pointers to discussions.
I would love to get rid of the code and I am pretty sure that networking people would love this go even more. I didn't plan to provide kmem.tcp.* knobs for the cgroups v2 interface but getting rid of it altogether sounds even better. I am just not sure whether some additional users grown over time.
Nevertheless I am really curious. What has changed that Parallels is not interested in kmem.tcp anymore?
[...]
Anyway, more than welcome
In case we happened to grow more users, which I hope hasn't happened, we would need to keep this around at least with the legacy cgroups API.
Signature · 2 lines
Michal Hocko SUSE Labs
Tejun Heo
maintainerHello, guys.
Quoted 14 lines · Michal Hocko
Quoted 5 lines · Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide
tcp_memsysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.Parallels was the primary driver for this change. I haven't heard of anybody using the feature other than Parallels. I also remember there was a strong push for this feature before it was merged besides there were some complains at the time. I do not remember details (and I am one half way gone for the weekend now) so I do not have pointers to discussions.
Quoted 7 lines
I would love to get rid of the code and I am pretty sure that networking people would love this go even more. I didn't plan to provide kmem.tcp.* knobs for the cgroups v2 interface but getting rid of it altogether sounds even better. I am just not sure whether some additional users grown over time.
Nevertheless I am really curious. What has changed that Parallels is not interested in kmem.tcp anymore?
So, I'd love to see this happen too but I don't think we can do this. People use published interface. The usages might be utterly one-off and mental but let's please not underestimate the sometimes senseless creativity found in the wild. We simply can't remove a bunch of control knobs like this.
Thanks.
Signature · 7 lines
tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Andrew Morton
maintainerQuoted 25 lines · On Sat, 13 Sep 2014 02:55:16 +0900 Tejun Heo <[email protected]> wrote:
Hello, guys.
Quoted 14 lines · Michal Hocko
Quoted 5 lines · Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide
tcp_memsysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.Parallels was the primary driver for this change. I haven't heard of anybody using the feature other than Parallels. I also remember there was a strong push for this feature before it was merged besides there were some complains at the time. I do not remember details (and I am one half way gone for the weekend now) so I do not have pointers to discussions.
Quoted 7 lines
I would love to get rid of the code and I am pretty sure that networking people would love this go even more. I didn't plan to provide kmem.tcp.* knobs for the cgroups v2 interface but getting rid of it altogether sounds even better. I am just not sure whether some additional users grown over time.
Nevertheless I am really curious. What has changed that Parallels is not interested in kmem.tcp anymore?
Quoted 5 lines
So, I'd love to see this happen too but I don't think we can do this. People use published interface. The usages might be utterly one-off and mental but let's please not underestimate the sometimes senseless creativity found in the wild. We simply can't remove a bunch of control knobs like this.
17 files changed, 51 insertions(+), 761 deletions(-)
Sob.
Is there a convenient way of disabling the whole thing and adding a please-tell-us printk? If nobody tells us for a year or two then zap.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Hi Michal,
Quoted 14 lines · Michal Hocko
Quoted 5 lines · Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide
tcp_memsysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.Parallels was the primary driver for this change. I haven't heard of anybody using the feature other than Parallels. I also remember there was a strong push for this feature before it was merged besides there were some complains at the time. I do not remember details (and I am one half way gone for the weekend now) so I do not have pointers to discussions.
Quoted 7 lines
I would love to get rid of the code and I am pretty sure that networking people would love this go even more. I didn't plan to provide kmem.tcp.* knobs for the cgroups v2 interface but getting rid of it altogether sounds even better. I am just not sure whether some additional users grown over time.
Nevertheless I am really curious. What has changed that Parallels is not interested in kmem.tcp anymore?
In our product (OpenVZ) we have home-bred counters for many types of resources, but we stopped setting limits for most of them, including tcp buffers accounting, long time ago, and our customers don't set them either. In the next product release we are going to drop them all and use only mem, anon+swap, and kmem limits.
I don't know what was the reason to push this stuff, because I wasn't in it at that time. From what I read from comments to the patches I found it was something like the first step towards kmem accounting. However, if we had fully functioning kmem accounting there would be no point in this.
Quoted 5 lines
[...]
Anyway, more than welcome
Acked-by Michal Hocko <[email protected]>
Thank you.
Quoted 3 lines
In case we happened to grow more users, which I hope hasn't happened, we would need to keep this around at least with the legacy cgroups API.
The whole CONFIG_MEMCG_KMEM is marked as DON'T ENABLE IT, BECAUSE IT DOESN'T WORK (kudos to you). That's why I think we could probably close our eye to wailing users if any.
Thanks,
Vladimir
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Hi Tejun,
Quoted 25 lines · Tejun Heo
Hello, guys.
Quoted 14 lines · Michal Hocko
Quoted 5 lines · Vladimir Davydov
memory.kmem.tcp.limit_in_bytes works as the system-wide
tcp_memsysctl, but per memory cgroup. While the existence of the latter is justified (it prevents the system from becoming unusable due to uncontrolled tcp buffers growth) the reason why we need such a knob in containers isn't clear to me.Parallels was the primary driver for this change. I haven't heard of anybody using the feature other than Parallels. I also remember there was a strong push for this feature before it was merged besides there were some complains at the time. I do not remember details (and I am one half way gone for the weekend now) so I do not have pointers to discussions.
Quoted 7 lines
I would love to get rid of the code and I am pretty sure that networking people would love this go even more. I didn't plan to provide kmem.tcp.* knobs for the cgroups v2 interface but getting rid of it altogether sounds even better. I am just not sure whether some additional users grown over time.
Nevertheless I am really curious. What has changed that Parallels is not interested in kmem.tcp anymore?
Quoted 5 lines
So, I'd love to see this happen too but I don't think we can do this. People use published interface. The usages might be utterly one-off and mental but let's please not underestimate the sometimes senseless creativity found in the wild. We simply can't remove a bunch of control knobs like this.
We definitely can't remove something properly operating and widely used, but kmem limits are not working and never worked properly due to lack of kmem shrinkers, and furthermore CONFIG_MEMCG_KMEM, which tcp accounting is enabled by, is marked as UNDER DEVELOPMENT.
Thanks,
Vladimir
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Tejun Heo
maintainerHello, Vladimir.
Quoted 10 lines · Vladimir Davydov
Quoted 5 lines
So, I'd love to see this happen too but I don't think we can do this. People use published interface. The usages might be utterly one-off and mental but let's please not underestimate the sometimes senseless creativity found in the wild. We simply can't remove a bunch of control knobs like this.
We definitely can't remove something properly operating and widely used, but kmem limits are not working and never worked properly due to lack of kmem shrinkers, and furthermore
CONFIG_MEMCG_KMEM, which tcp accounting is enabled by, is marked as UNDER DEVELOPMENT.
I don't think marking config options as "UNDER DEVELOPMENT" in its help documentation means anything. It's a rather silly thing to do. Not many people pay much attention to the help texts and once somebody somewhere enabled the option for a distro, it's as free in the wild as any other kernel feature and CONFIG_MEMCG_KMEM is enabled by a lot of distros. The same goes with the "debug" controller. It doesn't mean much that it has "debug" in its name. Once it's out in the wild, there will be someone making use of it in some weird way.
If a debug feature has to be in the mainline kernel, the fact that it's a debug feature must be explicitly chosen in each use. IOW, gate it by an unwieldy boot param which makes it painfully clear that it's enabling an unstable debug feature and print out a loud warning message about it.
As it currently stands, CONFIG_MEMCG_KMEM is as good as any other enabled kernel option. The help text saying that it's experimental does not mean anything especially when it doesn't even depend on CONFIG_BROKEN.
So, the argument "the option was explained as experimental in help text" doesn't fly at all. We can still try to deprecate it gradually if the cleanup seems worthwhile; however, with v2 interface pending, I'm not sure how meaningful that'd be. We'd have to carry quite a bit of v1 code around anyway and I'd like to keep v1 interface as static as possible. No reason to shake that at this point.
Thanks.
Signature · 7 lines
tejun -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Tejun Heo
maintainerHello, Andrew.
Quoted 6 lines · Andrew Morton
17 files changed, 51 insertions(+), 761 deletions(-)Sob.
Is there a convenient way of disabling the whole thing and adding a please-tell-us printk? If nobody tells us for a year or two then zap.
Given that we're in the process of implementing the v2 interface, I don't think it'd be wise to perturb v1 interface at this point. We're gonna have to carry around v1 code for quite some time anyway and I don't think carrying the tcp code would make whole lot of difference given that the code is likely to stay static from now on.
Thanks.
Signature · 1 line
tejun
Quoted 20 lines · Tejun Heo
I don't think marking config options as "UNDER DEVELOPMENT" in its help documentation means anything. It's a rather silly thing to do. Not many people pay much attention to the help texts and once somebody somewhere enabled the option for a distro, it's as free in the wild as any other kernel feature and
CONFIG_MEMCG_KMEMis enabled by a lot of distros. The same goes with the "debug" controller. It doesn't mean much that it has "debug" in its name. Once it's out in the wild, there will be someone making use of it in some weird way.If a debug feature has to be in the mainline kernel, the fact that it's a debug feature must be explicitly chosen in each use. IOW, gate it by an unwieldy boot param which makes it painfully clear that it's enabling an unstable debug feature and print out a loud warning message about it.
As it currently stands,
CONFIG_MEMCG_KMEMis as good as any other enabled kernel option. The help text saying that it's experimental does not mean anything especially when it doesn't even depend onCONFIG_BROKEN.
Quoted 6 lines
So, the argument "the option was explained as experimental in help text" doesn't fly at all. We can still try to deprecate it gradually if the cleanup seems worthwhile; however, with v2 interface pending, I'm not sure how meaningful that'd be. We'd have to carry quite a bit of v1 code around anyway and I'd like to keep v1 interface as static as possible. No reason to shake that at this point.
Fair enough, thank you for the clarification. I hope we'll be able to get rid of it in a year or two when cgroup v2 becomes stable.
Thanks,
Vladimir
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>