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

How to reduce cache size and how to know the real downloading image data? #1646

Open
wangguangju opened this issue Nov 6, 2024 · 1 comment

Comments

@wangguangju
Copy link

I started a container using an image in nydus format, but I how some questions:

1, The cache data occupies a large space and does not save disk space on the machine. How do I reduce the size of the cache? Is it configurable?

2, How do I know how much image real data has been downloaded in lazy load mode? The current snapshot directory shows the data size and does not represent the actual data downloads?

root@bogon:/var/lib/containerd/io.containerd.snapshotter.v1.nydus$ du -sh *
1.3G cache
0 config
284K logs
172K metadata.db
80K nydus.db
1.2G snapshots
0 socket

@imeoer
Copy link
Collaborator

imeoer commented Nov 14, 2024

  1. configure nydusd config.json to set fs_prefetch.enable: false, it means that only on-demand data will be downloaded.
  2. du -sh /var/lib/containerd/io.containerd.snapshotter.v1.nydus/cache

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