From: Wenjie Qi <qwjhust@gmail.com>
To: jaegeuk@kernel.org, chao@kernel.org
Cc: linux-f2fs-devel@lists.sourceforge.net,
linux-kernel@vger.kernel.org, hch@lst.de, jack@suse.cz,
axboe@kernel.dk, tz2294@columbia.edu, baohua@kernel.org,
linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-mm@kvack.org, qiwenjie@xiaomi.com, qwjhust@gmail.com
Subject: [PATCH v6 0/2] f2fs: enable buffered RWF_DONTCACHE
Date: Fri, 27 Nov 2026 16:48:43 +0800 [thread overview]
Message-ID: <cover.1795746008.git.qiwenjie@xiaomi.com> (raw)
In-Reply-To: <cover.1788795700.git.qiwenjie@xiaomi.com>
This series enables buffered RWF_DONTCACHE on F2FS for one-pass streaming
I/O, where retaining the transferred data can displace more useful cache.
Patch 1 marks dropbehind write bios with BIO_COMPLETE_IN_TASK. Normal and
dropbehind folios may share otherwise mergeable IPU and OPU bios; the flag
is set when a dropbehind folio joins a bio. The block layer handles
deferral from unsafe completion contexts.
Patch 2 passes FGP_DONTCACHE to the buffered write folio lookup and
advertises FOP_DONTCACHE, enabling buffered reads and writes. Internal
write_begin callers that pass a NULL kiocb remain supported.
Tests used x86-64 QEMU/KVM with two vCPUs, 2 GiB RAM, and an NVMe-backed
F2FS image. Each attempt transferred a 1-GiB file sequentially in a fresh
guest, with memory.max=255852544 (244 MiB) and memory.swap.max=0. Normal
and dontcache each ran ten counterbalanced rounds. Values below are
arithmetic means of the ten runs per mode. Write throughput excludes the
final fdatasync().
Throughput was:
Operation I/O Normal MiB/s Dontcache MiB/s Change
Read 1 MiB 4137.96 5869.38 +41.84%
Write 8 KiB 686.09 1752.24 +155.39%
Write 1 MiB 714.91 2161.02 +202.28%
Average memory.current was:
Operation I/O Normal MiB Dontcache MiB Change
Read 1 MiB 197.26 13.70 -93.06%
Write 8 KiB 214.22 13.15 -93.86%
Write 1 MiB 215.20 19.52 -90.93%
Mean reclaim counters per run were:
Operation I/O pgscan normal/DC pgsteal normal/DC
Read 1 MiB 200999.7/0 200888.4/0
Write 8 KiB 201136.8/0 201120.8/0
Write 1 MiB 200899.3/0 200883.3/0
Scan counts pages examined by reclaim; steal counts pages reclaimed.
memory.current includes all memory charged to the workload, not only
file-cache pages.
Dontcache left zero target pages resident after reads and one 4-KiB page
after write synchronization.
Changes since v5:
- Rebase onto the F2FS dev branch, adapting the bio tagging to the
sub-folio merge paths and excluding metadata-cache I/O.
- Drop the Android 6.12 backport results, as its dropbehind implementation
differs substantially from that in the current dev branch.
- Add memory-limited read results and update the write results,
reporting arithmetic means of ten runs per mode.
Wenjie Qi (2):
f2fs: complete dropbehind write bios in task context
f2fs: enable buffered RWF_DONTCACHE
fs/f2fs/data.c | 10 ++++++++++
fs/f2fs/file.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
base-commit: b61a029304bb5531312ebc133b2a895d14dc3fee
--
2.43.0
WARNING: multiple messages have this Message-ID (diff)
From: Wenjie Qi <qwjhust@gmail.com>
To: jaegeuk@kernel.org, chao@kernel.org
Cc: axboe@kernel.dk, baohua@kernel.org, jack@suse.cz,
linux-kernel@vger.kernel.org,
linux-f2fs-devel@lists.sourceforge.net,
linux-block@vger.kernel.org, linux-mm@kvack.org,
qiwenjie@xiaomi.com, linux-fsdevel@vger.kernel.org,
tz2294@columbia.edu, hch@lst.de
Subject: [f2fs-dev] [PATCH v6 0/2] f2fs: enable buffered RWF_DONTCACHE
Date: Fri, 27 Nov 2026 16:48:43 +0800 [thread overview]
Message-ID: <cover.1795746008.git.qiwenjie@xiaomi.com> (raw)
In-Reply-To: <cover.1788795700.git.qiwenjie@xiaomi.com>
This series enables buffered RWF_DONTCACHE on F2FS for one-pass streaming
I/O, where retaining the transferred data can displace more useful cache.
Patch 1 marks dropbehind write bios with BIO_COMPLETE_IN_TASK. Normal and
dropbehind folios may share otherwise mergeable IPU and OPU bios; the flag
is set when a dropbehind folio joins a bio. The block layer handles
deferral from unsafe completion contexts.
Patch 2 passes FGP_DONTCACHE to the buffered write folio lookup and
advertises FOP_DONTCACHE, enabling buffered reads and writes. Internal
write_begin callers that pass a NULL kiocb remain supported.
Tests used x86-64 QEMU/KVM with two vCPUs, 2 GiB RAM, and an NVMe-backed
F2FS image. Each attempt transferred a 1-GiB file sequentially in a fresh
guest, with memory.max=255852544 (244 MiB) and memory.swap.max=0. Normal
and dontcache each ran ten counterbalanced rounds. Values below are
arithmetic means of the ten runs per mode. Write throughput excludes the
final fdatasync().
Throughput was:
Operation I/O Normal MiB/s Dontcache MiB/s Change
Read 1 MiB 4137.96 5869.38 +41.84%
Write 8 KiB 686.09 1752.24 +155.39%
Write 1 MiB 714.91 2161.02 +202.28%
Average memory.current was:
Operation I/O Normal MiB Dontcache MiB Change
Read 1 MiB 197.26 13.70 -93.06%
Write 8 KiB 214.22 13.15 -93.86%
Write 1 MiB 215.20 19.52 -90.93%
Mean reclaim counters per run were:
Operation I/O pgscan normal/DC pgsteal normal/DC
Read 1 MiB 200999.7/0 200888.4/0
Write 8 KiB 201136.8/0 201120.8/0
Write 1 MiB 200899.3/0 200883.3/0
Scan counts pages examined by reclaim; steal counts pages reclaimed.
memory.current includes all memory charged to the workload, not only
file-cache pages.
Dontcache left zero target pages resident after reads and one 4-KiB page
after write synchronization.
Changes since v5:
- Rebase onto the F2FS dev branch, adapting the bio tagging to the
sub-folio merge paths and excluding metadata-cache I/O.
- Drop the Android 6.12 backport results, as its dropbehind implementation
differs substantially from that in the current dev branch.
- Add memory-limited read results and update the write results,
reporting arithmetic means of ten runs per mode.
Wenjie Qi (2):
f2fs: complete dropbehind write bios in task context
f2fs: enable buffered RWF_DONTCACHE
fs/f2fs/data.c | 10 ++++++++++
fs/f2fs/file.c | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
base-commit: b61a029304bb5531312ebc133b2a895d14dc3fee
--
2.43.0
_______________________________________________
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:[~2026-11-27 8:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 12:59 [PATCH v4 0/2] f2fs: enable buffered RWF_DONTCACHE Wenjie Qi
2026-09-03 12:59 ` [f2fs-dev] " Wenjie Qi
2026-09-03 12:59 ` [PATCH v4 1/2] f2fs: complete dropbehind write bios in task context Wenjie Qi
2026-09-03 12:59 ` [f2fs-dev] " Wenjie Qi
2026-09-04 22:35 ` Tal Zussman
2026-09-04 22:35 ` [f2fs-dev] " Tal Zussman
2026-09-03 12:59 ` [PATCH v4 2/2] f2fs: enable buffered RWF_DONTCACHE Wenjie Qi
2026-09-03 12:59 ` [f2fs-dev] " Wenjie Qi
2026-09-05 7:07 ` [syzbot ci] " syzbot ci
2026-09-05 7:07 ` [f2fs-dev] " syzbot ci
2026-09-05 13:29 ` [PATCH] f2fs: handle NULL kiocb in write_begin Wenjie Qi
2026-09-05 13:29 ` [f2fs-dev] " Wenjie Qi
2026-09-05 14:09 ` [syzbot ci] " syzbot ci
2026-09-05 14:26 ` [syzbot ci] Re: f2fs: enable buffered RWF_DONTCACHE syzbot ci
2026-09-05 14:26 ` [f2fs-dev] " syzbot ci
2026-09-08 3:55 ` [PATCH v5 0/2] " Wenjie Qi
2026-09-08 3:55 ` [f2fs-dev] " Wenjie Qi
2026-09-08 3:55 ` [PATCH v5 1/2] f2fs: complete dropbehind write bios in task context Wenjie Qi
2026-09-08 3:55 ` [f2fs-dev] " Wenjie Qi
2026-09-08 3:55 ` [PATCH v5 2/2] f2fs: enable buffered RWF_DONTCACHE Wenjie Qi
2026-09-08 3:55 ` [f2fs-dev] " Wenjie Qi
2026-09-15 1:57 ` [f2fs-dev] [PATCH v5 0/2] " Wenjie Qi
2026-09-15 1:57 ` Wenjie Qi
2026-11-27 8:48 ` Wenjie Qi [this message]
2026-11-27 8:48 ` [f2fs-dev] [PATCH v6 " Wenjie Qi
2026-11-27 8:48 ` [PATCH v6 1/2] f2fs: complete dropbehind write bios in task context Wenjie Qi
2026-11-27 8:48 ` [f2fs-dev] " Wenjie Qi
2026-11-28 8:49 ` sashiko-bot
2026-11-27 8:48 ` [PATCH v6 2/2] f2fs: enable buffered RWF_DONTCACHE Wenjie Qi
2026-11-27 8:48 ` [f2fs-dev] " Wenjie Qi
2026-11-28 8:49 ` sashiko-bot
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=cover.1795746008.git.qiwenjie@xiaomi.com \
--to=qwjhust@gmail.com \
--cc=axboe@kernel.dk \
--cc=baohua@kernel.org \
--cc=chao@kernel.org \
--cc=hch@lst.de \
--cc=jack@suse.cz \
--cc=jaegeuk@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=qiwenjie@xiaomi.com \
--cc=tz2294@columbia.edu \
/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.