Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp256666lqa; Sat, 27 Apr 2024 00:46:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU64DPjovWCC7EFmuRMyBmw6HO0KyNmzDsP06p6t0f6Xz4nOI+Pnhtn9wMUHsfev7P0vd47bkG+j2OhJrfQfnslK2yNA+pdhuCYjvVBIw== X-Google-Smtp-Source: AGHT+IFG1cRlKg0n+3RDW7GHyHgtgB9jl0+Wi1PS4Du8RQIdSuvj50Hv/SCOe4mc9KSbpdFLZkeD X-Received: by 2002:a17:902:f605:b0:1eb:ead:ee1f with SMTP id n5-20020a170902f60500b001eb0eadee1fmr4537131plg.44.1714203980374; Sat, 27 Apr 2024 00:46:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714203980; cv=pass; d=google.com; s=arc-20160816; b=mTS/tv1KxPZi+SNV7LGY+zMrPSnNbpuvmp6vzU8FGY7Gc4OSavSFLUPYh5WBXQHtgp jgnm0BHUhlHqwqw+MWKxqR5wCUU5lX472XflV510OdJx94o/U57qfqI0CWg/PpS10y9N 09QwlWe1OM8Pb5V9ugVeV2xmpmYvERUBy20d/jmK7+vwE3i38+rhui+xW7ByMu/F0sLx hjEBD0QR563Ag4kfGqk6gayg8sOTjtqrnUTVBW80BjKvnrCzS4vqv1ga+yPZjHAxZR46 vU+PkFbpmR284cL4psPD/A7yG+rkNyMMwlFWT9o3MgoBW8HdP5YEjGKmBJKDXxA5IOfW 9s0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6xpU9VR8a6K2/jLYXQfcQD1fDuHqlmP2r7odFKj3g8U=; fh=eJE5RoRZ/15DIBx4LlAQVadnk4W+FJL3IPJVkpqi1e4=; b=uDYG6dyoZLnN+W1USqQOUB7N1Z17a8TAc0CeObS9FKJImAD3kBCQVB5GFN7uWLJweF W6Q5mS2V0Jt+2RDmVlt+reFIjUCg1ukjfJLaz49BjCEoty1JY6lhziIIzrn0Vb3kI+oe sVS/Mz6qhl/8D4wZrgtor8MmteA0n+I0DhCgZlGK+w839Jh1lvmrEz3142iNmGAPYCPp T+85f55NXUeo8m3V2jgQG/v5iUz1iMYozvOU5/QRo5bBO4rYAXL3jwW6anFepiUm0rXe B5t35OeQAktX5Y4oq3A05b0cYuXVYUw8PnfMzG01e91ub3XgFSE3UIVeptyw9Hz0sTU9 pMSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="OBY8m/D7"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2217-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p23-20020a1709028a9700b001e503e6dbb4si15872140plo.167.2024.04.27.00.46.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 00:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-2217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="OBY8m/D7"; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-ext4+bounces-2217-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-2217-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 759DFB2248D for ; Sat, 27 Apr 2024 04:47:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 77D423EA96; Sat, 27 Apr 2024 04:47:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OBY8m/D7" X-Original-To: linux-ext4@vger.kernel.org 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 880973D0C2; Sat, 27 Apr 2024 04:47:03 +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=1714193226; cv=none; b=MJyEf6RehSeQ6o6eOm5xqn6kUpdtcrAVNS7h6pxZDz6xZfd6ROqzXLnhCLOlm2H3dexZT9mygXx9tR7SLc/l38n5K2zUrN1SSVL6A0SCI5mSjJgitO692sr++jWGq4w7s27WcxPPQOt47hZnuY0CUlT8gEt16l85SZc6fgBnTNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714193226; c=relaxed/simple; bh=LRCIkuejIh2ioIHP5AzHL7iNdWGaOmpp8+XXWy0KtuY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oInT/+/IL6sqA+bJT7Fcq173XDT302+FVMobaDp75vdLv1J8zZiPcLa1EjOb/ubUaed7Z2GEUhSXNNgzhjOfyQfxNR6O2euwh19kExUZJLNIQJkFzW/dheCFPdfMlFK3vxqXF0FZkOWZyWa3ZccuTzeBcRm/xATWXJ5GV6bXZok= 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=OBY8m/D7; 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 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=6xpU9VR8a6K2/jLYXQfcQD1fDuHqlmP2r7odFKj3g8U=; b=OBY8m/D7mwHz4ZirDPL3GuMhrA 1nIRnLfqU1zETqu5iRU3Xu42z5jxSSK1IGacS68+brIzlm3Q4G/lkhEyqC4y6zcOXJoKUDLf+CwWe LWZV/4oJydHICNuF4Lggf02Wy+tRXvF8/lwYWM44ZCNSpI3XkhJQ4WD/cinz4zdBGqGNR+9JxVwvG 81RoL+92Bvo4nmcNzMOlQeKnCDjAaeESx6cBSekseILTgr9zON0w1d6Hjcf8WK2kCihgtHLOLvWac RvfODVaiBpLNzqjK29Y061Mabsq4tVTI1QN4IdSJuUW62Ct3bhpgH4U60zksZext7EUEI5Sghc0lR mhlZBx3Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Zxn-0000000EonU-2S8c; Sat, 27 Apr 2024 04:47:03 +0000 Date: Fri, 26 Apr 2024 21:47:03 -0700 From: Christoph Hellwig To: "Ritesh Harjani (IBM)" Cc: linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , "Darrick J . Wong" , Ojaswin Mujoo , Jan Kara Subject: Re: [RFCv3 7/7] iomap: Optimize data access patterns for filesystems with indirect mappings Message-ID: References: <4e2752e99f55469c4eb5f2fe83e816d529110192.1714046808.git.ritesh.list@gmail.com> Precedence: bulk X-Mailing-List: linux-ext4@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: <4e2752e99f55469c4eb5f2fe83e816d529110192.1714046808.git.ritesh.list@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Thu, Apr 25, 2024 at 06:58:51PM +0530, Ritesh Harjani (IBM) wrote: > Currently the bios for reads within iomap are only submitted at > 2 places - > 1. If we cannot merge the new req. with previous bio, only then we > submit the previous bio. > 2. Submit the bio at the end of the entire read processing. > > This means for filesystems with indirect block mapping, we call into > ->iomap_begin() again w/o submitting the previous bios. That causes > unoptimized data access patterns for blocks which are of BH_Boundary type. The same is true for extent mappings. And it's not ideal there either, although it only inreases the bio submission latency.