Most block-based filesystems (block-based meaning the data on the disk is stored in blocks) have a latency of around 10μs (microseconds). While this is significantly slower than the throughput of a SSD, this typically is not a bottleneck as most applications don’t read or write that much data each second. OSXFS has a limit throughput of 250 MB/s. Modern systems with SSDs can achieve throughput up to at least a few GBs/second. ![]() Latency is the time it takes for a file system call (e.g. Throughput is the rate at which data can be processed. There are two dimensions to filesystem performance: throughput and latency. On Linux, Docker can mount directories and files directly, whereas, on Mac, Docker has to pass the request to Mac (osxfs) for each file read/write. The root of the problem lies in the OS file system layer between Docker and Mac. WARNING: You should have experience with Docker and Docker Compose in advance, in order to understand the post. This post will guide you step-by-step on how to set up your local machine. To help solve this problem when developing on MacOS, one of the solutions we can use is a tool called docker-sync. ![]() Running web app on Docker on MacOS can be quite slow, especially when you run multiple containers with file sync from the host machine to containers.
0 Comments
Leave a Reply. |