-
Notifications
You must be signed in to change notification settings - Fork 122
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
Very slow fsync() on shared container volume #560
Comments
Yeps.. I can see the same behaviour. Thanks @osheroff for investigating :-) |
fsync on OSX unfortunately slower than on Linux: see mirage/mirage-block-unix#49 for the initial issue and mirage/mirage-block-unix#52 for the "fix". Since beta27 we allow to turn on an "experimental" mode where fsync is faster but less safe: if your computer crashed in the middle of an fsync, we won't guarantee in that mode that you won't corrupt the qcow2 image ... so use it at your own risk. Closing as a duplicate of #668 (comment) |
This looks like it is related to bind mounts rather than block device syncs. I haven't reproduced it yet but I am reopening as the block device issue is not the likely cause. |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
When re-creating a development database, mysql under docker will call
fsync()
a lot. these calls are taking between 25 and 30ms each. The container was booted as:You can see the slowness under strace:
Information
Steps to reproduce the behavior
Note that tuning and tweaking mysql to do less fsyncs gets some mild speed win, but nowhere near native speeds.
The text was updated successfully, but these errors were encountered: