vmtouch
Manage the filesystem cache. tldr-pages
On several platforms
Several platforms
Print the cache status of a file
vmtouch path/to/fileIdentifyLoad a file into cache
vmtouch -t path/to/fileIdentifyEvict a file from cache
vmtouch -e path/to/fileIdentifyLock a file in cache to prevent eviction from memory
vmtouch -l path/to/fileIdentifyLock a file and daemonize the program
vmtouch -ld path/to/fileIdentify