overlaybd
overlaybd copied to clipboard
How to clear the local layer cache
How to clear the local layer cache ? Can I delete the cached files in the ’registryCacheDir‘ directory directly? Is the relevant information stored in the memory?
Yes you can, but remember to restart the overlaybd service.
Nothing will remain in memory except the OS page cache.
Does pagecache refer to pagecache of local layer cache files?
Yes, removing files on will not erase their page cache, you have to drop them manually and wait enough time til the OS recycles them.
Can you elaborate on your purpose?
@beef9999 i think there's no need to care about page cache.
That's generally true if we are not running some kind of performance tests. So I was asking his purpose.
Similar to gc, periodically release useless cache files to free up space
Asking a question unrelated to this question, does overlaybd restart affect running containers?
iSCSI protocol has the ability to reconnect, block device will remain unaffected if the iSCSI target becomes alive in time.
Similar to gc, periodically release useless cache files to free up space
We have ensured the cache does not exceed maximum amount of the user specified size, an internal eviction will be running.
Of course we will be appreciated if you contribute more intelligent code to do the gc.
I understand that overlaybd ensures cache max storage space . Because we want to save the information of the base image, delete other data first.