Question
I'm running a minecraft server on windows server 2008, and I'm going to run the world on a RAM disk. However, since a RAM disk is RAM heavy, I would like to minimize or disable block caching in RAM. The read/write speed to the disk will be virtually identical to a cache, and doesn't cause me double overhead.
Is it possible to do disable caching, and if so, how?
Answer
Minecraft isnt caching it in the traditional sense of the word, the data has to be stored in memory owned by minecraft at some point, in order for minecraft to do anything with the data. Even reading it!
Therefor it is not possible to totally disable 'caching'. Its also not possible for minecraft to just use the memory of the RAM disk directly, it has to go through the operating system first, which adds quite a bit of latency (nothing compared to HD access, but compared to RAM access).
So it's not useful to just disable caching, it might be possible to reduce the time until chunks that aren't near any players are unloaded with a plugin, but I have been unable to find one. One hackish way that might work is to reduce the maximum memory minecraft can use, that would force it to unload unused chunks faster.
Of course, the only wasted RAM is RAM that's not being used, so (on a dedicated machine) there is no harm in letting minecraft store something it can access very fast.
Check more discussion of this question.
No comments:
Post a Comment