From: Chao Yu Subject: Re: [PATCH] f2fs: remove unneed reada during build free nids Date: Sun, 11 Feb 2018 11:12:22 +0800 Message-ID: <4ef3567d-247f-a631-9b21-37701ed9f238@huawei.com> References: <1518148722-31212-1-git-send-email-heyunlei@huawei.com> <42B685BFA705F94C860C6DD0752F05654832E9FF@DGGEMA503-MBX.china.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.191] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1eki42-00069x-D1 for linux-f2fs-devel@lists.sourceforge.net; Sun, 11 Feb 2018 03:12:26 +0000 Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by sfi-mx-1.v28.ch3.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) id 1eki40-0002mc-TR for linux-f2fs-devel@lists.sourceforge.net; Sun, 11 Feb 2018 03:12:26 +0000 In-Reply-To: <42B685BFA705F94C860C6DD0752F05654832E9FF@DGGEMA503-MBX.china.huawei.com> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: heyunlei , Chao Yu , "jaegeuk@kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" On 2018/2/11 9:55, heyunlei wrote: > > >> -----Original Message----- >> From: Chao Yu [mailto:chao@kernel.org] >> Sent: Friday, February 09, 2018 9:37 PM >> To: heyunlei; jaegeuk@kernel.org; Yuchao (T); linux-f2fs-devel@lists.sourceforge.net >> Subject: Re: [f2fs-dev] [PATCH] f2fs: remove unneed reada during build free nids >> >> On 2018/2/9 11:58, Yunlei He wrote: >>> This patch remove unneed reada during build free nids. >>> If few nids left, three will introduce a lot of no hit >>> read io. >> >> I guess it is due to be lack of commit c1fe3e981440 ("Revert "f2fs: >> reuse nids more aggressively""), before that commit, we will update >> .next_scan_nid randomly instead of updating it ascendingly, then >> during __build_free_nids we may readahead NAT pages starting from >> random position. > > I think commit c1fe3e981440 will reduce fragment of nat area, it > will locate all used nids at the left head of nat area, which I think > will do benefit to WA ? Yup, IMO, it can reduce WA. ;) Also, there is another patch intends to reduce WA by adjusting allocation policy of free nid. FYI https://patchwork.kernel.org/patch/10084653/ > > e.g, if we have used 10000 nids, which will hold 10000/455 blocks at least. > Without this commit, the blocks taken for nids will expansion, may be 10000 > blocks in the worst case, at this time, if we update node info, we will produce > more nat IOs? That's right. Thanks, > >> >> Could try that commit to check IO again? >> >> Thanks, ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot