-
|
Hi, I compared disk space usage between CRI-O and Containerd and found multiple difference in consumption. For example, the same image root@crio:~# crictl images -f reference=nginx
IMAGE TAG IMAGE ID SIZE
docker.io/library/nginx 1.25.5 e784f4560448b 192MB
root@containerd:~# crictl images -f reference=nginx
IMAGE TAG IMAGE ID SIZE
docker.io/library/nginx 1.25.5 e784f4560448b 71MBThus, using the same set of images on the nodes, there is a large difference in the amount of disk space used: root@crio:~# du -sh /var/lib/containers
2.4G /var/lib/containers
2.4G total
root@containerd:~# du -sh /var/lib/containerd
939M /var/lib/containerdContainerd has the option |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
@mtrmac @giuseppe I don't know the background--what was the motivation of storing images untarred on disk? could this have something to do with it? |
Beta Was this translation helpful? Give feedback.
-
|
The problem is related to the overlay mount points. By default cri-o stores them in This is the reason why
Then the results become similar: thanks for help! |
Beta Was this translation helpful? Give feedback.
The problem is related to the overlay mount points. By default cri-o stores them in
/var/lib/containers/storage/overlaywhile containerd does it in/run/containerd/io.containerd.runtime.v2.taskThis is the reason why
du -schshows different results. For correct check withduwe can use arg-x:-x, --one-file-system skip directories on different file systemsThen the results become similar:
thanks for help!