Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Linux server running about 6 game servers. I have 3 GB total of RAM but I use only about 500 MB. Is there a way to cache one of my game servers (all the files - even not actually used maps etc. - about 1,5 GB) to RAM?

The reason I want to do this is because my Linux server is virtual and the hard drives ar very slow, so there is really big IO wait time.


share|improve this question
up vote 1 down vote accepted

You could simply read each file? That would put them in the cache, so long as nothing else needs that space after you 'read' them.

I think you can accomplish this by just greping each file that you want cached, or use it on the directory with the recursive option to cache every file in said directory.

share|improve this answer
thx, I found answer:… – Marek Javůrek Apr 5 '12 at 19:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.