From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vasily Averin Subject: Re: [PATCH v2 0/8] memcg accounting from OpenVZ Date: Tue, 16 Mar 2021 10:15:53 +0300 Message-ID: References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V2vqutNe7RuTTHI8szTkw0BwnWOR+xhpcQjCXW9KaLA=; b=IXmCOcacksnTBmA1LNgeBIqZcEzDoGdh/VhA01Y91vRxsAcTs/RILzCimDs3nfQ6H8wENqkAtvgPnlDK7hTrEdfAlAKOHwCSvRW8Ic1gLQQ4UBcuRYc7oUAQNwUlR1QbwB+NZDhCehulIL9mllOAJvRlVSUdNr1ur2cyXL0be64= In-Reply-To: Content-Language: en-US List-ID: Content-Type: text/plain; charset="us-ascii" To: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Michal Hocko , Shakeel Butt , Roman Gushchin Michal, Shakeel, Roman, thank you very much for your help. On 3/15/21 3:22 PM, Vasily Averin wrote: > OpenVZ used own accounting subsystem since 2001 (i.e. since v2.2.x linux kernels) > and we have accounted all required kernel objects by using our own patches. > When memcg was added to upstream Vladimir Davydov added accounting of some objects > to upstream but did not skipped another ones. > Now OpenVZ uses RHEL7-based kernels with cgroup v1 in production, and we still account > "skipped" objects by our own patches just because we accounted such objects before. > We're working on rebase to new kernels and we prefer to push our old patches to upstream. > > v2: > - squashed old patch 1 "accounting for allocations called with disabled BH" > with old patch 2 "accounting for fib6_nodes cache" used such kind of memory allocation > - improved patch description > - subsystem maintainers added to cc: > > Vasily Averin (8): > memcg: accounting for fib6_nodes cache > memcg: accounting for ip6_dst_cache > memcg: accounting for fib_rules > memcg: accounting for ip_fib caches > memcg: accounting for fasync_cache > memcg: accounting for mnt_cache entries > memcg: accounting for tty_struct objects > memcg: accounting for ldt_struct objects > > arch/x86/kernel/ldt.c | 7 ++++--- > drivers/tty/tty_io.c | 4 ++-- > fs/fcntl.c | 3 ++- > fs/namespace.c | 5 +++-- > mm/memcontrol.c | 2 +- > net/core/fib_rules.c | 4 ++-- > net/ipv4/fib_trie.c | 4 ++-- > net/ipv6/ip6_fib.c | 2 +- > net/ipv6/route.c | 2 +- > 9 files changed, 18 insertions(+), 15 deletions(-) >