Apple M1의 도커 동기화 성능

2428 단어 m1armdocker
docker-sync로 동기화하는 것이 기본으로 실행하는 것보다 여전히 빠릅니다(즉시 사용 가능).

설정



하드웨어


  • 애플 M1 프로
  • 32GB
  • 몬테레이
  • "VirtioFS 가속 디렉토리 공유 활성화"실험 기능이 선택됨

  • Mac용 Docker(전용)


  • 버전: 4.9.1 (81317)
  • 메모리: 8GB
  • CPU: 5

  • 결과



    토종의




    docker run -it -v /tmp:/var/www alpine time dd if=/dev/zero of=/var/www/test.dat bs=1024 count=100000
    100000+0 records in
    100000+0 records out
    real    0m 9.31s
    user    0m 0.25s
    sys     0m 3.91s
    


    Docker 동기화 - 전략: native_osx




    git clone https://github.com/EugenMayer/docker-sync-boilerplate
    cd docker-sync-boilerplate/default
    # Set a custom image in docker-sync.yml
    #    appcode-native-osx-sync:
    # +    native_osx_image: eugenmayer/unison:2.51.3-4.12.0-ARM64
    docker-sync-stack start
    



    docker exec -it default-app-native-osx-1 time dd if=/dev/zero of=/var/www/test.dat bs=1024 count=100000
    100000+0 records in
    100000+0 records out
    real    0m 0.35s
    user    0m 0.03s
    sys     0m 0.31s
    


    Docker-Sync - 전략: Unison




    git clone https://github.com/EugenMayer/docker-sync-boilerplate
    cd docker-sync-boilerplate/unison
    # Set a custom image in docker-sync.yml
    #    appcode-unison-sync: # tip: add -sync and you keep consistent names as a convention
    #      src: './app'
    #      sync_strategy: 'unison'
    # +    unison_image: eugenmayer/unison:2.51.3-4.12.0-ARM64
    docker-sync-stack start
    



    docker exec -it unison-app-unison-1 time dd if=/dev/zero of=/var/www/test.dat bs=1024 count=100000
    100000+0 records in
    100000+0 records out
    real    0m 0.31s
    user    0m 0.03s
    sys     0m 0.28s
    


    참조


  • Performance — docker-sync 0.5.11 documentation
  • _image Configuration — docker-sync 0.5.11 documentation
  • 좋은 웹페이지 즐겨찾기