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

Slow Volume mounts performance #146

Open
matejsp opened this issue Jan 27, 2022 · 1 comment
Open

Slow Volume mounts performance #146

matejsp opened this issue Jan 27, 2022 · 1 comment

Comments

@matejsp
Copy link
Contributor

matejsp commented Jan 27, 2022

I am in a process of validating colima for development (instead of Docker Desktop).

Using volume mounts for python environment using volume pointing to our source code.
If I compare Docker Desktop mounted volume performance and colima it is a lot slower (2x slower).

docker-compose:

    volumes:
      - ./:/dev:cached

Running time pytest in our code (with 70k of files):

case 1: Docker for Desktop
real 0m10.292s
user 0m4.504s
sys 0m0.768s

case 2: colima (same as before)
real 0m21.650s
user 0m6.904s
sys 0m0.750s

case 3: colima copy all files to not mounted folder inside container
real 0m5.358s
user 0m5.040s
sys 0m0.257s

It seems that sharing a folder from host has a significant penalty.
Is it possible to optimise this? Somehow caching files in qemu?

@jklewa
Copy link

jklewa commented Jan 31, 2022

Relevant discussion and benchmarks of volume mount options with QEMU NixOS/nixpkgs#122420 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants