From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 C593BC6FD1F for ; Tue, 14 Mar 2023 08:05:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1B05D6B0072; Tue, 14 Mar 2023 04:05:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1602B8E0002; Tue, 14 Mar 2023 04:05:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 04F798E0001; Tue, 14 Mar 2023 04:05:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id ECDF96B0072 for ; Tue, 14 Mar 2023 04:05:17 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id BF2031C69C7 for ; Tue, 14 Mar 2023 08:05:17 +0000 (UTC) X-FDA: 80566768674.17.E25CE1A Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf14.hostedemail.com (Postfix) with ESMTP id CC2F6100014 for ; Tue, 14 Mar 2023 08:05:15 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=JuuPkRge; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=lFATKKuM; spf=pass (imf14.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678781116; 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=TqIJDRVcUYmUlbVn0Al2s2TH5Ea7U61xcXfPnxRC8bk=; b=06Aw+f/Gqr8yY69NKBjpG5kMp+Q/kkqRMI+2QWp1o6VNT761vNuLb3Ir/+u8XWHlDUiUJp EBpI1sDy4BE/JHQA/ngq4Ntdrj/LibZFeOg85NfHCnC4UXVJmSHbhE+8mTgkUcMyU06iAV NtCbhO2E5/5GXyvYfqZoVhZy+fwWUmo= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=JuuPkRge; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=lFATKKuM; spf=pass (imf14.hostedemail.com: domain of vbabka@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=vbabka@suse.cz; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678781116; a=rsa-sha256; cv=none; b=CkiFSeqFtOtko9gbGv+ujdj9h5rgLSWgl1SFilFI2OwzfFl02c/WnfenctpmCevSI8Njki BsSPJJEYipF0pTpjdjYa0gSnJna7AkocmX0fvwLXIoO2ACDTZxQpZU+/tcHoj66jCB59Wg 6N/qnhr8IABCglhxJxLvcZS7mnEMzd8= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 269001FE20; Tue, 14 Mar 2023 08:05:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1678781114; 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=TqIJDRVcUYmUlbVn0Al2s2TH5Ea7U61xcXfPnxRC8bk=; b=JuuPkRge9DaAsKPAnSsr3J3o2B1c45g4WDsJTAypBCaOTG/+k2YtwugJotj+5umoepDq5L TuUVPHm4eFg+d2esuhVpCZd6V3STHgLDJx9hJDyNjPYs0q2y13F3+6WIXihGzreIdcwUbu lO+u7taEJcnju7keWQH7NrYiQQWglyE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1678781114; 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=TqIJDRVcUYmUlbVn0Al2s2TH5Ea7U61xcXfPnxRC8bk=; b=lFATKKuMWsr+cewxUEmgvU2RGt38Txqkod0y1aDc5gwWv25hEcpjSi72g6lfcJ97SCxl5W v+xphcCSgLf76gAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E80C113A26; Tue, 14 Mar 2023 08:05:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PMfcN7kqEGSmNQAAMHmgww (envelope-from ); Tue, 14 Mar 2023 08:05:13 +0000 Message-ID: <4b9fc9c6-b48c-198f-5f80-811a44737e5f@suse.cz> Date: Tue, 14 Mar 2023 09:05:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: Vlastimil Babka Subject: [LSF/MM/BPF TOPIC] SLOB+SLAB allocators removal and future SLUB improvements To: lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org, bpf@vger.kernel.org, linux-xfs@vger.kernel.org Content-Language: en-US Cc: David Rientjes , Christoph Lameter , Pekka Enberg , Joonsoo Kim , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Roman Gushchin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: CC2F6100014 X-Stat-Signature: if8n8c8m85t4ec79t7qmgmyyh6c743yh X-HE-Tag: 1678781115-990497 X-HE-Meta: U2FsdGVkX1/CSFEDBPbSGF4gJtxqpNmUp4N5XioS9uxpLjG30RxflXHZxVc5umdHb8EyiN++QkyhFDziktcqLs2Qy255lPL3dDM37FAUlHYTnyAn8z6entwgmUav2lY2U8FYhBJrMtPxEF8mPqPzNwo+bHgAK6AZ4K4vG4tKEEXGatK72DHRf3kETCpdIlXgpxSAO3cFGy/7MpaeUnpsAllEcg7O+T8HcEpBwkAxslJlQBom9oQ3IYxG9Bq3dgOxO3s/eVcmNJ8Atnn4N1GgE8ARv6G+e7rieqKxA9ET4NSt2oyV07Pructd0Kf5+zEB5Zkf1/HPoK0iONWAFWrgh47AeeGuKKBFlNoWmZ8fnVPnhzhDTzRVjc9vhkQZQYr3o0/JRWb+J1b52inejzmzWKgQiy+S2GuClgi5wHNomJatvvtKY4JRC0vJNQmwL0zR4+n5JP7Ovk9FjbJN7CsQqt0Rp2Al+4HKyO/TkB4NydMibAKUULWwpiEo3+JlgPA4X8Z7eUAplqB2zc5TjOFodr8A3Z75xMS1NqOIVhD9oXOYi958pquAhfIP6coLqUJGJR34Jgsjwq4kdbzYVjDaGy7w4zyvQ9ravdv5y4oocjANSrHUZaUFy7U820TW99JRo+ItiL2wUhpivlNNmgULKgXtHOkGnKfY71e5+4C9zzbILAXaZbDz7hZsm3qm6ofE1OgESFlN69W2lHQr4tYQ7gbGzQ2a2CFhZrmRHLIKfFfeGV/4vMQQ2I9KipeNmCaY71VS6QFF6/s+FkVw2McdnsjOsor+uTYHDoXkzyeU2RETLo5Kq8akw0/AQBA9RILCM3TpfIY5RkF79YQH6WxudbWeZAL09ycGO3fWeEcgclqbhMFHRBToCx5kPu67/k22PN4itJoLQy+wGI9TvSBnD/Q1U6G2tP39xz0NL8J2R+bddvLGD88VH6HN9ZmWlgSS5sxxZm6agavUlmVWMxI osbUym54 69fif+fc7yBYisNUl6uankGXXu6pRdwpe1Gpf6IP4ELctP00aYnTjEd8gJymPtmLORg16ACVKKVw1/BIaaPL9J9eSgjFlYDsr0Zhaq0SIOzvz+DZtYhMi/qGZ9GdskmGpOfAI4zrnEsueK/2GOAAlqNmVBmoZU2oE9Yr58YAEb/hH8mFFvbPIFt+9rNywGakxVBHhOkIEm3jjibWfTDxu6r/um35ve4W8AmCR17B/LCW7skgA6i6g2CubIYOtdCGwGlxxIdSe0PL+3Uw+xBBevwrIXTXIh3250iQXIdXq2FnMK9gFfhOux8SS2x9gZwuv0Xo2yvRBEsGvUV1MMm+t5cbndA== 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: As you're probably aware, my plan is to get rid of SLOB and SLAB, leaving only SLUB going forward. The removal of SLOB seems to be going well, there were no objections to the deprecation and I've posted v1 of the removal itself [1] so it could be in -next soon. The immediate benefit of that is that we can allow kfree() (and kfree_rcu()) to free objects from kmem_cache_alloc() - something that IIRC at least xfs people wanted in the past, and SLOB was incompatible with that. For SLAB removal I haven't yet heard any objections (but also didn't deprecate it yet) but if there are any users due to particular workloads doing better with SLAB than SLUB, we can discuss why those would regress and what can be done about that in SLUB. Once we have just one slab allocator in the kernel, we can take a closer look at what the users are missing from it that forces them to create own allocators (e.g. BPF), and could be considered to be added as a generic implementation to SLUB. Thanks, Vlastimil [1] https://lore.kernel.org/all/20230310103210.22372-1-vbabka@suse.cz/