This would be similar to the vmtouch -l command in linux:
http://hoytech.com/vmtouch/vmtouch.html
http://hoytech.com/vmtouch/
Daemonise and lock all files in a directory into physical memory:
vmtouch -dl /var/www/htdocs/critical/
http://hoytech.com/vmtouch/vmtouch.html
http://hoytech.com/vmtouch/
Daemonise and lock all files in a directory into physical memory:
vmtouch -dl /var/www/htdocs/critical/