You can adjust and view the LucidLink cache through the command-line interface 'lucid cache' and 'lucid config' commands.
The "lucid cache" command can be used to see the current cache configuration and turn the cache on or off.
Usage: lucid cache [options]
Display cache information as well as control the cache
Options:
[--info] Display cache information
--on Turn the cache on
--off Turn the cache off
--drop Clear all evictable pages from the cache.
--size size Size of the cache in MiB
Cache status:
lucid cache
State: enabled Backend writes: enabled Page size: 1MiB Pinnable limit: 20GiB Cache limit: 25GiB Current size on disk: 203.20MiB Pinned size on disk: 0B Remaining upload: 0B
Clear all evictable pages from the cache:
lucid cache --drop
To change the cache size from the command line you need to use lucid config.
usage: lucid config --explain [--KEY1 --KEY2 ...] Key: DataCache.Size Description: Local data cache size. The default is 5GB. 80% of the size is available for pinning. Value constraints: Min 100MB. Max 10TB. Supported units: MB, GB, TB. Default value: 5GiB
Example: Change the LucidLink cache size to 10GB (applied once there are no remaining uploads):
lucid config --set --DataCache.Size 10G