2023-05-12 01:35:49

by Sijie Lan

[permalink] [raw]
Subject: Is compression available under direct-io mode?

Hi, guys,

When I do some specific test scenarios, I want to do some direct write
after data have been compressed in F2FS, but when I track the internal
functions, it seems F2FS forces my direct-io request to buffer-io
mode. Does it mean we can not do the write direct-io if we applied the
compression feature? In other words, must f2fs use an inside buffer to
provide compression functions?


2023-05-17 02:47:44

by Chao Yu

[permalink] [raw]
Subject: Re: [f2fs-dev] Is compression available under direct-io mode?

On 2023/5/12 9:10, Sijie Lan wrote:
> Hi, guys,
>
> When I do some specific test scenarios, I want to do some direct write
> after data have been compressed in F2FS, but when I track the internal
> functions, it seems F2FS forces my direct-io request to buffer-io
> mode. Does it mean we can not do the write direct-io if we applied the

Yes, compression feature depends on page cache.

Thanks,

> compression feature? In other words, must f2fs use an inside buffer to
> provide compression functions?
>
>
> _______________________________________________
> Linux-f2fs-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel