Article View: linux.kernel.netdev
Article #8975Re: [PATCH net v2] net/packet: account user-triggered allocations to memcg
From: Willem de Bruijn
Date: Fri, 30 Oct 2026 17:08
Date: Fri, 30 Oct 2026 17:08
12 lines
11597 bytes
11597 bytes
Ahmad AG wrote: > Thanks. I will send a v3 to net-next, without the Fixes and stable > tags, keeping the allocations that scale with user input (ring > buffers, fanout array, membership entries) and leaving the small > fixed-size per-socket ones such as the rollover state alone. I will > add __GFP_NOWARN to the vmalloc fallback. Just be careful that net-next is closed. It makes sense to send this to net, just probably not stable material.
Technical Details
Message-ID:
<willemdebruijn.kernel.2ea2182d344a4@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353857-linux-kernel-netdev=dewy.ruReferences:
<20261030100504.23498-1-ahmadag1001@gmail.com> <willemdebruijn.kernel.2e53c121ad9ea@gmail.com> <CAASqGyYfFwZizof-O+Bn3_H85sEFytVr9GapOVQsW9miVa+Zsg@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353857-linux-kernel-netdev=dewy.ru
From: willemdebruijn.kernel@gmail.com (Willem de Bruijn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] net/packet: account user-triggered allocations to
memcg
Date: Fri, 30 Oct 2026 13:08:15 -0400
Organization: Usenet Network
Message-ID: <willemdebruijn.kernel.2ea2182d344a4@gmail.com>
References: <20261030100504.23498-1-ahmadag1001@gmail.com>
<willemdebruijn.kernel.2e53c121ad9ea@gmail.com>
<CAASqGyYfFwZizof-O+Bn3_H85sEFytVr9GapOVQsW9miVa+Zsg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2281240"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Z+gEoP2rSLb1f57D3ee7mI6Tm5o= sha256:P8ZlpXUPT/UILd9oOm3oD+HoIBNGP+exdO0pTVckEiE=
sha1:xh0bq5BjgTsqrDKSBVXZscTE88c= sha256:yKuPazvssvIk2K4QPIbPK1sTTTyqwgNBWg2/2Hbui5I=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id EA913125CA5; Fri, 30 Oct 2026 20:10:16 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id JCnEfdpqVjZp;
Fri, 30 Oct 2026 20:10:12 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353857-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 4C49E125CA4; Fri, 30 Oct 2026 20:10:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 40E6C2A6F3; Fri, 30 Oct 2026 17:08:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793380109;
b=MmzNJAZIlXVTrExflUDmYZY4yG0KOoWNzREh1VomO0tqIKjFe4Mz2wJ7qiSjVgPoj/zU
cn64teTHf+XMYATuJs1z83tER9mtrKr+hPD49PVNOIRXe9uIqmGQCQTqpc5BMqaf2Zi7Y
wIN6VxNsaDwINx81MT8yftE4boE1FWAKmQSje4NYdGTfLTuxnzYHeLx5pqveUDE2tezNH
JHdGot3T9EDlJtUyIgyfQ3v15i+HcYu8Zo6Y/66IrYPnDOE/yE1QAx4tIZt+vAlRrfvcS
TTpUJCWb3UIVckGxSZJRSSyxKi/JVnsMi1GWbqM9YZ/JcDLs6lOSlFDNRcygBcnFgXw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793380109;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Message-ID:In-Reply-To:
References:Subject:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Type:Content-Transfer-Encoding;
bh=UJQFo6lBsRxUZVqaTAfTugCYtH9lDVXLbR2YaM1dQaQ=;
b=FywgQuc2kyfyCHYpbSvleQXLwc9C+OLTqXGYNzXkgzLTeAVm8rBxqqs7sEQH+GPI9cY4
VpM+GSQmBUKhUOK1fx8SLqgRCiGCclgZ2Uvmzl4i1IbVn6P8jjnH3VVxUjL4zPKyLlG0F
Bed04wekmFx22OtOXRlho3/RckKp5bJet11fjBNpoSNbcMd48MDP8Sthlho89pkIMedc8
ES5fFHxn1IdE5GMO+iBZcVnfg1tZyd1loHqsgPltJ/rFWsBm9UR0YxRGzeWm5SgER5DTD
x9pE9XH8YEeekYbcU5DpOZ6b9C57Ydp5VoUMS7oXjDuEm0Ec247m4kM24OxvQpi7KAw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PtFuYrJH;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 16208606A31F;
Fri, 30 Oct 2026 17:08:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PtFuYrJH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793380098;
b=fGtlbndW3lO0Y7f5bPcMQNjvGJUfhZsaIRPP5FNlldX85O+Zo1JSR2nNjjlO24WvTs+q
3ag4KbPg3tKVo58q1UPH4IFMBccI25jzsSXms6/XQMfDU2HmvePsfPdt7fy9KlY31lZ9o
eHlwcTGDuo2H/SqYTV6jJACD7WfRBTzTiDO73iJZoqEo1jMi3kTf48Nbw5XgdI4WWNbD+
lYYIbqEQvk5jvNJ4JiJGWWQHIzPKRXSpepwfMgqS9qw/8esdo17QXmA6OYK9kVl/OlhHj
fZx3HbTctxHeBLAQmpDhz1jJAaGadTnTZIs0kzli26aJCassfB9oPOHVQNUXY3rzF4g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793380098;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:
MIME-Version:Content-Type:Content-Transfer-Encoding;
bh=UJQFo6lBsRxUZVqaTAfTugCYtH9lDVXLbR2YaM1dQaQ=;
b=XjXWByTs99gF5fJaGtiUwtotNIDdU/+PQzGCcyeILadYtwSUux+ML6sP/XIOt7pTzFBX
k42ln+TDRrYAh+K/8PJxkbx1an1gg3jy1uRRy+4iqtyfJ0aBfedo8skDsMOscMhvnkNZj
CCiwjy8l3nWxfilHTl5ITbxzRAV3hmikItKw8a+poFeCrrqpD6Q3MLWBtYS8O6trTNd/k
D7vnwTPzhr372Ztmk7UzbYDBN9v42+xt/iRwfy/0XGfgVbwLpRxr9I/CFvF62qFNZbCHG
960n6glCLZ6h0GLJMO9pZRrqxRgxyIjq9kxSnwxZpB4nHgJFV9ewUnA2Xxb2Edsn6Pw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PtFuYrJH;
arc=none smtp.remote-ip=209.85.222.54
X-Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9DEA606A322
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 17:08:17 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D9DEA606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-99061e2171cso244248241.2
for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 10:08:17 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793380097; x=1793984897; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:mime-version:subject
:references:in-reply-to:message-id:cc:to:from:date:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=UJQFo6lBsRxUZVqaTAfTugCYtH9lDVXLbR2YaM1dQaQ=;
b=PtFuYrJHVVjxsD3+QnaSsedFWNS4nLWLqgvQv9apD0CYg5eNqRuNk6eZI0jdSZ6Q8/
SBwnmkPqnWIk//ri5tKsgwcIul7GOTra7xsgHbKxGtHZZ1hxyVA38OX9DMfgbypyckWj
2g68t60m9Mg4vbUOrIyMhhks2iiLLoNgOaadCYN/QGP6Q7p5jK0Mf2mxgu2eyD/S3SjR
pcF/3efkDIquTT4hk1qE/3q9Hts+Gic2hBNKmagf47naDwa5XKie4fsfnogh80rCo71W
6lcflru1iV7jjyM/TKK/ITzoZTgmQUugv/sRQYeidVrpm6ger3hXQYcP3e1Wmp2emTZh
DDdg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793380097; x=1793984897;
h=content-transfer-encoding:content-type:mime-version:subject
:references:in-reply-to:message-id:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=UJQFo6lBsRxUZVqaTAfTugCYtH9lDVXLbR2YaM1dQaQ=;
b=lBc0+TqDnMrOBQw7KzuoAv5lOTFhrBYYi4JuzYVEltx3a5pHvh5xErShB7d/5M1KRj
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Tts/+5+zmxATcXRnP9hNvcnOyHqGP+QAgIW1y+2uq+PCN7Ee/Lq2KrT7DakLBR
kCp1/LoQBB2OABWcM+DtyT9Ar7FENY8a5gYUrqg61dFRbyteqUJrvXFFm1v36MTinf/3GCkURtP
DMFHHCjbQl3Z3ycqasAyzxvmp3B7x5AX4YzuGaFdbY98VAvf1CHcaOsgYGPGqXnGk4cko
X-Received: by 2002:a05:6102:50a5:b0:7cc:25bc:3b20 with SMTP id ada2fe7eead31-7d072bb35d2mr1407630137.7.1793380096890;
Fri, 30 Oct 2026 10:08:16 -0700 (PDT)
X-Received: from gmail.com (111.46.245.35.bc.googleusercontent.com. [35.245.46.111])
by smtp.gmail.com with ESMTPSA id a1e0cc1a2514c-992ee3a066esm3190273241.5.2026.10.30.10.08.16
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 30 Oct 2026 10:08:16 -0700 (PDT)
X-Cc: kuba@kernel.org,
davem@davemloft.net,
edumazet@kernel.org,
pabeni@redhat.com,
horms@kernel.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
X-In-Reply-To: <CAASqGyYfFwZizof-O+Bn3_H85sEFytVr9GapOVQsW9miVa+Zsg@mail.gmail.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list