V
V
Vlad Odies2019-05-26 13:55:36
Solid State Drives
Vlad Odies, 2019-05-26 13:55:36

Ram disk for swap file, does it make sense?

Hello. There is a game server. At the time of saving the world, even with an SSD, the server freezes. Powerful hardware i9-9900K, 64GB RAM, SSD. Increasing the paging file on the SSD helps a little a little, but this method does not completely eliminate this problem. Does it make sense for this problem to make a paging file in a RAM disk?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem @Jump, 2019-05-27
@odies

Ram disk for swap file, does it make sense?
No.
It's like a bicycle with square wheels.
The reason for accessing the paging file is lack of memory.
Conclusion - you need to increase the memory or put up with swapping.
To create a Ram disk in RAM is to deliberately reduce the size of the memory, and force the computer to actively swap, and to the same memory that is not enough.
As a result, the efficiency of memory use will drop significantly, there will be a serious load on the processor due to active swapping, and since the swap will be small, there will be no sense from it.
Although if you can create a disk in RAM that is two to three times larger than RAM, without reducing the amount of available memory, then it might make sense :)
At the time of saving the world, even with an SSD, the server freezes
  • Firstly, you need to monitor the server load at the time of saving, in order to know exactly what it is. Not the fact that in a disk or in storage.
  • Secondly - if the bottleneck is the speed of the disk, it makes sense to install a faster disk, or fix problems with the current disk. What SSD do you have now? How much free space does it have, does TRIM work, is over provisioning sufficient, what is the amount of recording while saving the world?

S
SagePtr, 2019-05-26
@SagePtr

The point of the swap file is to add memory when the physical memory is over. Putting it in physical memory is stupid, it's like taking two boxes (for the sake of more volume) and putting one in the other.

S
Saboteur, 2019-05-26
@saboteur_kiev

no. modern ssd is not far from ramdisk in terms of speed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question