Re: [f2fs-dev] Compressed files & the page cache

2025-07-16 Thread Gao Xiang
On 2025/7/17 10:49, Eric Biggers wrote: On Wed, Jul 16, 2025 at 11:37:28PM +0100, Phillip Lougher wrote: ... buffer. I suspect that vmap() (or vm_map_ram() which is what f2fs uses) is actually more efficient than these streaming APIs, since it avoids the internal copy. But it would need

Re: [f2fs-dev] Compressed files & the page cache

2025-07-16 Thread Eric Biggers via Linux-f2fs-devel
On Wed, Jul 16, 2025 at 11:37:28PM +0100, Phillip Lougher wrote: > > There also seems to be some discrepancy between filesystems whether the > > decompression involves vmap() of all the memory allocated or whether the > > decompression routines can handle doing kmap_local() on individual pages. > >

Re: [f2fs-dev] Compressed files & the page cache

2025-07-16 Thread Nanzhe Zhao
Dear Mr.Matthew and other fs developers: I'm very sorry.My gmail maybe be blocked for reasons I don't know.I have to change my email domain. > So, my proposal is that filesystems tell the page cache that their minimu= m > folio size is the compression block size. That seems to be around 64k, > so

Re: [f2fs-dev] Compressed files & the page cache

2025-07-16 Thread Phillip Lougher
On 15/07/2025 21:40, Matthew Wilcox wrote: I've started looking at how the page cache can help filesystems handle compressed data better. Feedback would be appreciated! I'll probably say a few things which are obvious to anyone who knows how compressed files work, but I'm trying to be explic

Re: [f2fs-dev] [PATCH] f2fs: f2fs supports uncached buffered I/O

2025-07-16 Thread hanqi via Linux-f2fs-devel
在 2025/7/16 11:43, Jens Axboe 写道: On 7/15/25 9:34 PM, hanqi wrote: ? 2025/7/15 22:28, Jens Axboe ??: On 7/14/25 9:10 PM, Qi Han wrote: Jens has already completed the development of uncached buffered I/O in git [1], and in f2fs, the feature can be enabled simply by setting the FOP_DONTCACHE