Message ID | 20231129-slub-percpu-caches-v3-7-6bcf536772bc@suse.cz (mailing list archive) |
---|---|
State | New |
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 7B9AFC4167B for <linux-mm@archiver.kernel.org>; Wed, 29 Nov 2023 09:53:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C28AC6B03C0; Wed, 29 Nov 2023 04:53:43 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 48A286B03C6; Wed, 29 Nov 2023 04:53:43 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E9B706B03BA; Wed, 29 Nov 2023 04:53:42 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 4072E6B03BE for <linux-mm@kvack.org>; Wed, 29 Nov 2023 04:53:42 -0500 (EST) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 16D3E1A03CB for <linux-mm@kvack.org>; Wed, 29 Nov 2023 09:53:42 +0000 (UTC) X-FDA: 81510529884.17.DD68507 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf08.hostedemail.com (Postfix) with ESMTP id E813516001B for <linux-mm@kvack.org>; Wed, 29 Nov 2023 09:53:39 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf08.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=1701251620; 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:in-reply-to:references:references; bh=sIzawMHw0qEvdtsrb8CaYai+9KHMb5Dh5VZ/ALQ2CnQ=; b=OHzwtJqWNAuf8KKfIvYzEhuPzCwV/N5mMltopIwvfcKFYFAhvfUEQEpq/dEyadwpMUlV/A LEsqLYi+kETPI/VPahoeMPPyRbhdx/tMsk6XA+riKXscmGbu08abxEBBnccpppOWfF4fMI RRtlt/Tf4bRLeYsRoscHYuYdvXMXbCs= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf08.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=1701251620; a=rsa-sha256; cv=none; b=ls825N5uqAnwooHM5BpBAKTRqAjxLdSJZA/u07thpzcktEOK415pes2XvFtq1MuVsEz73m TDW3fnyGOPKbjro5dCoi9A4C7pnG3ntSGyRnlxQ95A060TtaHTPyDmB1aZwgVHmchqf5Xl rv2Nq5++p2DstCAFSY0ZzL2OBHgcAbw= Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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 EE57F1F8BB; Wed, 29 Nov 2023 09:53:37 +0000 (UTC) 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 73E2B13A9E; Wed, 29 Nov 2023 09:53:37 +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 eE8DHCEKZ2UrfQAAD6G6ig (envelope-from <vbabka@suse.cz>); Wed, 29 Nov 2023 09:53:37 +0000 From: Vlastimil Babka <vbabka@suse.cz> Date: Wed, 29 Nov 2023 10:53:32 +0100 Subject: [PATCH RFC v3 7/9] maple_tree: use slub percpu array MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231129-slub-percpu-caches-v3-7-6bcf536772bc@suse.cz> References: <20231129-slub-percpu-caches-v3-0-6bcf536772bc@suse.cz> In-Reply-To: <20231129-slub-percpu-caches-v3-0-6bcf536772bc@suse.cz> To: Christoph Lameter <cl@linux.com>, Pekka Enberg <penberg@kernel.org>, David Rientjes <rientjes@google.com>, Joonsoo Kim <iamjoonsoo.kim@lge.com>, Matthew Wilcox <willy@infradead.org>, "Liam R. Howlett" <Liam.Howlett@oracle.com> Cc: Andrew Morton <akpm@linux-foundation.org>, Roman Gushchin <roman.gushchin@linux.dev>, Hyeonggon Yoo <42.hyeyoo@gmail.com>, Alexander Potapenko <glider@google.com>, Marco Elver <elver@google.com>, Dmitry Vyukov <dvyukov@google.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org, kasan-dev@googlegroups.com X-Mailer: b4 0.12.4 X-Spamd-Bar: ++++++++++++ X-Rspamd-Queue-Id: E813516001B X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: xa9fgc9x3nrdtf59s9fahoppmopy8sk8 X-HE-Tag: 1701251619-478539 X-HE-Meta: U2FsdGVkX19r63jw5BkGIqiI8LxsdCQLgDT5hxhe+RAh7Ksj7kR/5NNNL4H3dvgBdaTrdwWwXttknFDh7EoLokXf0W/amOYJO9Is5KMjmCu+Bk6qIGSTLX4KDVY5/ehOwgzHU0TszIwbK5QhjxuEwkn1LAbc8ZrFiUU3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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 |
SLUB percpu array caches and maple tree nodes
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index bb24d84a4922..d9e7088fd9a7 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6213,9 +6213,16 @@ bool mas_nomem(struct ma_state *mas, gfp_t gfp) void __init maple_tree_init(void) { + int ret; + maple_node_cache = kmem_cache_create("maple_node", sizeof(struct maple_node), sizeof(struct maple_node), - SLAB_PANIC, NULL); + SLAB_PANIC | SLAB_NO_MERGE, NULL); + + ret = kmem_cache_setup_percpu_array(maple_node_cache, 32); + + if (ret) + pr_warn("error %d creating percpu_array for maple_node_cache\n", ret); } /**