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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13902C433EF for ; Tue, 15 Mar 2022 08:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346276AbiCOI6Y (ORCPT ); Tue, 15 Mar 2022 04:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345206AbiCOI6X (ORCPT ); Tue, 15 Mar 2022 04:58:23 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A4304D9CB; Tue, 15 Mar 2022 01:57:12 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 988FC68AA6; Tue, 15 Mar 2022 09:57:09 +0100 (CET) Date: Tue, 15 Mar 2022 09:57:09 +0100 From: Christoph Hellwig To: Kanchan Joshi Cc: Christoph Hellwig , Kanchan Joshi , Jens Axboe , Keith Busch , Pavel Begunkov , io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, sbates@raithlin.com, logang@deltatee.com, Pankaj Raghav , Javier =?iso-8859-1?Q?Gonz=E1lez?= , Luis Chamberlain , Adam Manzanares , Anuj Gupta Subject: Re: [PATCH 12/17] nvme: enable bio-cache for fixed-buffer passthru Message-ID: <20220315085709.GD4132@lst.de> References: <20220308152105.309618-1-joshi.k@samsung.com> <20220308152105.309618-13-joshi.k@samsung.com> <20220311064847.GA17728@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, Mar 14, 2022 at 11:48:43PM +0530, Kanchan Joshi wrote: > Yes, the only reason to switch from kmalloc to bio-set was being able > to use bio-cache. > Towards the goal of matching peak perf of io_uring's block io path. > Is it too bad to go down this route; Is there any different way to > enable bio-cache for passthru. How does this actually make a difference vs say a slab cache? Slab/slub seems to be very fine tuned for these kinds of patters using per-cpu caches.