Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3628999iob; Sat, 7 May 2022 10:11:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz51b//CanDj2djE3ReESBsyNtt5Q4KwpKyHQBaPpb4yFDXMDFvTIOJtR5c7cLYjvuL/WQw X-Received: by 2002:a17:902:f789:b0:14e:ebbc:264b with SMTP id q9-20020a170902f78900b0014eebbc264bmr8648850pln.169.1651943518635; Sat, 07 May 2022 10:11:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651943518; cv=none; d=google.com; s=arc-20160816; b=borW6ASFN3sbkCyNc9UhX2Wum/u9qEX23Z8AvteO2uSwIMN7eT/BuoWMEPEpvbv+96 1mnCc6SqairIhjr2aLEOBrbvCkDa0+lj9xKho2qJIWvvZ60K27JVwk5mbF/oxggfi24Q 21TxnAWBWTK+G/7fGrZ3q21/VTHx6suw94WVAHYWlq5Y3clUFr5mHbAQpHakHOskWLpR O6zjOw7pqgzfSH/9C6qb9tCIo1kEAakVHpgLP5rhte4SC1k6d4v9Zjtc2LELiYRqICnn EmgbwHj3mlZcdcRwn2tc8oBzJwwWcjYio0TOoBXKg5ZFonkB9Gwp2opQMDIcLHh04TP7 PwUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=neMPFG+EJu9meHI+55j8YMv/oCYAgoVwFVz5n10cpKc=; b=lAp6cnL2ZtZBQlh2L7jRC95MNx9O+4o9NOtP+OckpMil47NBZ2dc8C/mlX7VZx8nbY UX3tqDrD91pdrBe5ipkrVnIdmKlnjdmEKUradAVx9VbzJ1tKoaMC7e4smUxup8cEeIyC mD06qGkk+Nv18N2BG2/v17tw1CH2l2VlNPD3T79wIy4houkwUzPVkbipbpHumrrk/6eo TssC0LGRjOXIxOnitCUX5z69bbA2TGm9JG7lb9DRjX8JQUxCV3T2ETesX3ZZnKKvrQ+G gSOKPq6toG6tZ/cyfGvSMyTRyLp4MoI/V3MCd16Evvc00tkc2bmoib6Uo612iajbKboN aNBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OINEX8NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a170902dac500b00153ff064711si7013829plx.144.2022.05.07.10.11.41; Sat, 07 May 2022 10:11:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OINEX8NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241772AbiEEDx7 (ORCPT + 99 others); Wed, 4 May 2022 23:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241715AbiEEDxx (ORCPT ); Wed, 4 May 2022 23:53:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 904FFDA9; Wed, 4 May 2022 20:50:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D0AA861977; Thu, 5 May 2022 03:50:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 27EECC385B1; Thu, 5 May 2022 03:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651722614; bh=4dZ1A8x6z9o0xBW3mvbt9kERx1ptdza+ot3uRKX85RI=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=OINEX8NI+m2lY6VcIdMmGXP5yNQYrvaFkv7urohtnNjDBW0aWA+cj6gG+BBc3i1GP FFN88R4csBepant6j0jIZPS3L2NiKKB1HBgOdzVeRPzqIRNEE+aeg1vtdDrWPifriN hfKLpxlHiCYT8Con3AUFMziOpsTSmUeAazo06Glp+BItdUaBuBTgQXcDP+PYlbfLVF h9ikV4IJDCk38DKh3XhfBTrgKcB8OVioOP7LDWdflpEf8i/bCAN2kxXpG1jXCPt1oe jS2rolX5yyJnw11AMUXwgrrpv1D8rpnkjzLHrKXTBJQaugOHIUlPwY6Hbksz0VQEV2 kvXTYPvWU3wgQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 07962F03877; Thu, 5 May 2022 03:50:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH memcg v2] memcg: accounting for objects allocated for new netdevice From: patchwork-bot+netdevbpf@kernel.org Message-Id: <165172261402.3043.8768888843456379249.git-patchwork-notify@kernel.org> Date: Thu, 05 May 2022 03:50:14 +0000 References: <354a0a5f-9ec3-a25c-3215-304eab2157bc@openvz.org> In-Reply-To: <354a0a5f-9ec3-a25c-3215-304eab2157bc@openvz.org> To: Vasily Averin Cc: shakeelb@google.com, kernel@openvz.org, fw@strlen.de, linux-kernel@vger.kernel.org, roman.gushchin@linux.dev, vbabka@suse.cz, mhocko@suse.com, cgroups@vger.kernel.org, netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, mcgrof@kernel.org, keescook@chromium.org, yzaikin@google.com, linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net-next.git (master) by Jakub Kicinski : On Mon, 2 May 2022 15:15:51 +0300 you wrote: > Creating a new netdevice allocates at least ~50Kb of memory for various > kernel objects, but only ~5Kb of them are accounted to memcg. As a result, > creating an unlimited number of netdevice inside a memcg-limited container > does not fall within memcg restrictions, consumes a significant part > of the host's memory, can cause global OOM and lead to random kills of > host processes. > > [...] Here is the summary with links: - [memcg,v2] memcg: accounting for objects allocated for new netdevice https://git.kernel.org/netdev/net-next/c/425b9c7f51c9 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html