Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp647353lqb; Fri, 24 May 2024 09:01:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrXO6yYU7CQVk1mrenHWQLP75xbxE9Gee1jNzIdlU7Kwlx/7P++9ASFtzX5qF+bIKHLDRSwFi2025+HBiDqXnmtjV0XFMm5BLdDYMQRg== X-Google-Smtp-Source: AGHT+IGxAffJGMoreh1Y4ZVQZOBxDoZ3GRvwO9bkllDk55JboE6iW43cHu4rRwP8amYA0uvMpYNM X-Received: by 2002:a17:906:1401:b0:a5a:669c:286b with SMTP id a640c23a62f3a-a62642e90e5mr151980566b.19.1716566519788; Fri, 24 May 2024 09:01:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716566519; cv=pass; d=google.com; s=arc-20160816; b=x5imUqX4aoGmnZ4kjvIOMacLhFTOVUhs64yXV7AwJBlVY/TYEY7rPpo9TLpA+Q27Jy kp84baECfcwWcxK/YRpXQNEHJ2b4D+jh1On9LQIepMcqRHYlXEmpntbpJxXk3kD87QBv pXHg7gfXWoCBQF3jynNnUG7lab7J0dGtSH+escYL4mstajwI7S7y4dOLHNdUVlBP/GTg 2pL36K0T5lqYMPpb+VxUFuV2C2JEisrRf+FMCYwhsSPG+fDazIK1zb6vglSlMA4jOWBb DJg1j3FJBKxjGHnuo2QhIftOTMhIF6mI1QOf5GG95ww5lGYtbQ94J7Mi1t45Kbae1HL+ n4Mg== 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=GjTqBqcJkDmgE6z7P7zNLO86msASsWUrFD/wOrvWbTE=; fh=l44TaqU9tju4rN4HPgpvgrlyojCHfV2AAOKKsXFVlJI=; b=RSHMavK/tzVuAEl0sbimfUrmhqR1XpVGTD/k1zzsDjy9GFwcveqTzazMn5V6HH559/ KxWZcFkikY3ahPLpb6YinAwpymLNh9Lu11rzCHY7fXZi20AoT3NN326pXSTwoSriBXm4 7PaGqcKKa62V5W4miwEfMcxA1DobH1rYmzTHIQl6sXf5RmuqLTAvGjbErulycRNQBwO+ Hcc1Ln+Qu4vi1vQDCxwXHifczPVcd5wTxa6nA2ctMZsMzRo6iQYLIihLli93L/hreCFA iGqKVRtI/LsGyYmInLJPnNgs00022gMappGT+AS7ZsRIiMQEvEuIjY0+Z4AiLFrNX+xc c/Hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CB2kUAOR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc6a193si95476266b.639.2024.05.24.09.01.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 09:01:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CB2kUAOR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188911-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188911-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8699D1F21993 for ; Fri, 24 May 2024 16:01:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C392112E1D0; Fri, 24 May 2024 16:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CB2kUAOR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 EACEE1E52C for ; Fri, 24 May 2024 16:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716566513; cv=none; b=KE36b5XX0EeclgMqcDoGN6qcZVC75AhTY1M/oCjuDDq5k5FesSEEWDYpOf1Em1l2aUqJaDrFe1Yl+jNZVgmx2QkNXJbd64BNLgh2+WnjyK2kOw1r59AAiGRN4I+zWoWrxBUC6GZCz4KUT+xGQPpR/EI8/Nox4CNcUHFE5W8ftUs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716566513; c=relaxed/simple; bh=gpmn/L/CKIjmdBWM+e87XryHHA3qf/UV+ODH/mboJAk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sqGISur+aGYV39BQZWuRWHoEEIND5ZgjBamDs40z9UD3H0eQpxkiUmajqk6coslN4crkrtzMaYYZNnY+cJW5aIb3OmMac/OtX+gfedy5p+TfY71OgBkyzIwbIJsmpGTLn+8fksCEotvp9mO6Y0xEpj90OVHyB9+v/CsvghLbxww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CB2kUAOR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C41A7C2BBFC; Fri, 24 May 2024 16:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716566512; bh=gpmn/L/CKIjmdBWM+e87XryHHA3qf/UV+ODH/mboJAk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CB2kUAORBi58asZ36d3lwq+uvSFUOAXiinqr9tfxAL0GoCBGUg1rO5yDzwj3xFU3g BpfLVl2v/UIUaqM3dvcViU076dMWfBT9LTSwUeFR2JOucA2HpXGBmy0PSYTaMUptus IQxjbumAE9DVU+JxWMt/dVRj6N1PALbox7z5lOG6Ji5zuJWBxFDg0+SapnpL1jjyi4 7TKYD03kNMkNbfOObxFyGT1ViLumE0994zijEO+uSY8OafiqEI5M+wBHYwVucTVqlt QfsLFhNSsRg9VZKrURKayjAiUcW1+yOR+1mrqI45byuDOAaj51/b2R5XzVgYTw/fF8 Yn3IuSYcDK8gg== Date: Fri, 24 May 2024 10:01:49 -0600 From: Keith Busch To: Kundan Kumar Cc: axboe@kernel.dk, hch@lst.de, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, joshi.k@samsung.com, anuj20.g@samsung.com, nj.shetty@samsung.com, c.gameti@samsung.com, gost.dev@samsung.com Subject: Re: [PATCH] nvme: adjust multiples of NVME_CTRL_PAGE_SIZE in offset Message-ID: References: <20240523113149.29174-1-kundan.kumar@samsung.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240523113149.29174-1-kundan.kumar@samsung.com> On Thu, May 23, 2024 at 05:01:49PM +0530, Kundan Kumar wrote: > bio_vec start offset may be relatively large particularly when large > folio gets added to the bio. A bigger offset will result in avoiding the > single-segment mapping optimization and end up using expensive > mempool_alloc further. > > Rather than using absolute value, adjust bv_offset by > NVME_CTRL_PAGE_SIZE while checking if segment can be fitted into one/two > PRP entries. Thanks, applied to nvme-6.10.