threefoldtech / rfs

A fuse filesystem in rust
Apache License 2.0
1 stars 1 forks source link

read efficiency improvment #2

Closed muhamadazmy closed 1 year ago

muhamadazmy commented 2 years ago

Currently a filesystem read operation is not optimal because of the following:

This is not very efficient in case of a sequential file read. Let's assume someone opens a large file then start reading it sequentially. This means a single block can be Open, Seeked, then read then closed, then on the next read call the same file will be Open, seeked then read again (specially for large files)

Instead the system need to be improved so feels are not closed immediately (can be kept open in memory in some sort of a cache/map) where they can be closed when are not needed or not used in a while.