Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp354929pxb; Tue, 3 Nov 2020 01:05:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQBahxG1h2kcsgRbr6nmHjyolMSCF41J+Hn08d1Nv6NXbq4oUmSMNsiQqahGv8QH+usblV X-Received: by 2002:a05:6402:1c9b:: with SMTP id cy27mr12666770edb.161.1604394333026; Tue, 03 Nov 2020 01:05:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604394333; cv=none; d=google.com; s=arc-20160816; b=0mwMSKAISDI5aO68yzLjWhFdshLdTYyvjWsf2EsMi/JFIVhYJ5njtVnqxDaWAkhvdT OGn0/3Kmt1lKwalTexZn95acXUxbucuIrh6Gxh0PXoey73aQ4OO+KrFn5Cziol6E9yNj ZzgsI6aHee36VEJOSDTVNWHLi7LdkCyOpT6mog9Ewupr/r3wuZEO7jaJFkP+nPFGkNpT me52zSZXYhQM2sRz6imhpMMLxx7q4ts+sAP6jEavzeMBuXSxmu7Z90227x/VgK472ZjD RuJ52YrtUPY8yVyqyWMR2pSX+0a2hwe1f0SnylN6IQYUNrKWmF4g9eqGj1oWgRxYPO05 ycHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=o12VY5wEqyIvKiVy7gQYf6mEI936BrgLpo94W8Ng4DI=; b=HFIp/fbF70tjVBUos7NaCqffL7bBept1v6ZRH1dmqyf4Fpz0bMIT8vF1qkP7tSui0L NlJ9sau58JxcaVRvV5FCKHUdMPesld9tTzxaiGXB/Mjjy/uNrpeZHR6OWUmrjUW7Gwf/ ZtNXzeaIULL/cI9ikoowDOVRblsrI4V69wAkk/idQQ7zb6iCtSDRH4a3fhvH7EEs8rX+ P26raj40o89mw38QtMz3nZzGSsYY1qF1y5uxLTtgN5v7toAlLZcWPDC4GzJHAVZCkjig Xd8/vF7iLI+rvmeZDuIqqwomV9Td/xBHGsgkluuhAqhFYIYQcxv5XKgep8f42W/dBOmA 8vXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si223760edz.199.2020.11.03.01.05.10; Tue, 03 Nov 2020 01:05:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbgKCJBn (ORCPT + 99 others); Tue, 3 Nov 2020 04:01:43 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6739 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgKCJBn (ORCPT ); Tue, 3 Nov 2020 04:01:43 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CQP0c512kzkdXq; Tue, 3 Nov 2020 17:01:36 +0800 (CST) Received: from [10.136.114.67] (10.136.114.67) by smtp.huawei.com (10.3.19.208) with Microsoft SMTP Server (TLS) id 14.3.487.0; Tue, 3 Nov 2020 17:01:36 +0800 Subject: Re: [PATCH v2] f2fs: change write_hint for hot/warm nodes To: , "jaegeuk@kernel.org" , "chao@kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-f2fs-devel@lists.sourceforge.net" , yongmyung lee , Jieon Seol , Sang-yoon Oh , Mankyu PARK , Sung-Jun Park , Keoseong Park , SEUNGUK SHIN , Jinyoung CHOI , Jaemyung Lee References: <20201103083832epcms2p6c8b0e4470f1392772317ab2b25256b3d@epcms2p6> From: Chao Yu Message-ID: Date: Tue, 3 Nov 2020 17:01:36 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20201103083832epcms2p6c8b0e4470f1392772317ab2b25256b3d@epcms2p6> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.136.114.67] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/3 16:38, Daejun Park wrote: > In the fs-based mode of F2FS, the mapping of hot/warm node to > WRITE_LIFE_NOT_SET should be changed to WRITE_LIFE_SHORT. > > As a result of analyzing the write pattern of f2fs using real workload, > hot/warm nodes have high update ratio close to hot data.[*] > However, F2FS passes write hints for hot/warm nodes as WRITE_LIFE_NOT_SET. > > Furthermore, WRITE_LIFE_NOT_SET is a default value of write hint when it is > not provided from the file system. > In storage, write_hint is used to distinguish streams (e.g. NVMe). > So, the hot/warm node of F2FS is not distinguished from other write_hints, > which can make the wrong stream seperation. > > * Liang, Yu, et al. "An empirical study of F2FS on mobile devices." 2017 > IEEE 23rd International Conference on Embedded and Real-Time Computing > Systems and Applications (RTCSA). > > Signed-off-by: Daejun Park Reviewed-by: Chao Yu Thanks,