

If you have /etc/init.d/minecraft, delete it or overwrite it with this script. Again, this is a modified version of the script found at Aimless Bits. It's now a matter of simply running a modified script that loads the files on the drive onto the server, copies them back on a timely basis to prevent data loss, and does backups. Mount -t tmpfs none /home/username/minecraft_ramdisk -o size=512m The ramdisk then loads every time you restart. Make sure that you give yourself some overhead. The size of the ramdisk MUST be larger than the minecraft directory world. Tmpfs /home/username/minecraft_ramdisk tmpfs defaults,size=512m 0 0 Then add this line, making sure that the path is correct (username, dir name etc.)

To mount it as a ramdisk, simply edit your /etc/fstab/ file:.Firstly, start by creating a directory for the ramdisk in your home directory, i.e.It also helps to be familiar with the /etc/init.d/minecraft startup script. This quick guide assumes you have a user for loading minecraft, a minecraft directory and a server running. This guide fleshes out the process and makes some minor changes to Aimless Bits' script. It involves modifying the server startup script available on the wiki and making some minor changes to fstab. RAM disks work well when your application. Make sure to back up your files before starting! GNU/Linux (easy way)Ī simple way to load a minecraft server into a ramdisk was posted on the Aimless Bits blog on March 12, 2011. You can allocate some of this memory to create a RAM disk with exceptionally low latency and high throughput. Since a Minecraft world currently consists of very many chunk files, seek time is equally, if not more, important for overall speed. By moving the data into the RAM, access times are near instant and data transfer rates become significantly faster, making chunk loading and saving much faster operations. In a Minecraft server, one of the strongest bottlenecks are disk I/O related operations (e.g. Unfeasible if the world size exceeds the available RAM.Ramdisks are cleared when a system restarts (Not true for Dataram RAMDisk).Very low seek time (searching between and in files).Very high transfer speed (data to application).Many utilities however make it possible to backup Ramdisk data at set intervals, and before the system is shut down, then load the last data when the system starts up. They offer significantly higher data transfer rates (between 3,000MB/s and 15,000MB/s) at the cost of volatility (data is lost after restarting the computer) and space (limited by the amount of RAM installed on the system, including swap space). Ramdisks are virtual file systems (unlike HDDs which are hardware) that live completely inside the computer's RAM. 4 Why it makes sense for Minecraft serversĬonventionally, files and directories are stored on hard disk drives which, by today's standards, offer a lot of space at mediocre data transfer rates (between 80MB/s and 200MB/s).
