osrf / icra2023_ros2_gz_tutorial

ICRA 2023 tutorial on ROS 2 and the new Gazebo (MT28, ICC Capital Suite 14)
Apache License 2.0
229 stars 33 forks source link

Docker save and load commands for file on disk #24

Closed mabelzhang closed 1 year ago

mabelzhang commented 1 year ago

Tested docker save and docker load, for writing/reading Docker image to/from disk.

I didn't test on USB stick, only on internal SSD on my host machine. Took 5 minutes to output to gzip on disk (only maintainers need to do this), 1 minute to load gzip back to Docker (users need to do this).

For reference, the read speed of SanDisk 32GB Ultra USB 3.0 Flash Drive USB is 100 MB/s. My SSD's write speed is 727 MB/s, read speed is 8.3 GB/s :sweat_smile:

$ sudo /sbin/sysctl -w vm.drop_caches=3
$ sync; dd if=/dev/zero of=tempfile bs=1M count=1024; sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 1.47615 s, 727 MB/s
$ dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.129964 s, 8.3 GB/s

Commands from here

Soooooooooo we should test on those USBs to get a better estimate.