From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 3D1F62054FD for ; Sat, 15 Mar 2025 17:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742060992; cv=none; b=H58vKZGi6cD4dGv6Umh3rWgHT46ydQmkxoFNMCO6ryylK9A9UMODWWLYLFcxLB04Hvu0Kbm81OW24klZlIz8MmUGoAL/jvWLVBNuIA5akamYcwRhRCUmEIlZrUUXDc/8Z5g5UJjKR9/EgTQgi9MAOh9Hr7g7LzFHLkYaoTjsEC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742060992; c=relaxed/simple; bh=8cNdWdSYzMhrZrBVVbo1LE44oP+rPuUJujztZ+GXkGI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JiKSs/215u0SpEHao3pfuSgMXoMwXOUULAiDMcLhtVt6ef0QOgcBheINVDUpH7b1qCi2634w2q6PGnrjvJdHlevsxxYCqLUVRV4q1OxrYiySg+D0JlfR5slanxBZtXTHYsGadicavaDVGtKNP9qVlG+udI0SeCwlBZ+LqPZVgy0= 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.174 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: linux-kernel@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