[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180307.101938.1130725153922128346.davem@davemloft.net>
Date: Wed, 07 Mar 2018 10:19:38 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: ktkhai@...tuozzo.com
Cc: avagin@...tuozzo.com, ebiederm@...ssion.com, fw@...len.de,
nicolas.dichtel@...nd.com, roman.kapl@...go.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: Make account struct net to memcg
From: Kirill Tkhai <ktkhai@...tuozzo.com>
Date: Thu, 01 Mar 2018 15:23:28 +0300
> The patch adds SLAB_ACCOUNT to flags of net_cachep cache,
> which enables accounting of struct net memory to memcg kmem.
> Since number of net_namespaces may be significant, user
> want to know, how much there were consumed, and control.
>
> Note, that we do not account net_generic to the same memcg,
> where net was accounted, moreover, we don't do this at all (*).
> We do not want the situation, when single memcg memory deficit
> prevents us to register new pernet_operations.
>
> (*)Even despite there is !current process accounting already
> available in linux-next. See kmalloc_memcg() there for the details.
>
> Signed-off-by: Kirill Tkhai <ktkhai@...tuozzo.com>
Applied, thank you.
Powered by blists - more mailing lists