From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D05FC433B4 for ; Fri, 7 May 2021 15:03:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 01FD361456 for ; Fri, 7 May 2021 15:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237756AbhEGPE3 (ORCPT ); Fri, 7 May 2021 11:04:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:36380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234872AbhEGPEU (ORCPT ); Fri, 7 May 2021 11:04:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6E9561006; Fri, 7 May 2021 15:03:15 +0000 (UTC) Date: Fri, 7 May 2021 17:03:12 +0200 From: Christian Brauner To: Vasily Averin Cc: cgroups@vger.kernel.org, Michal Hocko , Shakeel Butt , Johannes Weiner , Vladimir Davydov , Roman Gushchin , Alexander Viro , Tejun Heo , Andrew Morton , Zefan Li , Thomas Gleixner , Kirill Tkhai , Serge Hallyn , Andrei Vagin , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 07/16] memcg: enable accounting for new namesapces and struct nsproxy Message-ID: <20210507150312.pb4wnxyfw3nwl4yi@wittgenstein> References: <8664122a-99d3-7199-869a-781b21b7e712@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 09:52:43AM +0300, Vasily Averin wrote: > Container admin can create new namespaces and force kernel to allocate > up to several pages of memory for the namespaces and its associated > structures. > Net and uts namespaces have enabled accounting for such allocations. > It makes sense to account for rest ones to restrict the host's memory > consumption from inside the memcg-limited container. > > Signed-off-by: Vasily Averin > --- Serge's ack reminded me of this. Looks good if the mm folks are fine with this too, Acked-by: Christian Brauner