Rethinking multi-grain timestamps
Rethinking multi-grain timestamps
Posted Oct 9, 2023 16:29 UTC (Mon) by Wol (subscriber, #4433)Parent article: Rethinking multi-grain timestamps
This may be a daft comment, but if the problem is that file1's modification data has been stored in low-res, surely the fix is to at least cache it in hi-res?
If you're caching all modifications in hi-res in the VFS, would that help? Then you do the usual thing of dropping cache on an LRU basis, quite possibly bunching files on an "equal low-res modification time" to drop. You could always specify when to drop based on an aging basis rather than a cache full basis, so a system with loads of space to cache that can stay on top of it for a while (or will that make huge holes in kernel ram?).
Cheers,
Wol
