News for hackers. Stuff that matters.
Re:Freqfs: In-memory filesystem cache for Rust by alexruf on Friday October 01, 2021 @03:23PM (#28722419)
Personally I don’t see a scenario for myself, but I can imagine that there are some where this might be useful. But isn’t there a extremely high risk of data loss an inconsistency when adding an extra layer on top of OS file system handling?
Re:Freqfs: In-memory filesystem cache for Rust by ericbarrett on Friday October 01, 2021 @04:35PM (#28723144)
Freqfs seems like a shim you'd add to an existing project for a quick optimization. Whereas mmap et al. are "better" the same way any specific, built-to-purpose code will be "better" than just bolting a framework on. Sometimes it's the right call to do the extra work; sometimes it's 100% more effort (both development and maintenance) for an extra 10% gain.
Re:Freqfs: In-memory filesystem cache for Rust by haydnv on Friday October 01, 2021 @04:04PM (#28722802)
If there is any concurrent access to cached files not through freqfs, there is a risk of inconsistency and crashes.