Message ID | 20240325-slab-memcg-v2-0-900a458233a6@suse.cz (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49023C54E64 for <linux-mm@archiver.kernel.org>; Mon, 25 Mar 2024 08:21:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 775DC6B0082; Mon, 25 Mar 2024 04:21:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 725016B0083; Mon, 25 Mar 2024 04:21:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59E396B0087; Mon, 25 Mar 2024 04:21:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 464826B0083 for <linux-mm@kvack.org>; Mon, 25 Mar 2024 04:21:10 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 938C01602EA for <linux-mm@kvack.org>; Mon, 25 Mar 2024 08:21:09 +0000 (UTC) X-FDA: 81934866258.25.77928C1 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf01.hostedemail.com (Postfix) with ESMTP id 171B940010 for <linux-mm@kvack.org>; Mon, 25 Mar 2024 08:21:06 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xzZ18pVo; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gZ60F7px; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xzZ18pVo; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gZ60F7px; dmarc=none; spf=pass (imf01.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1711354867; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=RpfJF9YPIRTCVRvpa1RnbtB6JDDMaGcncw0S5jxMQ5g=; b=Eobjk5K0oqn1OGql8DIkm1akcm+21WBgoAW6k5YQsvJL6K5/JkEB6bFFVsE/HfonZhQO5z 7U3Jadx9sbwXIh24hnuq+YL60azVasfGAwfuwyzucRlGJz3GTQsb/dpHwnq1aZ4uToNkb3 T5u15pmx5kcAlhfPCbkYFLJ/MtYZKoE= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xzZ18pVo; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gZ60F7px; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xzZ18pVo; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=gZ60F7px; dmarc=none; spf=pass (imf01.hostedemail.com: domain of vbabka@suse.cz designates 195.135.223.131 as permitted sender) smtp.mailfrom=vbabka@suse.cz ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711354867; a=rsa-sha256; cv=none; b=jV433bxBwS349mnYxngtbT+ulI+Xd3U6iJXTOEUUdSHfcKJ9uX6PF953bgmZmI6ufdzAQ9 4Z7y6Y9UxiKm07AfxK/oSeZuoD53To9aQ0x3Jeus3GHY00bUkFZX/nHmEi47LLWrq8iIfy lnQYMi3xffjfLGvDgECwCqXY09yYI6s= Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6BA7E5C3FD; Mon, 25 Mar 2024 08:21:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1711354865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpfJF9YPIRTCVRvpa1RnbtB6JDDMaGcncw0S5jxMQ5g=; b=xzZ18pVoNkcF9rE1+uQav0CXPCZ1fnp5OwpTyQzRJKpYVRcJ5ksdPyTtmXPcnNvCGunX74 +Ymxs2/P0Q5ICCBS3XzORaiE7Pyrq4EJaVNvHXqH/gE6xfH7KQC3Vg7uodykwLbwLkl5kC hgbwFOkKrKavXvlqdQ5YuwMgdH6fizc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1711354865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpfJF9YPIRTCVRvpa1RnbtB6JDDMaGcncw0S5jxMQ5g=; b=gZ60F7pxpMO8PzBei7Wx46WtPwjT9p0rwP2eVPLiBRxRa8C9BJkGM++P6tOOzeJbxBuRNq tk7W2E5JqQDAdpCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1711354865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpfJF9YPIRTCVRvpa1RnbtB6JDDMaGcncw0S5jxMQ5g=; b=xzZ18pVoNkcF9rE1+uQav0CXPCZ1fnp5OwpTyQzRJKpYVRcJ5ksdPyTtmXPcnNvCGunX74 +Ymxs2/P0Q5ICCBS3XzORaiE7Pyrq4EJaVNvHXqH/gE6xfH7KQC3Vg7uodykwLbwLkl5kC hgbwFOkKrKavXvlqdQ5YuwMgdH6fizc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1711354865; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpfJF9YPIRTCVRvpa1RnbtB6JDDMaGcncw0S5jxMQ5g=; b=gZ60F7pxpMO8PzBei7Wx46WtPwjT9p0rwP2eVPLiBRxRa8C9BJkGM++P6tOOzeJbxBuRNq tk7W2E5JqQDAdpCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 4105413503; Mon, 25 Mar 2024 08:21:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id tjxMD/EzAWZdHgAAD6G6ig (envelope-from <vbabka@suse.cz>); Mon, 25 Mar 2024 08:21:05 +0000 From: Vlastimil Babka <vbabka@suse.cz> Subject: [PATCH v2 0/2] memcg_kmem hooks refactoring Date: Mon, 25 Mar 2024 09:20:31 +0100 Message-Id: <20240325-slab-memcg-v2-0-900a458233a6@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAM8zAWYC/03Myw6CMBCF4Vchs7amTKFSV76HYVHqCE3kko42K um7W3Hj8j/J+VZgCp4YjsUKgaJnP085cFeAG+zUk/CX3IASK4loBN9sJ0YaXS8s6U4dGuMMVpA PS6Crf27Yuc09eL7P4bXZsfyuP0bJ8p+JpZBC1UZhYytdG33iB9PevaFNKX0Aet5RfaIAAAA= To: Linus Torvalds <torvalds@linux-foundation.org>, Josh Poimboeuf <jpoimboe@kernel.org>, Jeff Layton <jlayton@kernel.org>, Chuck Lever <chuck.lever@oracle.com>, Kees Cook <kees@kernel.org>, Christoph Lameter <cl@linux.com>, Pekka Enberg <penberg@kernel.org>, David Rientjes <rientjes@google.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Andrew Morton <akpm@linux-foundation.org>, Roman Gushchin <roman.gushchin@linux.dev>, Hyeonggon Yoo <42.hyeyoo@gmail.com>, Johannes Weiner <hannes@cmpxchg.org>, Michal Hocko <mhocko@kernel.org>, Muchun Song <muchun.song@linux.dev>, Alexander Viro <viro@zeniv.linux.org.uk>, Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>, Shakeel Butt <shakeel.butt@linux.dev> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-fsdevel@vger.kernel.org, Vlastimil Babka <vbabka@suse.cz>, Chengming Zhou <chengming.zhou@linux.dev> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1147; i=vbabka@suse.cz; h=from:subject:message-id; bh=Do5RGFON79BZo5EODGYKbFfems4SE+esrkAYSwRAjn8=; b=owEBbQGS/pANAwAIAbvgsHXSRYiaAcsmYgBmATPZX3NtjLD+0T3mwtrWkT3/UFdtMA8OxHXmv 8xLDTlJutGJATMEAAEIAB0WIQR7u8hBFZkjSJZITfG74LB10kWImgUCZgEz2QAKCRC74LB10kWI mo/GB/0aRHVq8/FkwfqNxC442Q7bc8rhp0GrFMU27CQMBmm8mkvvB8z14B7XXk8P64wJhQgq477 5jA+T8c/SiwvK3HSBiLgH5ZLnkzT7pjw0xkH453d5+biJCaGaPOnekC39H+7oRVMTNfYNLppHag x5ChJ1NkXKo8XTVutsY9ZYjPLD6vW9B0JOAcm08F6z5AYslOYk92Hc1F6jADx4rPv+m8kGSB6SW VfuPvE1fBxDCMcvApyARzetmpzJiZ8NGCrLl8E6a0B6jAzZiWQLndm2vxQ96Ccopp8vV8b6Zgme LWKuSW7YvMAvSWiJleKgvpfJQk9aXAduDBtHMqYYVqc2/JcV X-Developer-Key: i=vbabka@suse.cz; a=openpgp; fpr=A940D434992C2E8E99103D50224FA7E7CC82A664 X-Rspamd-Queue-Id: 171B940010 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: n1giy4rx16dcdemg9eaiw86ai5eempt9 X-HE-Tag: 1711354866-880141 X-HE-Meta: U2FsdGVkX19zxBkNboGcwlslLO63ny38xWW/Eq9L/9/N6iWdvZV9eXHI857Qmjt7EnbhjmhyBMXeV5rdmTmUMCnko5L/c86A1+E/ZOHdpBbGVz/HLI+OgYrvgkhPQcSsVe8jaFoJdFmcu+7U+SdkQJHsHK80fZDG3EjOfSL0EK2oOtIaHcv6G4wVOxE8PQ+FB6pdvX+ye1whr57CesYLTrBeR8JmwoEdQPpAHQ5nbWgqpV3wEQWQOfoGODKmYwh1h5fjq91GVGWcbmgIUh/LWeFGAKmWcI00pDB/tGyJatwrUcEPRnyGSQcehmYDqczALHUxfnOU0v/quZYN/Mruejw3o1qkS01acVQcTisKQnBbcpm3b/U0A2xiwLqWd5sZ4j+8iKdoClzaL9DHmsjrbp0fOXfl/luzELn3xBjtkgVr0AaHfx1MYhruj6kKitaQ5odD9XHPEa1vp5Ybj8tdVvid+9O9uvmT8gMCl70X7YxUICewYN0U+xKialZobMST/rfwWTuQNelxoeYoB8QH0AbMv3XqR5NOLTbR52d/0/HVRweLmrO/mznCbZzWkHZD8BNroMEMEyVjmeX+5SA8f9F1EFOnmoHodJG8rmnXgmmK4FbQC5/NvyeOtcuwKaqwmO4Y2PST4g3OH+7G/Lj48DKGORw3wjTXlLJBgr90WE77p64LOeLkDo4IJnLuaOGdj8aiWGDP+UvWerwDFCvXhoErwvF3Fl0HUmah8fwYHuowPcDeRnlFPyDU+o8Os3oS8IJKQnbnz/7AMGnLU957mYHYHuuYWoKmH/ju0QDWUaTthnvnVUAy0l6kK1OGBxerFlUt8yV/8+IWuXcr/rJoQuzOaDRshiWNQakrGWRklcsGaohgCdqq2BiaTh9HfL6TIBZpnztnMcORVkq46jXxwnJQAQNnZVdJ6Pnku630BlcZ8n2ECGBIpFXUr5opkuf413IJxzW90mlxj8cp7Tj ulNDlXEg /6U8u5k36nFj+d6f/37dFP6oHvDVjEZzdU7D6MWwlQG/WyuaerShDb3qojP8+inFFxHoQvfXU58HCZhzeyJZZCJ3r8+i/uYd7t10Mj4WHhwUo/ZB2BnbOk8fiSd0gPvFVqmRh3sW0DBpcTUx+CkpS/Jqk4TS8YRfo7lGPLBIce1unejMAIws6cwHE85qgIArWHKy7BoWEytPJ71B34XN/50zHwqXRxcAi5XB/Lxr7fn3xlJt3Cz3pnbaBsSaqT/7i1bm2V71ryAqfQw94Bdu29tE878DonY1LGoX2UK+CfRSz1a5AMlnIp34nxZY9ZhMeDUu9vx7JoCGaAgXhnRa0p1xng/uyQrNmXbPyBLcoQh4d+tqDLCVqHpx0doEbhsjZJlACFZzvwRldBia0Mb+MJIf0aA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
memcg_kmem hooks refactoring
|
expand
|
Hi, this is v2 of the memcg_kmem hooks refactoring (RFC/v1 link at the end). This just rebases the refactoring patches 1 and 2 so they can start to be exposed to -next and other work on can base on that. I'm not including the kmem_cache_charge() patch here until we have a more finished user than my previous unfinished attempt. Vlastimil Signed-off-by: Vlastimil Babka <vbabka@suse.cz> --- Changes in v2: - rebase to v6.9-rc1 - add reviewed-by's to patches 1+2 - drop patches 3+4 (kmem_cache_charge() and usage in vfs) - Link to v1: https://lore.kernel.org/r/20240301-slab-memcg-v1-0-359328a46596@suse.cz --- Vlastimil Babka (2): mm, slab: move memcg charging to post-alloc hook mm, slab: move slab_memcg hooks to mm/memcontrol.c mm/memcontrol.c | 90 +++++++++++++++++++++++++ mm/slab.h | 10 +++ mm/slub.c | 202 +++++++++++--------------------------------------------- 3 files changed, 138 insertions(+), 164 deletions(-) --- base-commit: 4cece764965020c22cff7665b18a012006359095 change-id: 20240229-slab-memcg-ae6b3789c924 Best regards,