Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

IO: http://i.stack.imgur.com/7HLhB.png

share|improve this question
add comment

1 Answer

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: serverfault.com/questions/43383/… –  Marek Javůrek Apr 5 '12 at 19:29
add comment

Your Answer

 
discard

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.