Quantcast
Channel: Caching/preloading files on Linux into RAM - Server Fault
Viewing all articles
Browse latest Browse all 19

Answer by seeker for Caching/preloading files on Linux into RAM

$
0
0

vmtouch seems like a good tool for the job.

Highlights:

  • query how much of a directory is cached
  • query how much of a file is cached (also which pages, graphical representation)
  • load file into cache
  • remove file from cache
  • lock files in cache
  • run as daemon

vmtouch manual

EDIT:Usage as asked in the question is listed in example 5 on vmtouch Hompage

Example 5Daemonise and lock all files in a directory into physical memory:vmtouch -dl /var/www/htdocs/critical/

EDIT2:As noted in the comments, there is now a git repository available.


Viewing all articles
Browse latest Browse all 19

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>