Anyone using a RAMDisk?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Joey19982

New Member
Jul 29, 2019
68
0
0
I've been talking to my hosting company lately about upgrading to a RAMDisk. Before I decide though, I'm wondering if any other server admins out there use it.

I'm wary of getting one because I know FTB can crash unexpectedly at times, especially with TickThreading on my server. If the server crashes, is the world wiped out when it starts?

Also, I run a fairly large FTB server so the world is huge. It's taking up about 45GB right now, and the max RAM I can get is 64GB. Some of that needs to be reserved for other things as well, so I'm thinking only 50GB will be able to be used. Is there a way to make it that only the overworld is stored on the RAMDisk, then Mystcraft and other worlds are stored on the SSD/HDD?

Thanks for your time, looking forward to some responses.
 

Quantax

New Member
Jul 29, 2019
22
0
0
I've been talking to my hosting company lately about upgrading to a RAMDisk. Before I decide though, I'm wondering if any other server admins out there use it.

I'm wary of getting one because I know FTB can crash unexpectedly at times, especially with TickThreading on my server. If the server crashes, is the world wiped out when it starts?

It won't wipe unless your server (as in OS) clears the RAM (e.g. server hardware loses power or OS restart). While mounted, the ramdisk acts pretty much like any hard media. Just sync it regularly to disk, say every five minutes or so.

Also, I run a fairly large FTB server so the world is huge. It's taking up about 45GB right now, and the max RAM I can get is 64GB. Some of that needs to be reserved for other things as well, so I'm thinking only 50GB will be able to be used. Is there a way to make it that only the overworld is stored on the RAMDisk, then Mystcraft and other worlds are stored on the SSD/HDD?

I guess you could symlink the other world directories on ramdisk to your hard drive and keep only OW on ramdisk.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
Using a RamDisk is basically the ultimate in chunk loading performance increases. Assuming your processor can keep up its even faster than running solid state drives in Raid 0. Basically you need a script that:

1. Creates the RamDisk, then copies the last backup onto it.
2. Starts the server and points it to the overworld being on the RamDisk.
3. Every 5 or 10 minutes copies the RamDisk world to the hard drive.
4. Does a final copy then shuts down the server cleanly.

Assuming you can or know someone to write that script and you can afford the amount of memory needed, then go for it!