Article View: linux.kernel.netdev
Article #26099Re: [PATCH RFC nf-next 1/9] memcg: saturate deferred memory.high page debt
From: Alireza Asgari
Date: Thu, 03 Dec 2026 02:11
Date: Thu, 03 Dec 2026 02:11
15 lines
10749 bytes
10749 bytes
Hi, I found this counter wrap while working on NFQUEUE reservations. My KUnit test starts the task's deferred page count near UINT_MAX. With the old code, the next charge can wrap the count to zero. With this patch, the count stays at UINT_MAX so the pending work is still visible. I haven't found a workload on an unmodified kernel that reaches that boundary before the task handles the debt. Would you be interested in a standalone memcg patch, or would you want an example of such a workload first? Thanks, Alireza
Technical Details
Message-ID:
<1a239aba43d.2c9fa36d694610.2215667971597376207@asgari.net>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376222-linux-kernel-netdev=dewy.ruReferences:
<20261115-b4-nfqueue-memory-accounting-v1-0-b9cc30819997@asgari.net> <20261115-b4-nfqueue-memory-accounting-v1-1-b9cc30819997@asgari.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376222-linux-kernel-netdev=dewy.ru From: alireza@asgari.net (Alireza Asgari) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH RFC nf-next 1/9] memcg: saturate deferred memory.high page debt Date: Thu, 03 Dec 2026 03:11:19 +0100 Organization: Usenet Network Message-ID: <1a239aba43d.2c9fa36d694610.2215667971597376207@asgari.net> References: <20261115-b4-nfqueue-memory-accounting-v1-0-b9cc30819997@asgari.net> <20261115-b4-nfqueue-memory-accounting-v1-1-b9cc30819997@asgari.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2114206"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:O1M55B43E7ywyXtmAuY6DHxmIas= sha256:eU/nf5xnOMWgssNFVihdivxMlXuRT5fLdHm1a2YmptU= sha1:NR1DytPnUxfipStUNmSgYsxScD8= sha256:HzD0y9QA6LX+ymujGGJrMydrpJv/JkQh6GMUPBg/MRg= 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 DF97C1177E9; Thu, 3 Dec 2026 05:12:46 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=fail (1024-bit key) reason="fail (message has been altered)" header.d=asgari.net 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 z8o4znHVsvpI; Thu, 3 Dec 2026 05:12:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376222-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=asgari.net X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 97CCB116175; Thu, 3 Dec 2026 05:12:31 +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 1539F2BF87; Thu, 3 Dec 2026 02:12:10 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796263930; b=MBjqwg469osF7hPnbgoRaJjAqGTWeDJyGHLgy+aB75YSr2tnKGHt7CVlfOpkfxP2CRz6 U/sIZhWgzmZP3KRwzL1MbaxGtOu5aKjrjD/x4y0v2TTQe2QaEJz3S1luhbALYs2+c1rb9 doYC0/pU550sneam1YCpv/2dkLpcD/xKZOELT5jpKSn1MwuFj5loId6lJ8svREr+LZf2E OLSNEsHS/IW0QtclLLAtjgMMrln/WvEAF7Mu9kf4Zbaw+1R36ftmJESlfAkyiYyDYzcJO AFF9OmmJr2LV1AzUDE1pG4npfx0ciKz8iKHLCUV/sOm563izCuI17PpfUXu8fE5yfug== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796263930; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature: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:Importance:User-Agent:X-Mailer; bh=57kKBcydGO54UiP4YuEPnzAocY2xifuurBBUO3XZr/g=; b=rb6hlPGS7Ha19cKrW5dwcu6K+qgzGsEILbOYQZCRhVCh5+r0SjsZnlg5it2rklKZQ8NC DzU9qjbcZGbkq0tQE+deaRLg02dLXfGoVcPffPFUQyu5+t10xsAD5bujSuRFCoVuu/PQm +KtdeZIpKvGq3Tz+54m1LLDyaKV+Xc3XkqXRN9/t5CekE71kWjeOT4cKJsz3KIziBLniX 0Zx/DnUw3dMuQIAKcnnjyZKKayvlnaRzEX8IyNQD+g2mwSf4OugIYZL52KJj5li/PQBAM swyPIQOwTkfdZKOrsQgCTysHvHLRIZw+r4MPqi3wDZYgY2D3OB8HeZkEAV365qo2Nhw== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" header.d=asgari.net header.i=@asgari.net header.a=rsa-sha256 header.s=zmail header.b=LgRsZtm7; dmarc=none header.from=asgari.net; spf=pass smtp.mailfrom=asgari.net; 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 DDCD2606A32D; Thu, 3 Dec 2026 02:12:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=asgari.net header.i=@asgari.net header.a=rsa-sha256 header.s=zmail header.b=LgRsZtm7 X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.50 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796263919; b=BG6wQ/iD1prloFnesWg0iqZ+tpkgUHw4eYleEsuy7eybBk+MYRrqseNJiuAeLlb9eu5n 3tc+8oqETr4xzAgEraxxL512KQ3giBPsCdPdZNMdgmBMXit01c1OvsK3LGJZ59jhuzRem kZha27PTcEmDj3mfBRsBIGRmVzc8zg/2uKJdJENg8xXHx7ICalugZzBPE7tBxfJkHYUPa 2KVyHgVq+ShvSOYdWf74vfTtT2abuxRB32E74vzYbqhRwSfpbh8r0qkwFborcGERq5uZ0 L47FeV8DuNfM+o7J7rbkmitH/cK5j86ZIZ5Tp6UTphSWfZVqGHACg1w2mMQCBXGgcMw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796263919; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Message-ID: In-Reply-To:References:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Importance:User-Agent:X-Mailer; bh=57kKBcydGO54UiP4YuEPnzAocY2xifuurBBUO3XZr/g=; b=vPuAFJkw8jRPXWcaHAP9nto+7JGRzVWOTJ3sn2nIAMEONMBCgDOjP2v7zx0AGUjfNbcy BOstoXF+4H8NMY9eKR3xdoX5ZN4+3WzSlpDZxf7kX1NqBsoXhnxoRSsqfU9HEMPZ8LsLH nqDh9Mw/NCIHoEv4q/+z7+++FOGhBunzKft5wL/soXA3XGxjg2Nxh7zBJAPUkYxzYfz0B QdeNsm2oq7K84p+Yv3xB89m6dHiq5dSGGt9uOtrLO9UmuLWZx6+RbTqWoYUk1jftjDOXL M9K51YZnCQhmNmHLtptx9JdNN7w5iMU+0QisQuG/9iLguLKRg7jKbW35+R96q5aA8cw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=asgari.net; spf=pass smtp.mailfrom=asgari.net; dkim=pass header.d=asgari.net header.i=@asgari.net header.a=rsa-sha256 header.s=zmail header.b=LgRsZtm7; arc=pass header.oldest-pass=0 smtp.remote-ip=136.143.169.50 X-Received: from sender-of-o50.zoho.eu (sender-of-o50.zoho.eu [136.143.169.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 943DE606A322; Thu, 3 Dec 2026 02:11:57 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 943DE606A322 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=asgari.net X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=asgari.net X-ARC-Seal: i=1; a=rsa-sha256; t=1796263882; cv=none; d=zohomail.eu; s=zohoarc; b=LweHkTe977B5rcoUURwc36C+HrZeR5vH5ufqtWR0LlBeJVftjvZi6AyxQ/sHTbbjppq5H0piECojL9TW+HhxJbpG2FoErp14m/revVXrIM5nGPWSfcVLIp+WvI7cNvm1fPN4ZynI9f16F+tsCNB+Vd2Cl8wphzazBYM692cnoDY= X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1796263882; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=57kKBcydGO54UiP4YuEPnzAocY2xifuurBBUO3XZr/g=; b=EHeM3KfhOu8eWS6DxYBQ+K6gqH57IjbvqhaXvb4WEBTBlfQuLcGTCIvnClhBFete6LkyvKEkHc6Fvl/JWfi14EZSuJm2opHAEYnA9QdNpqjZeLJB9e0PV8zfg21zHpyw/D0R2KkHhJR7UWEnmzQGVHE2F+YMKPzSXpoeFzg/JPY= X-ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=asgari.net; spf=pass smtp.mailfrom=alireza@asgari.net; dmarc=pass header.from=<alireza@asgari.net> X-DKIM-Signature: a=rsa-sha256; b=LgRsZtm7BbqPKui9kZWFxU1LJ+JxsLM6QDRpaQWVH5WPdU+pGGphmgP6ul5W0V0Z3YIrSURrPGBdIdr3rqnZ2X6EGV31qBuoLlXrODDEEiFSBLYteXdjwm0qXnNsNG8Wxg7c3YDTEYnudg+O7TvdvW9TtJ6/FoDrxqsUsYO0+4c=; c=relaxed/relaxed; s=zmail; d=asgari.net; v=1; bh=57kKBcydGO54UiP4YuEPnzAocY2xifuurBBUO3XZr/g=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; X-Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1796263879751384.7589633284905; Thu, 3 Dec 2026 03:11:19 +0100 (CET) X-Cc: "netfilter-devel" <netfilter-devel@vger.kernel.org>, "linux-mm" <linux-mm@kvack.org>, "Johannes Weiner" <hannes@cmpxchg.org>, "Michal Hocko" <mhocko@kernel.org>, "Roman Gushchin" <roman.gushchin@linux.dev>, "Shakeel Butt" <shakeel.butt@linux.dev>, "Muchun Song" <muchun.song@linux.dev>, "Andrew Morton" <akpm@linux-foundation.org>, "David Hildenbrand" <david@kernel.org>, "Pablo Neira Ayuso" <pablo@netfilter.org>, "Florian Westphal" <fw@strlen.de>, "Phil Sutter" <phil@nwl.cc>, "Shuah Khan" <shuah@kernel.org>, "Tejun Heo" <tj@kernel.org>, "Vladimir Davydov" <vdavydov.dev@gmail.com>, "Chris Down" <chris@chrisdown.name>, "Zhang Jiao" <zhangjiao2@cmss.chinamobile.com>, "Song Hu" <husong@kylinos.cn>, "cgroups" <cgroups@vger.kernel.org>, "netdev" <netdev@vger.kernel.org>, "linux-kselftest" <linux-kselftest@vger.kernel.org> X-In-Reply-To: <20261115-b4-nfqueue-memory-accounting-v1-1-b9cc30819997@asgari.net> 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 X-Importance: Medium X-User-Agent: Zoho Mail X-Mailer: Zoho Mail