mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* (no subject)
@ 2026-02-04  7:14 Chi Zhiling
  2026-02-04  7:14 ` [PATCH v1 1/3] exfat: add block readahead in exfat_chain_cont_cluster Chi Zhiling
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Chi Zhiling @ 2026-02-04  7:14 UTC (permalink / raw)
  To: linux-fsdevel, linux-kernel
  Cc: Namjae Jeon, Sungjong Seo, Yuezhang Mo, Chi Zhiling

From: Chi Zhiling <chizhiling@kylinos.cn>

Subject: [PATCH v1 0/3] exfat: optimize exfat_chain_cont_cluster for large file conversion

When an exFAT file cannot allocate contiguous space, it converts from
NO_FAT_CHAIN to FAT_CHAIN format. For large files, this conversion can
be extremely slow due to:
1. Sequential FAT block reads without readahead
2. Mark buffer dirty and mirroring operations for each cluster

This series addresses these bottlenecks through two optimizations:

1. Block readahead: Read-ahead consecutive FAT blocks to reduce I/O wait
2. Buffer caching: Cache buffer heads and commit dirty buffer per block
   instead of per cluster

Performance improvements for converting a 30GB file:
| Cluster Size | Original | After Patches | Speedup |
|--------------|----------|---------------|---------|
| 512 bytes    | 47.667s  | 1.866s        | 25.5x   |
| 4KB          | 6.436s   | 0.236s        | 27.3x   |
| 32KB         | 0.758s   | 0.034s        | 22.3x   |
| 256KB        | 0.117s   | 0.006s        | 19.5x   |

All criticism and suggestions are welcome :)


Chi Zhiling (3):
  exfat: add block readahead in exfat_chain_cont_cluster
  exfat: drop parameter sec for exfat_mirror_bh
  exfat: optimize exfat_chain_cont_cluster with cached buffer heads

 fs/exfat/exfat_fs.h |  9 ++++-
 fs/exfat/fatent.c   | 96 ++++++++++++++++++++++++++++++++++++---------
 2 files changed, 85 insertions(+), 20 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-05  2:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-04  7:14 Chi Zhiling
2026-02-04  7:14 ` [PATCH v1 1/3] exfat: add block readahead in exfat_chain_cont_cluster Chi Zhiling
2026-02-05  1:39   ` Namjae Jeon
2026-02-05  2:13     ` Chi Zhiling
2026-02-04  7:14 ` [PATCH v1 2/3] exfat: drop parameter sec for exfat_mirror_bh Chi Zhiling
2026-02-04  7:14 ` [PATCH v1 3/3] exfat: optimize exfat_chain_cont_cluster with cached buffer heads Chi Zhiling
2026-02-04  7:19 ` Chi Zhiling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®