Open sundy-li opened 2 months ago
I'd like to implement this.
But should this feature be a directory level or file level?
I mean the direct-io flag should apply to the whole root
dir or the specific file? If the file, it seems currently no way to pass the flag, should add it to OpRead/OpWrite/...
?
Also, the read/write file using the internal FsReader/FsWriter which have internal buffer, is this a little bit conflict?
But should this feature be a directory level or file level?
I believe it should at Service
level, users should specify this flag while configuring this backend.
Also, the read/write file using the internal FsReader/FsWriter which have internal buffer, is this a little bit conflict?
It's still meaningful since we can avoid in-kernel memory cache.
I believe it should at
Service
level, users should specify this flag while configuring this backend.It's still meaningful since we can avoid in-kernel memory cache.
OK, got it.
Feature Description
Support direct io mode in fs backend
Problem and Solution
By using direct io, we can directly write/read into file system without through page-cache, which is useful in DBMS to control the memory.
Additional Context
No response
Are you willing to contribute to the development of this feature?