vmtouch

Diagnose and control file system cache usage on your system

brewmacoslinux
Try with needOr install directly
Source

About

Portable file system cache diagnostics and control

Commands

vmtouch

Examples

Show which files are cached in memory for a directory$ vmtouch -v /path/to/directory
Lock a file into memory (prevent eviction from cache)$ vmtouch -l /path/to/file
Evict a file from memory cache$ vmtouch -e /path/to/file