Mac 용 Docker 의 디스크 처리량 약 2배 향상

5489 단어 DockerMac

2018-08-0615:38 Stable Edition 부활 알림


Docker Community Edition 18.06-ce-mac70 2018-07-25를 통해 raw 형식을 다시 사용할 수 있습니다.
Re-enable raw as the the default disk format for users running macOS 10.13.4 and higher. Note this change only takes effect after a “reset to factory defaults” or “remove all data” (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
  • Docker for Mac Stable release notes | Docker Documentation
  • 실제로 Reset disk image 또는 Reset to factory defaults는raw 형식이다.

    다음에는 꼭 라우 포맷을 즐겨주세요.
    @jca02266 메시지 감사합니다!

    2018-06-00802:01 Edge Edition 부활 알림


    Docker Community Edition 18.05-0-ce-rc1-mac632018-04-26(Edge)을 통해 raw 형식을 다시 사용할 수 있습니다.
    Re-enable raw as the the default disk format for users running macOS 10.13.4 and higher. Note this change only takes effect after a “reset to factory defaults” or “remove all data” (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
  • Docker for Mac Edge release notes | Docker Documentation
  • 아직 Stable 릴리스에 게시되지 않았습니다.Stable 버전이 도착하면 변경 공지가 업데이트됩니다.
    @takecore@github 메시지 감사합니다!

    2018-03-00113:35 revert 알림


    버그가 있어서 Docker Community Edition 17.122.0-ce-mac55 2018-02-27(Stable)에 답장이 왔어요.
    Revert the default disk format to qcow2 for users running macOS 10.13 (High Sierra). There are confirmed reports of file corruption using the raw format which uses sparse files on APFS. Note this change only takes effect after a reset to factory defaults (from the Whale menu -> Preferences -> Reset). Related to docker/for-mac#2625
  • Disk/image corruption with large numbers of files · Issue #2625 · docker/for-mac
  • Docker Community Edition 17.12.0-ce-mac55 2018-02-27 (Stable)
  • 이하 원고


    Docker for Mac의 발매 노트를 봤어요.
    For systems running APFS on SSD on High Sierra, use raw format VM disks by default. This improves disk throughput (from 320MiB/sec to 600MiB/sec in dd on a 2015 MacBook Pro) and disk space handling.
    Existing disks are kept in qcow format, if you want to switch to raw format you need to “Remove all data” or “Reset to factory defaults”
    Docker Community Edition 17.12.0-ce-mac46 2018-01-09 (Stable)
    Docker Community Edition 17.122.0-ce-mac46 2018-01-09(Stable) 업데이트에서는 디스크 처리량이 320MiB/sec에서 600MiB/sec로 바뀐 것 같아 적용됩니다.
    APFS, SSD, High Sierra에 유효합니다.
    이미 적용됐기 때문에 효과를 측정할 수는 없지만 절차만 여기에 적는다.

    한 번 초기화


    현황 확인.
    Disk image location에서 확장자는 qcow2입니다.

    가상 디스크 형식을 변경하려면 Remove all data 또는 Reset to factory defaults를 한 번 수행해야 합니다.
    Reset to factory defaults를 진행하면 CPU를 사용하거나 메모리 등을 사용하는 설정도 초기화돼 시행Remove all data된다.

    새로운 형식으로 가상 디스크 이미지를 만들어 보세요.

    $ docker run hello-world 새 가상 디스크 이미지의 형식을 확인하십시오.
    $ docker run hello-world
    Unable to find image 'hello-world:latest' locally
    latest: Pulling from library/hello-world
    ca4f61b1923c: Pull complete
    Digest: sha256:66ef312bbac49c39a89aa9bcc3cb4f3c9e7de3788c944158df3ee0176d32b751
    Status: Downloaded newer image for hello-world:latest
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    가상 디스크 이미지의location을 확인한 후 확장자가 raw로 바뀌는지 확인하십시오.

    dd 명령 시도


    비록 사후에만 있지만, 나는 dd 명령으로 10GB를 쓸 때의 로그를 남길 것이다.
  • MacBook Pro (Retina, 13-inch, Early 2015)
  • 2.7 GHz Intel Core i5
  • 8 GB 1867 MHz DDR3
  • $ docker run -it alpine time dd if=/dev/zero of=/test bs=262144 count=40960
    40960+0 records in
    40960+0 records out
    real    1m 5.46s
    user    0m 0.32s
    sys     0m 36.67s
    

    좋은 웹페이지 즐겨찾기