On Thu 22-10-15 00:21:33, Johannes Weiner wrote: > Socket memory can be a significant share of overall memory consumed by > common workloads. In order to provide reasonable resource isolation > out-of-the-box in the unified hierarchy, this type of memory needs to > be accounted and tracked per default in the memory controller. What about users who do not want to pay an additional overhead for the accounting? How can they disable it? > Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> [...] > @@ -5453,10 +5470,9 @@ void mem_cgroup_replace_page(struct page *oldpage, struct page *newpage) > commit_charge(newpage, memcg, true); > } > > -/* Writing them here to avoid exposing memcg's inner layout */ > -#if defined(CONFIG_INET) && defined(CONFIG_MEMCG_KMEM) > +#ifdef CONFIG_INET > > -DEFINE_STATIC_KEY_FALSE(mem_cgroup_sockets); > +DEFINE_STATIC_KEY_TRUE(mem_cgroup_sockets); AFAIU this means that the jump label is enabled by default. Is this intended when you enable it explicitly where needed? > > void sock_update_memcg(struct sock *sk) > { -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>