From: Chao Yu <chao@kernel.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: chao@kernel.org, jaegeuk@kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, linux-block@vger.kernel.org
Subject: Re: [PATCH v3] f2fs: introduce flush_policy sysfs entry
Date: Tue, 12 Aug 2025 15:53:54 +0800 [thread overview]
Message-ID: <dec5b832-53f1-4274-902c-418f01df9458@kernel.org> (raw)
In-Reply-To: <aJruCTOjcj1nEk-S@infradead.org>
On 8/12/25 15:32, Christoph Hellwig wrote:
> On Tue, Aug 12, 2025 at 02:28:46PM +0800, Chao Yu wrote:
>> BTW, I suffered extremely long latency of checkpoint which may block every
>> update operations when testing generic/299 w/ mode=lfs mount option in qemu,
>> then I propose to use PREFLUSH instead of FUA to resolve this issue.
>>
>> "F2FS-fs (vdc): checkpoint was blocked for 24495 ms"
>>
>> I just realize that using cache=directsync option in qemu can avoid FUA hang
>> issue, anyway, let me test more w/ this option.
>
> Well, for decent qemu performance you always want to use DIRECT I/O.
> directsync is generally not a very good idea as it forces every write
> to be synchronous and will give you very bad performance.
Yeah, I think that may hurt the performance too, at least, I don't see
any obvious change for time cost of generic/299 testcases, but still I
need to run all my testcase to see what will happen. :)
generic/299 115s ... 113s
>
> What did you use before? At least for older qemu the default was
> buffered I/O, which can lead to very expensive fua or flush calls.
Previously, I didn't use any cache= option, as manual described, it
should equal to cache=wrteback.
Thanks,
WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Christoph Hellwig <hch@infradead.org>
Cc: linux-block@vger.kernel.org, jaegeuk@kernel.org,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [f2fs-dev] [PATCH v3] f2fs: introduce flush_policy sysfs entry
Date: Tue, 12 Aug 2025 15:53:54 +0800 [thread overview]
Message-ID: <dec5b832-53f1-4274-902c-418f01df9458@kernel.org> (raw)
In-Reply-To: <aJruCTOjcj1nEk-S@infradead.org>
On 8/12/25 15:32, Christoph Hellwig wrote:
> On Tue, Aug 12, 2025 at 02:28:46PM +0800, Chao Yu wrote:
>> BTW, I suffered extremely long latency of checkpoint which may block every
>> update operations when testing generic/299 w/ mode=lfs mount option in qemu,
>> then I propose to use PREFLUSH instead of FUA to resolve this issue.
>>
>> "F2FS-fs (vdc): checkpoint was blocked for 24495 ms"
>>
>> I just realize that using cache=directsync option in qemu can avoid FUA hang
>> issue, anyway, let me test more w/ this option.
>
> Well, for decent qemu performance you always want to use DIRECT I/O.
> directsync is generally not a very good idea as it forces every write
> to be synchronous and will give you very bad performance.
Yeah, I think that may hurt the performance too, at least, I don't see
any obvious change for time cost of generic/299 testcases, but still I
need to run all my testcase to see what will happen. :)
generic/299 115s ... 113s
>
> What did you use before? At least for older qemu the default was
> buffered I/O, which can lead to very expensive fua or flush calls.
Previously, I didn't use any cache= option, as manual described, it
should equal to cache=wrteback.
Thanks,
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
next prev parent reply other threads:[~2025-08-12 7:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 3:48 [f2fs-dev] [PATCH v3] f2fs: introduce flush_policy sysfs entry Chao Yu via Linux-f2fs-devel
2025-08-07 3:48 ` Chao Yu
2025-08-07 5:31 ` [f2fs-dev] " Zhiguo Niu
2025-08-07 5:31 ` Zhiguo Niu
2025-08-11 10:52 ` Christoph Hellwig
2025-08-11 10:52 ` [f2fs-dev] " Christoph Hellwig
2025-08-11 13:44 ` Bart Van Assche
2025-08-11 13:44 ` [f2fs-dev] " Bart Van Assche via Linux-f2fs-devel
2025-08-12 6:39 ` Chao Yu
2025-08-12 6:39 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-08-12 6:28 ` Chao Yu
2025-08-12 6:28 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2025-08-12 7:32 ` Christoph Hellwig
2025-08-12 7:32 ` [f2fs-dev] " Christoph Hellwig
2025-08-12 7:53 ` Chao Yu [this message]
2025-08-12 7:53 ` Chao Yu via Linux-f2fs-devel
2025-08-12 7:59 ` Christoph Hellwig
2025-08-12 7:59 ` [f2fs-dev] " Christoph Hellwig
2025-08-12 8:22 ` Chao Yu
2025-08-12 8:22 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dec5b832-53f1-4274-902c-418f01df9458@kernel.org \
--to=chao@kernel.org \
--cc=hch@infradead.org \
--cc=jaegeuk@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.