News: 0001642658

  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)

EROFS With Linux 7.2 Better Handles Large Sparse AI Datasets, More Efficient I/O

([Linux Storage] 2 Hours Ago EROFS)


The EROFS open-source read-only file-system has some nice enhancements in place for the [1]Linux 7.2 kernel.

First up, EROFS now has optimized mapping of requests for chunk-based inodes. The new EROFS chunk mapping code has been optimized for more efficient I/O performance. There are no performance numbers indicated with the erofs_map_chunks() patch but the I/O performance is simply reported to be more efficient without quantifying.

The other big EROFS change is that sparsee support has been added to the pcluster layout code. The motivation here is on helping large, sparse AI datasets. Alibaba engineer and EROFS maintainer Gao Xiang explained of the sparse support for pcluster layout in [2]the patches :

"Although zeros can be compressed transparently on EROFS using fixed-size output compression so that it is never prioritized in the Android use cases, indicating entire pclusters as holes is still useful to preserve holes in the sparse datasets; otherwise overlayfs will allocate more space when copying up, and SEEK_HOLE won't report any hole.

This patch introduces two ways to mark a pcluster as a hole."

Meanwhile EROFS previously marked its FSCACHE back-end as deprecated and it's been removed with Linux 7.2. EROFS with FSCACHE was originally intended to provide image lazy pulling functionality. But since FSCACHE later made NETFS a hard dependency, that's what led to EROFS deprecating the feature and now removing it. Similar functionality has since been implemented with file-backed mounts and fanotify pre-content hooks.

More details on these now-merged EROFS file-system updates for Linux 7.2 via [3]this pull request .



[1] https://www.phoronix.com/search/Linux+7.2

[2] https://lore.kernel.org/all/20260621194414.489939-1-hsiangkao@linux.alibaba.com/

[3] https://lore.kernel.org/lkml/ajlRA7jYcsnYPXiw@debian/



Persons attempting to find a motive in this narrative will be prosecuted;
persons attempting to find a moral in it will be banished; persons attempting
to find a plot in it will be shot. By Order of the Author
-- Mark Twain, "The Adventures of Huckleberry Finn"