News: 0001537848

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.15 exFAT Can Delete Files Much Faster: 4+ Minutes To 1.6 Second Optimization

([Linux Storage] 97 Minutes Ago exFAT)


For those dealing with [1]exFAT formatted storage devices under Linux, the upcoming [2]Linux 6.15 kernel has a big optimization for yielding much faster delete performance when making use of the "discard" mount option.

The exFAT file-system updates were sent out today for the kernel driver with Linux 6.15. There are some small fixes and optimizations to this exFAT driver but most striking is the improvement to delete performance when leveraging the discard mount option.

Yuezhang Mo of Sony made the improvement to support batch discard of clusters when freeing clusters. Mo explained in that patch:

"If the discard mount option is enabled, the file's clusters are discarded when the clusters are freed. Discarding clusters one by one will significantly reduce performance. Poor performance may cause soft lockup when lots of clusters are freed.

This commit improves performance by discarding contiguous clusters in batches."

For deleting an 80G test file, on prior kernels atop an exFAT file-system it took 286 seconds while with this patch for Linux 6.15 it drops down to 1.6 seconds! It's quite an improvement for those using exFAT file-systems with the discard mount option:

The exFAT patches for Linux 6.15 can be found via [3]this pull request .



[1] https://www.phoronix.com/search/exFAT

[2] https://www.phoronix.com/search/Linux+6.15

[3] https://lore.kernel.org/lkml/CAKYAXd_E0eM8dfoU1HVQ+DW4YKMsrzfJbGTsQELjfy=R+omndw@mail.gmail.com/



V1tol

bug77

archola

avis

rmfx

One of your most ancient writers, a historian named Herodotus, tells of a
thief who was to be executed. As he was taken away he made a bargain with
the king: in one year he would teach the king's favorite horse to sing
hymns. The other prisoners watched the thief singing to the horse and
laughed. "You will not succeed," they told him. "No one can."
To which the thief replied, "I have a year, and who knows what might
happen in that time. The king might die. The horse might die. I might die.
And perhaps the horse will learn to sing.
-- "The Mote in God's Eye", Niven and Pournelle