mineshaftgap / d4m-nfs

Docker for Mac with NFS for performance improvements over osxfs
296 stars 26 forks source link

ENH: add `mkrakauer-rio/disable-full-sync-on-flush.sh` to start up process. #50

Closed davidjeddy closed 6 years ago

davidjeddy commented 7 years ago

Docker for Mac - Disable full disk sync on flush: https://gist.github.com/mkrakauer-rio/e7d9de75f5ac680e790365748ca188a4

if-kenn commented 7 years ago

@davidjeddy sorry, this needs much more information than a simple gist. The gist itself is also not explanatory enough, for example, looking at a few Docker for Mac implementations I cannot find the reference directory ~/Library/Containers/com.docker.docker/Data/database/disk.

davidjeddy commented 7 years ago

@if-kenn not a problem, I was in a bit of a rush yesterday.

What this does is disabled full disk cache flushing; by doing so it has a positive impact on performance concerning disk read/write.

For example importing a sql dump file. Now instead of flushing the disk between each operation the daemon flies right through it like nobodies business.

The Gist does this by altering some default configuration flags buried in the com.docker.driver configuration files.

davidjeddy commented 6 years ago

Any movement on integrating this as part of the startup process?

if-kyle commented 6 years ago

No, unlikely to happen anytime soon as we hope docker for mac will just improve the speed of their mounting.

davidjeddy commented 6 years ago

Understood, TY. Closing.