Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp372261pxj; Fri, 7 May 2021 10:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLOET7T4Jp2iiFmD4LZ0YE2wHkFAEPHFXOhdRsMXgXgs+AjZGclNFBIqO6ahsZYmtVlM1M X-Received: by 2002:a17:90b:34b:: with SMTP id fh11mr3468800pjb.29.1620408307368; Fri, 07 May 2021 10:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620408307; cv=none; d=google.com; s=arc-20160816; b=g8IzAJJ0T8LAfp3b06P72HckCpgYpUsg5dYDM1BfDA06PrTQiUO7qEs/UbhVQmhTlF 50jAtZEUrxP2TXFdEZ7P7jKOgKYa243BetUHUgca5Z2klhiNcOGZeqAiX4nY31xv7LzT cO6MpSx0vwzqxjGWwUTDHQlAUE0OiRQN530lZvaSDxQXylwXw0Frwsrtqm5BsDONZXX2 5Tr1/A1uoZ+aaY5S89DcnvHzX0uXSR2aDijiXxdj8I0quGBgl6sftmveoXNTc7m9YIrj gnv/YvtqkwlCmSNblIrvF1XUNtlZESQLvGDZeqE/Zf7JYqrVo8L36Tu8YdFx9amTJSy6 fugw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=TuCIj9jP+m2XeL3iEsZg+Mde6JcdUPxGqs5sCzsAxbQ=; b=u2JeqPFn/S9zJs7sUiG+DaHE5SIhrUCipBOYp7kXb2BYJxlOMXmn4BAAainSYXSnPC 42BBm0hEEIuQ0plItbWUT8+9BxwnSfYRC9BWWDx7w1xlWCbPM9ogzB11gFm5KSSOb+M+ xxA+HZ+GokvflYFDY1UQnSAOzYdtYwu5+oLVo5D4PtwJe2kV8dc/HlGPL4Tu2CeRZfIX uhXHL9FH8+HO8ThdbV6PqwFIuzI4XUeJgdmHePA82Q3/9yPI2nhNdWJwT+ez99OBujBR MjC/SD0LPdBWyCCxv/mZwLuxIjMXb0HsaiMHQBqNCZnicumO1rYxSu/xpzon34V9CJ+g 9gRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si7518623pfk.166.2021.05.07.10.24.54; Fri, 07 May 2021 10:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237741AbhEGPEW (ORCPT + 99 others); Fri, 7 May 2021 11:04:22 -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