From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-183.mta0.migadu.com (out-183.mta0.migadu.com [91.218.175.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A6F0191F60 for ; Sat, 15 Mar 2025 17:49:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.183 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742060984; cv=none; b=eOwlWmc8QXKg5jenRxuwJ4+JIrUk4Bwyp0Q93eZIvXNt+seDl7T8KnFEhnXhIK+MRIY4X+PNRTZ9GdXdbj35ddAdbCsQSUpR6Ur+jynBUmRx4hREw7SMtrwZxVweJKpJ6hDjPv8JsHfTJSj+cN9A+BsHeUcPa1RFQemDb4xO+3A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742060984; c=relaxed/simple; bh=8cNdWdSYzMhrZrBVVbo1LE44oP+rPuUJujztZ+GXkGI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=flcwJ81HQ0ZHlfg9pVqP/szSKmHrvTAlSaazY78nR+5P2JClounkiRM+HRYKs/Mxd2ZMk3f6ABriYNtqe/Ft7mF+n8kOYIq05atMjKb+BreoEKgjsb8mTPyv7W9yzIwxS+BHADD59zUcW9ubmJeHGEXLlJV9DshjrvFdC0Zaay4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=ed6qPZeI; arc=none smtp.client-ip=91.218.175.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="ed6qPZeI" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1742060978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ejPqcS6XBEDW+h9V+Y9XW4HLbyin3ylhe+1eBvNG0us=; b=ed6qPZeIiPSadtsqQbti2BDAvMuGVp+62JrK8640TmWLwWGFfew+bL/75pqV9ke0yiBbXS Fo+ndr5s/72UPECrjGjiTRietDubx7nZAtVIxRb0edimC5YSM1+foZr/mmQBiUBOhuJnV8 hkDYkWeeSM59NTfVL3C1eQlUo3DIIEg= From: Shakeel Butt To: Andrew Morton Cc: Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , Vlastimil Babka , Sebastian Andrzej Siewior , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Meta kernel team Subject: [PATCH 0/9] memcg: cleanup per-cpu stock Date: Sat, 15 Mar 2025 10:49:21 -0700 Message-ID: <20250315174930.1769599-1-shakeel.butt@linux.dev> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT This is a cleanup series which is trying to simplify the memcg per-cpu stock code, particularly it tries to remove unnecessary dependencies on local_lock of per-cpu memcg stock. The eight patch from Vlastimil optimizes the charge path by combining the charging and accounting. This series is based on next-20250314 plus two following patches: Link: https://lore.kernel.org/all/20250312222552.3284173-1-shakeel.butt@linux.dev/ Link: https://lore.kernel.org/all/20250313054812.2185900-1-shakeel.butt@linux.dev/ Shakeel Butt (8): memcg: remove root memcg check from refill_stock memcg: decouple drain_obj_stock from local stock memcg: introduce memcg_uncharge memcg: manually inline __refill_stock memcg: no refilling stock from obj_cgroup_release memcg: do obj_cgroup_put inside drain_obj_stock memcg: use __mod_memcg_state in drain_obj_stock memcg: manually inline replace_stock_objcg Vlastimil Babka (1): memcg: combine slab obj stock charging and accounting mm/memcontrol.c | 195 +++++++++++++++++++++++------------------------- 1 file changed, 95 insertions(+), 100 deletions(-) -- 2.47.1