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 95563C64EC4 for ; Wed, 8 Mar 2023 18:13:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1BE5C280001; Wed, 8 Mar 2023 13:13:56 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 16E4E6B0074; Wed, 8 Mar 2023 13:13:56 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 00EA5280001; Wed, 8 Mar 2023 13:13:55 -0500 (EST) 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 E18A96B0072 for ; Wed, 8 Mar 2023 13:13:55 -0500 (EST) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id ACE871A0180 for ; Wed, 8 Mar 2023 18:13:55 +0000 (UTC) X-FDA: 80546529630.24.51C6D1A Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [96.44.175.130]) by imf30.hostedemail.com (Postfix) with ESMTP id 0B2CF8000D for ; Wed, 8 Mar 2023 18:13:50 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=hansenpartnership.com header.s=20151216 header.b=f6KOEdDf; dkim=pass header.d=hansenpartnership.com header.s=20151216 header.b=f6KOEdDf; spf=pass (imf30.hostedemail.com: domain of James.Bottomley@HansenPartnership.com designates 96.44.175.130 as permitted sender) smtp.mailfrom=James.Bottomley@HansenPartnership.com; dmarc=pass (policy=none) header.from=hansenpartnership.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678299234; 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:in-reply-to:references:references:dkim-signature; bh=nt0YxwAmG4NrvkhShC89KqrlN6loHHL4tR03KzHlTh4=; b=u7hlOb44/fCBuDQRVsLU1hQ/Ku2WSU/WU/t1k+je166F6KF93kxbC76ucCrs64iYztw6fg jLMcnE7aovXNyDXLMVr3FQaJ/RrnKMV22RaW27/ZQ42iAMVyrJBm6QFPs3uck5pJza5abW Trvpu6iVOXe+wd4zoyMh8kyeaUwLMwI= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=hansenpartnership.com header.s=20151216 header.b=f6KOEdDf; dkim=pass header.d=hansenpartnership.com header.s=20151216 header.b=f6KOEdDf; spf=pass (imf30.hostedemail.com: domain of James.Bottomley@HansenPartnership.com designates 96.44.175.130 as permitted sender) smtp.mailfrom=James.Bottomley@HansenPartnership.com; dmarc=pass (policy=none) header.from=hansenpartnership.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678299234; a=rsa-sha256; cv=none; b=fsluq8YNkRd1DL4pJXOGaR6Zgo0I89SkI9rSgDr50XvvrpBO+5OiqDFA+VnCfPH3dKLtZz C6kxmuCCvkd8tlig1aq0xt1xwKrD29Cb4NU4WJmFiYij0CmbTDUbg8TX9QDkrgaRHQZNri gJC4LI0pE7TF+htuCo2o7Kf7cEdpUKU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1678299229; bh=Vys5iYK/+fJyyDZ24nlbuNfT76U1kxqNE2Ur4f5ljdI=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=f6KOEdDfPn1EKPig7w/2em9x5iNEmBMrbX78lJYFRv3Nna47sj6me8EaVXh4cn2Kg DpTCaWuiGoHMrDJ6jxvQV2k/tcaAiQFYCVZyDvj3JxNehArnYFKwQ8v022Ba6vJ4PF swzPF9w1bLS1LFiX54KL8cm0FaXeQfXAbkxHVsZo= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 5364D1286368; Wed, 8 Mar 2023 13:13:49 -0500 (EST) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XLXb23XoE1Wf; Wed, 8 Mar 2023 13:13:49 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1678299229; bh=Vys5iYK/+fJyyDZ24nlbuNfT76U1kxqNE2Ur4f5ljdI=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=f6KOEdDfPn1EKPig7w/2em9x5iNEmBMrbX78lJYFRv3Nna47sj6me8EaVXh4cn2Kg DpTCaWuiGoHMrDJ6jxvQV2k/tcaAiQFYCVZyDvj3JxNehArnYFKwQ8v022Ba6vJ4PF swzPF9w1bLS1LFiX54KL8cm0FaXeQfXAbkxHVsZo= Received: from lingrow.int.hansenpartnership.com (unknown [IPv6:2601:5c4:4302:c21::c14]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 1917B1286361; Wed, 8 Mar 2023 13:13:48 -0500 (EST) Message-ID: <1367983d4fa09dcb63e29db2e8be3030ae6f6e8c.camel@HansenPartnership.com> Subject: Re: [LSF/MM/BPF TOPIC] Cloud storage optimizations From: James Bottomley To: Matthew Wilcox , Theodore Ts'o Cc: Hannes Reinecke , Luis Chamberlain , Keith Busch , Pankaj Raghav , Daniel Gomez , Javier =?ISO-8859-1?Q?Gonz=E1lez?= , lsf-pc@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org Date: Wed, 08 Mar 2023 13:13:45 -0500 In-Reply-To: References: <0b70deae-9fc7-ca33-5737-85d7532b3d33@suse.de> <20230306161214.GB959362@mit.edu> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 0B2CF8000D X-Stat-Signature: 6cq19mai4ur3omd333f95wjd8gmdintb X-Rspam-User: X-HE-Tag: 1678299230-866819 X-HE-Meta: U2FsdGVkX1/zAX2B8k+sYerrWvt/UV/AjjfLnEbKL1j62ZIEUmLw7+/jvVH3ltP4oUOk75h1cpyOo68LAMtuuapnpFRAlYgqmp2RdhNSD/QzNrRAMlt59zPf97QbZ7zyipEntZYo2lEmPSAvViBRFbaIGi4wEffMUFRyVy6PW2hL4UEurJtCRK7dD56BLh06b4xZSXqTRzaCB2AG78m28wrrMxGBtppSzYF4VjdhIZtwG7S37/U7uH/GCs8HQvkoL9d/doSt3+h/YDvxZ2vUDgGDbubUcCYPWNH8344ICZ/s9qoKJTXSrUCKb9VP7yLjEhXQr2bsPju6CrM5ozXgaoeR8Gpgu5yX/etSCZtYwrmHl7kk/P9R9pL7XVLSx3g4VuNJHsulUuv70OmgDKPHTr7V0Rvjo61i7YLI6DYqTohX4jUgqTMmtUA8fBd0L/Mev8NaqxlH68UT35G8Ud/GuLXhPLdgIt9r4oq1E0WwJvEuIHDInrUzdke/TkJVK4MNDCNKl+JZ5I5tnJ4dwrkYsSFT/idNHhR0zeqMERbIpj3naAz1IfW/Ag7eK/iPiLXTTndPmQ8b70ozPaz9l6ZfkMUpd+QYEKErM81oALi/UWB1I5hIMNdOcvAFxnkHj4F5kuNhfeuwDCK94lS50A3v4VUGMtPBk63iRw/yLEzDsHZATP1a52Mam4AayfCBexAsfXZwMrzdUjZjJBsKIpVSn/xTr7ku4fhY1ueMZusY3BeOYP9Af6iRHNiiPrHAmclaibVDDv9P9yQ4gYi/lkToQWWxiyFypvXgqjq8GR7bGvWlyRWlv1TkYoLTEiMXfz6XAIYKrMmKSl+4qzD9wo6R5aVkE/UvK/3Tta0EsWbh3dIBIRmAeo2TCEtQ8adMdXJUSeGmupaHne+c965OccsIq5MhWwVpfydTIXWeUFpmAxdh+Y0NyjWtczVMDk+GKkqZPCRqMEhRMfPGGhC+f0v qJfsR1q0 4Z9GL7PETSVZhjRYHzEbtYMHRHhJie2OAeGw0ptlPjdLskxQsEqw7KJI5sh18WO1LBLQCnV/sOblNHnZrMEHdqiX2Q3PF7QDuLiUVqOjbSQJF26TNn9PhXFdwjdvp4qG8X5BR22mluvMRiWJzqm0NEv+FP6GxyE3YtsPejFFAtK22GV7N1FsuZxAsfk4n4TxoQhgSbQ/AZSU5OKgMTkigX1xRKzPpOxBY4JvFLdyqg1QDikhrmhh4pRamS/do9eJSvA7csY7hu8Ip6DkcoUEBMMffpWve0FuXcLsR4fEs6K71Tze+bF56TLbCdXnLOBmu/iXBWW1QcwcJcmvxLDHavsuWcw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000790, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, 2023-03-08 at 17:53 +0000, Matthew Wilcox wrote: > On Mon, Mar 06, 2023 at 11:12:14AM -0500, Theodore Ts'o wrote: > > What HDD vendors want is to be able to have 32k or even 64k > > *physical* sector sizes.  This allows for much more efficient > > erasure codes, so it will increase their byte capacity now that > > it's no longer easier to get capacity boosts by squeezing the > > tracks closer and closer, and their have been various engineering > > tradeoffs with SMR, HAMR, and MAMR.  HDD vendors have been asking > > for this at LSF/MM, and in othervenues for ***years***. > > I've been reminded by a friend who works on the drive side that a > motivation for the SSD vendors is (essentially) the size of sector_t. > Once the drive needs to support more than 2/4 billion sectors, they > need to move to a 64-bit sector size, so the amount of memory > consumed by the FTL doubles, the CPU data cache becomes half as > effective, etc. That significantly increases the BOM for the drive, > and so they have to charge more.  With a 512-byte LBA, that's 2TB; > with a 4096-byte LBA, it's at 16TB and with a 64k LBA, they can keep > using 32-bit LBA numbers all the way up to 256TB. I thought the FTL operated on physical sectors and the logical to physical was done as a RMW through the FTL? In which case sector_t shouldn't matter to the SSD vendors for FTL management because they can keep the logical sector size while increasing the physical one. Obviously if physical size goes above the FS block size, the drives will behave suboptimally with RMWs, which is why 4k physical is the max currently. James