Re:Freqfs: In-memory filesystem cache for Rust
by haydnv on Friday October 01, 2021 @04:01PM
(#28722773)
It might be possible to replace freqfs with mmap on a POSIX OS, but a) you would still have to implement your own read-write lock, and b) you would (I think probably?) lose some consistency in behavior across different host operating systems.
[ Parent
| on HN ]
Re:Freqfs: In-memory filesystem cache for Rust
by vlovich123 on Friday October 01, 2021 @04:15PM
(#28722949)
Which OSes does this run on that doesn’t have some kind of mmap operation?
Re:Freqfs: In-memory filesystem cache for Rust
by haydnv on Friday October 01, 2021 @05:17PM
(#28723467)
It should work on Windows (because tokio::fs works on Windows) although I have not personally tested this
Re:Freqfs: In-memory filesystem cache for Rust
by julian37 on Friday October 01, 2021 @05:35PM
(#28723643)
You can do mmap on Windows, eg. https://github.com/danburkert/memmap-rs
Re:Freqfs: In-memory filesystem cache for Rust
by gpderetta on Friday October 01, 2021 @04:10PM
(#28722895)
mmaps for read, explicit API for writing, a-la LMDB. Buggy readers can read inconsistent data but cannot corrupt the os.