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 F0395C61DA4 for ; Thu, 9 Mar 2023 08:04:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F2CF16B0071; Thu, 9 Mar 2023 03:04:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EDCE46B0072; Thu, 9 Mar 2023 03:04:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DA4E3280001; Thu, 9 Mar 2023 03:04:41 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id C9A606B0071 for ; Thu, 9 Mar 2023 03:04:41 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 995731210BC for ; Thu, 9 Mar 2023 08:04:41 +0000 (UTC) X-FDA: 80548623162.25.FFF1B06 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf07.hostedemail.com (Postfix) with ESMTP id 99FC540007 for ; Thu, 9 Mar 2023 08:04:38 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=BGReSbmP; spf=pass (imf07.hostedemail.com: domain of javier.gonz@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=javier.gonz@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678349079; a=rsa-sha256; cv=none; b=ctrtApdxcaHICG3G2EH4p74fNbVOnHfUDU7t8o50/J5FJNnECP2vnLcwmkUMzzjHDGXgjs nbu9wwePIYvi7kejrQ7fo/F90MOAyAUO3dzsZVjA4biZlWF2lQtVnfSQj9EbFLbvGZ9Ixb ErqMgzpPe9VaB8Gek4GdabLV6ueObIE= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=BGReSbmP; spf=pass (imf07.hostedemail.com: domain of javier.gonz@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=javier.gonz@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678349079; 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=JuaC8xy+LESWr72k9kG7on+4+U/x14WcXmhVPg6qWoY=; b=R2T1YvU3F91q5VQp2U8kDZjAHA44HLNHiP2nFbbTiv3vHbNNC2sXZ7W3t6bhucah7nl5eg CgFBmJC0ked/RtxhlugPgUa0SU8/9ng20SwhgHNWpJKMXk68cng4iIs2yjp4F5tIBnaMfQ YITwiHKiL0IzXrhxoecSJRFeUOc6Gfs= Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230309080436euoutp0195133dec1269ced112516492c60a331f~KsZezdQnr2978429784euoutp01K for ; Thu, 9 Mar 2023 08:04:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230309080436euoutp0195133dec1269ced112516492c60a331f~KsZezdQnr2978429784euoutp01K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1678349076; bh=JuaC8xy+LESWr72k9kG7on+4+U/x14WcXmhVPg6qWoY=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=BGReSbmPjwLCXUUAlVMN02h7+J8fuglVW1do27w6KijZ9XXUrNJAPcHtt7smrTp1+ kYOx0SHqORCoiTOYX95Gi52ccwocQnrdL5gr8SzPmhUrvWYuQHfKvTN+U7LgIWQtJq 0KEC85OLkIQgpYJhaX/eUNeSmQGB7VeNCRYejajw= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230309080436eucas1p2976b5a51e92d229a32b814e06789ae17~KsZeqbn1f0485004850eucas1p2Z; Thu, 9 Mar 2023 08:04:36 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 2C.8F.10014.31399046; Thu, 9 Mar 2023 08:04:36 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230309080435eucas1p27d38e373074eeedee7e01db6dc6bac63~KsZeTeRsW0485404854eucas1p2f; Thu, 9 Mar 2023 08:04:35 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230309080435eusmtrp24d695ac77fe86041d6800de52629a7e5~KsZeSbJ_e1984219842eusmtrp2L; Thu, 9 Mar 2023 08:04:35 +0000 (GMT) X-AuditID: cbfec7f5-b8bff7000000271e-81-6409931331c7 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2A.06.08862.31399046; Thu, 9 Mar 2023 08:04:35 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230309080435eusmtip2e00b4ae933e6792446c2c2e348367c28~KsZeGEsC43221532215eusmtip2C; Thu, 9 Mar 2023 08:04:35 +0000 (GMT) Received: from localhost (106.110.32.122) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Mar 2023 08:04:34 +0000 Date: Thu, 9 Mar 2023 09:04:34 +0100 From: Javier =?utf-8?B?R29uesOhbGV6?= To: James Bottomley CC: Matthew Wilcox , Theodore Ts'o , Hannes Reinecke , Luis Chamberlain , Keith Busch , Pankaj Raghav , Daniel Gomez , , , , Subject: Re: [LSF/MM/BPF TOPIC] Cloud storage optimizations Message-ID: <20230309080434.tnr33rhzh3a5yc5q@ArmHalley.local> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1367983d4fa09dcb63e29db2e8be3030ae6f6e8c.camel@HansenPartnership.com> X-Originating-IP: [106.110.32.122] X-ClientProxiedBy: CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) To CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) X-Brightmail-Tracker: H4sIAAAAAAAAA02SWUwTURSGc2fa6W2T6rSC3qBobHgCRUWiA7hhiPbFRENAY6JS6UjBUrCL 4o4IKOCCJYqWRggiVETQQhWTooJSaCEqahRQIUJxAyyLAoYIdhiMvH3n/P+5Of/JhbjYwvWC sSotrVbJlBJCwLlv+/18qUcOX768wgkoa6Eeo+5dhJS+7i2gatr9KGuNnUN1lE1yqUe9NTjV mt0DqLRzv3nU+JiR2CCQXtE7CGmlyVdqLs0gpOYhPU+a01oCpCnN9bi0sumodNi8cCvcKVgj p5WxB2n1snVRAkXhpB0kVoiSOvPKuclgUJgJ+BCRgUh/v5jIBAIoJk0AGZ/kYmzxE6DelkaC cYnJYYBaK5WZAE5NJJsWsp4SgNLtqdMDbk9PlZHHFpUAXR64SDATHNIHFacqmIcIcj16VdyO M+xBhqCfpQWA8ePkBIasgylcRpjjFswGK2BYSK5F3WVXeCyLkP2ak8MwTgajjAHGD908H5VM QLa9CJ225E29zyfDUVf+V4KNKUHdX/sBy8eRo6p9amlE5vPReP4HLiuEIceQEWd5DvreUMVj eQGafJiPsbwftTRnTXu06IbLhrNXC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CrpX4/PcZ4wRGkVlIps5CMnUWwtRZSKYuYGRZxSiSWlqcm55bbKhX nJhbXJqXrpecn7uJERjX24793LyDcd6rj3qHGJk4GA8xSnAwK4nwfpfiSBHiTUmsrEotyo8v Ks1JLT7EaAoMoonMUqLJ+cDEklcSb2hmYGpoYmZpYGppZqwkzutZ0JEoJJCeWJKanZpakFoE 08fEwSnVwNTbPul96YWtFZdkX1s+vX/46lTf+/vty5k2JB7XFeDtEdkWovbSuKbx4P/cl/e1 0s+ez9uol/nfpuqLENdDuX8RmpLS698v+pZgdNB43fLG3tUGh9fvy5p53H1RYrZHtsqTgIBS kznyyd+v3O81P/coaF/tLpU7GVvWskZvLD/fFCWxXGjqM7XmZ3ZvdoReXMJyW/GWbfqeBqEN LqxCtSIzq51U//1tSc03O/9Qb6q38fq5Wjee217ts/4uVOzv0zmL8dipZbd8ixuaggX1ZaON Dp++rHuZydkn8/+TxAP2HTr9SmGVyzW5XSJXOLrXBsuEGdjGXzANqvl3QHcL24Qtpxxu8s3t 9Gh/6L8xSomlOCPRUIu5qDgRAM/sJkF0AwAA X-CMS-MailID: 20230309080435eucas1p27d38e373074eeedee7e01db6dc6bac63 X-Msg-Generator: CA X-RootMTR: 20230308181355eucas1p1c94ffee59e210fb762540c888e8eae8a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230308181355eucas1p1c94ffee59e210fb762540c888e8eae8a References: <0b70deae-9fc7-ca33-5737-85d7532b3d33@suse.de> <20230306161214.GB959362@mit.edu> <1367983d4fa09dcb63e29db2e8be3030ae6f6e8c.camel@HansenPartnership.com> X-Rspam-User: X-Rspamd-Queue-Id: 99FC540007 X-Rspamd-Server: rspam01 X-Stat-Signature: jr7gcawimbctd1bnqe9ct5d68dtx5hdr X-HE-Tag: 1678349078-718612 X-HE-Meta: U2FsdGVkX19GJivfUgptKbAJzdEQ5uSXF8b4ipfQVVeyWDU9K70Q9JwR3J0B7/kmo5nU3RYioZ+vzXtT4fL/RFcJzBWqbK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icity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 08.03.2023 13:13, James Bottomley wrote: >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. > FTL designs are complex. We have ways to maintain sector sizes under 64 bits, but this is a common industry problem. The media itself does not normally oeprate at 4K. Page siges can be 16K, 32K, etc. Increasing the block size would allow for better host/device cooperation. As Ted mentions, this has been a requirement for HDD and SSD vendor for years. It seems to us that the time is right now and that we have mechanisms in Linux to do the plumbing. Folios is ovbiously a big part of this.