From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965076AbdADIZw (ORCPT ); Wed, 4 Jan 2017 03:25:52 -0500 Received: from szxga02-in.huawei.com ([119.145.14.65]:17025 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757160AbdADIZr (ORCPT ); Wed, 4 Jan 2017 03:25:47 -0500 Subject: Re: [f2fs-dev] [PATCH 04/10] f2fs: support IO alignment for DATA and NODE writes To: Jaegeuk Kim , , , References: <20161230185117.3832-1-jaegeuk@kernel.org> <20161230185117.3832-4-jaegeuk@kernel.org> From: Chao Yu Message-ID: <7920f143-750a-69df-f4b3-eeac82c1014b@huawei.com> Date: Wed, 4 Jan 2017 16:23:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20161230185117.3832-4-jaegeuk@kernel.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.586CB105.0261,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: ec71ec49ef7f9f8c1c1c6ec1f643e524 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jaegeuk, On 2016/12/31 2:51, Jaegeuk Kim wrote: > This patch implements IO alignment by filling dummy blocks in DATA and NODE > write bios. If we can guarantee, for example, 32KB or 64KB for such the IOs, > we can eliminate underlying dummy page problem which FTL conducts in order to > close MLC or TLC partial written pages. > > Note that, > - it requires "-o mode=lfs". > - IO size should be power of 2, not exceed BIO_MAX_PAGES, 256. > - read IO is still 4KB. > - do checkpoint at fsync, if dummy NODE page was written. Which scenario we can benefit from? Any numbers? I doubt that there are some potential side-effect points: - write amplification will be more serious than before - free space will be more fragmented since dummy blocks is separated in whole address space - there is less chance to merge small(unaligned) IOs in block layer Thoughts? Thanks,