From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 468083D984; Mon, 25 Aug 2025 10:48:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756118883; cv=none; b=duwbk7Riqp+noNbHXnBFXIR3jvhgxo+nrPvnbttgdw7PKh1XoJTlLS6tJvtUcB4WUm5qBLl1/17e2tmMiF24aE81hylrReS5nq3OmQLLueuuF9cZtxLUx7DekaGkaIndnbgJ+m0OHdp9nEQHUUf1EdnJFPVOi+1IFB5FZoMnxtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756118883; c=relaxed/simple; bh=ezyPflldtQeZ6WB2SgoUntc2JaiwQAyxbr8Jy/e2iu8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LhZoBVARRPwU9DFCMw289CZJVi6tsSiQogkLCufRmFHOLQFxX4bREHPoxkVg7TLLeMnKHQYWc+AYVUbrevqa0yloDt/VUT3RRqBPSr/+Mw6cfGztn8M+yWhDEWPoGDRPEXJaEQTRvLPtEhT1+cCP+7WByZUIAiC8yFyZ24cg9fg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=W4MYaCqi; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="W4MYaCqi" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=U73jKzl4kj5AoKDUaz/Pj4NkgdmdrxRG+6zh/yOzJ6o=; b=W4MYaCqi+vloOSxcceuXHDqYhb KgnCJGJokuVYEqXak+OJ+sqtVBpnvFMobFal72Si6mGgVmJ18aLQPP9LZafL/IGKMzWAEHYVW659m DbHsUSi0BBpBszh3ls3mfMOWhMRDYctWuOYDIjckCN/K2XMVHIQa8FL4QWdmgAlHIYQxhuvLZoBP2 9D/pQYUisHogjTHsl9U+BGd1wwkZV/lUVQsWc8FFq5rFRpQf6sWv5XRKx9Lhrf7DaG9e/KCj/G9Vu b1CCrUDrqnQCq5XnZee3iMz0DMHCIUHqZg3gmkBi6CJRhv3FziN/ApAnJq0KZu0oVvHZAIUXoB4dv vM4u4wTw==; Received: from hch by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1uqUk1-00000007fpg-3qDp; Mon, 25 Aug 2025 10:47:57 +0000 Date: Mon, 25 Aug 2025 03:47:57 -0700 From: Christoph Hellwig To: Fengnan Chang Cc: Christoph Hellwig , Ritesh Harjani , Matthew Wilcox , "Darrick J. Wong" , brauner@kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jens Axboe , linux-block@vger.kernel.org Subject: Re: [PATCH] iomap: allow iomap using the per-cpu bio cache Message-ID: References: <20250822082606.66375-1-changfengnan@bytedance.com> <20250822150550.GP7942@frogsfrogsfrogs> <877byv9w6z.fsf@gmail.com> <874ityad1d.fsf@gmail.com> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Mon, Aug 25, 2025 at 05:41:57PM +0800, Fengnan Chang wrote: > I'm test random direct read performance on io_uring+ext4, and try > compare to io_uring+ raw blkdev, io_uring+ext4 is quite poor, I'm try to > improve this, I found ext4 is quite different with blkdev when run > bio_alloc_bioset. It's beacuse blkdev ext4 use percpu bio cache, but ext4 > path not. So I make this modify. > My test command is: > /fio/t/io_uring -p0 -d128 -b4096 -s1 -c1 -F1 -B1 -R1 -X1 -n1 -P1 -t0 > /data01/testfile > Without this patch: > BW is 1950MB > with this patch > BW is 2001MB. Interesting. This is why the not yet merged ext4 iomap patches I guess? Do you see similar numbers with XFS? >