Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LRU-based cache size limiting #1

Open
tvierling opened this issue Aug 11, 2013 · 1 comment
Open

Add LRU-based cache size limiting #1

tvierling opened this issue Aug 11, 2013 · 1 comment

Comments

@tvierling
Copy link
Owner

This would make it possible to limit the amount of cache space used for local files.

The algo should be least-recently-used, meaning that the atime would be needed in order to determine last access. This should still be possible with a fs mounted "relatime" (though not "noatime") on Linux; and memory-based filesystems (e.g., tmpfs) usually have atime support always enabled. (Make sure to document this requirement as part of the configuration.)

@tvierling
Copy link
Owner Author

Seems some newer kernels default to relatime, so this may require setting a "strictatime" mount option to force atime updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant