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

Mount lxcfs in direct_io mode by default #20

Closed
q53 opened this issue Apr 7, 2015 · 2 comments
Closed

Mount lxcfs in direct_io mode by default #20

q53 opened this issue Apr 7, 2015 · 2 comments

Comments

@q53
Copy link

q53 commented Apr 7, 2015

Currently lxcfs mounts with enabled FS cache by default. As result any file size request (getattr call) produce a whole file read for calculate an actual size (because of a file cache restrictions). That is ridiculous for auto-generated content of procfs/sysfs, which file size not reflect space consuming by any real data set. So maybe do mount with force direct_io and returns zero as size in getattr call(as procfs really do)?

@hallyn
Copy link
Member

hallyn commented Apr 7, 2015

That sounds good. Do you have a patch we can test for this?

@q53
Copy link
Author

q53 commented Apr 7, 2015

Well, a patch pretty trivial.
I did the pull request.

@hallyn hallyn closed this as completed in 7253e0a Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants