Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1245851lfc; Wed, 1 Jun 2022 12:57:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyf8CjcmBIRR+9ZCRab2LOOyNHBCG2wVVwGXIFIWPuGLaq03gTB5zyxk+oASyS0d4yF7HNI X-Received: by 2002:a17:902:6505:b0:163:b040:829b with SMTP id b5-20020a170902650500b00163b040829bmr1038112plk.173.1654113470702; Wed, 01 Jun 2022 12:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113470; cv=none; d=google.com; s=arc-20160816; b=GKAOnWt2uo+a+Y2GBzRsMQIngjsY+BRJeBmH2gUyLqY2pFMUgzYB3uYN7KqYRbWOti FepP2wDX3itrkts8V86Q0762bYudVkzNM/79Wu7CGKM5/5uHcPnKnHmKR7JJzlJ9tTuV 7hPVg0M4LYkPoOg48A+1ELpvw7IK3CT6Qd3fLN0tpXmoinAUmz1IybgFutzoPGvEx7jc 8WSoktCqvSF9y1gkox5/wvgz/FDapYJRgdHqDw5x+gYo6uFUfD3veyjMm07r/JjSQYXZ rbyCZEfiyfhsFg6KwEwnDkw6uu3DVxO3nfFSSV2C+YYkFvcotmvf4IOjngKkXnAjGmGl h8WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fUA7TJ2clMSFJ5rR8iYkdDB6a7yjJ3rXsQMdNpe/NNM=; b=lMxKZ3iFsHy2SrzR3LSlwNrIi+1GDETt/q2l4cQKiBCE+WG3RP3gGgSgDLv0yYNAIl 7WaMWmYbto4qzV3qlCwOi7OkJt8tvbuiiJ//8MfsPdYZBhKTdfSILgqs9pjICKnk5G3m K9AXAcAgas+nl7N4B4HP0m2r34KWy+gKNlZ86EAvx72zRJ7G/bKrIfjDDJJ327N21yxb wurWQ6WZwbVAHkvY9IJHFxITTnHd7xTRyUhgEBpl+0q0Yt9/pKd5bMvhxZ9+i8lDyx+m VtcAhtAF8tXuobsX5sRPVihJE/mscSisheZi/jU834PAom//I87IqIP1MkgyYjomNs/f tIGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTExhv82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e9-20020a170902ed8900b00161d28c3907si3287006plj.8.2022.06.01.12.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:57:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HTExhv82; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF70D170643; Wed, 1 Jun 2022 12:17:10 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347357AbiEaUP2 (ORCPT + 99 others); Tue, 31 May 2022 16:15:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344224AbiEaUP0 (ORCPT ); Tue, 31 May 2022 16:15:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A23198089; Tue, 31 May 2022 13:15:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0F372B81644; Tue, 31 May 2022 20:15:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DB84C385A9; Tue, 31 May 2022 20:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654028122; bh=BFanbqOhtsJfdsE0t1WgCWXCbNVZbf6rMzjnBDejGko=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HTExhv82IFTfAX9On7K7/OBjqiJbZE6iPiLVuvD4xx82SDjLP9P74u8VjQUVFAjYl ipwq3tQzLRu4WCAoOB9JIjZvP0W8r6gnw6qcSNx7RiF1RvUBlur0Axirx9QoHRO4xQ mIa5TUL/xyxubDp51oQbQjoddfa2708yaXR7QhTbDyXUch3iGCMttd33LEyVHbjjT9 gq98XIBn/tlCG0GYwnLfHur6a6GxGG911xMwSm8K4GCtR51UsL7NzWgvbXkVlJGppV og6hGBkGa9DhTnwHtJ5GGoTvNVvSzmeqXzaqVn+W2rpE3QZ9cgjwzIA2RaKx8qJWFD Xo/D5sYinC2bg== Date: Tue, 31 May 2022 13:15:20 -0700 From: Jaegeuk Kim To: Christoph Hellwig Cc: Eric Biggers , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-block@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH] f2fs: add sysfs entry to avoid FUA Message-ID: References: <20220527205955.3251982-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/27, Christoph Hellwig wrote: > On Fri, May 27, 2022 at 06:06:08PM -0700, Jaegeuk Kim wrote: > > I think there's still some benefit to use FUA such as small chunk writes > > for checkpoint. > > Did you measure if there is? Because some SSDs basically implemented > FUA as an implied flush after the write, in which case it would not > really help there either (but also not hurt). > > But as the previous two maintainers already said - this needs quirking > at the driver layer, not in the submitter. Thanks, I indeed measured this using UFS, and it turned out cache_flush is better than FUA all the time like this. Hence, I posted a quirk [1]. Write(us/KB) 4 64 256 1024 2048 FUA 873.792 754.604 995.624 1011.67 1067.99 CACHE_FLUSH 824.703 712.98 800.307 1019.5 1037.37 [1] https://lore.kernel.org/linux-scsi/20220531201053.3300018-1-jaegeuk@kernel.org/T/#u