-
Notifications
You must be signed in to change notification settings - Fork 63
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 new memory management options for FUSE driver #15
Comments
@cipriancraciun feel free to check out https://github.com/mhx/dwarfs/tree/next-release which implements both features (and some other stuff to go into the next release). New options are documented here. |
@mhx I'll try to experiment with that branch at the end of this week. However until then I've looked at the pointed documentation and I would suggest changing a little the names to better reflect what is happening behind the scenes:
In fact I would suggest also adding the complementary of each, i.e. |
Thanks for the suggestions, they're indeed much better. I wasn't really happy with my choices either. The I'm going to almost go with your suggestions, but I think that |
Naming updated in 0ca5a29. |
Yup, makes more sense than my initial proposal. |
Granted you might be right. Next time that I try DwarFS, I'll issue a
sysctl -q vm.drop_caches=3
which if I'm not mistaken should drop the kernel file-system caches.(In what follows I refer to the
dwarfs
image as justimage
, and to the uncompressed files exposed through the mount point asfiles
.)However, on the same topic, wouldn't it be useful to have the following complementary options:
dwarfs
daemon accesses the image without using the kernel cache (either viaO_DIRECT
or by usingmadvise
withMADV_DONTNEED
in case ofmmap
access after a block was used);At the moment I think that both the files and the image are eventually cached by the kernel, thus increasing the memory pressure of the system.
However by using the two proposed options, one could fine tune the CPU / memory usage to fit one's particular use-case:
Originally posted by @cipriancraciun in #9 (comment)
The text was updated successfully, but these errors were encountered: