Hi All,
We are in the process of upgrading our modded 20x server which is currently using about 10gb of RAM. We are looking at using SWAP on linux e.g. 8gb of ram and then using 2+ of swap on a NVME, has anyone had any experience with this and if it has had a noticable affect on performance? Any feedback is appreciated.
Cheers.
RAM Swap on NVME
Using swap will decrease your performance. It's an indisputable fact.
JimDeadlock
Using swap will decrease your performance. It's an indisputable fact.
That is not 100% true for all cases. It is true, that reading and writing ops on a drive is slower than in RAM, no doubts. But the resulting performance is determined with many factors including speed of the target drive, available ram and other. Using swap is actually essential to give OS the ability to drop less-used data on it to free space for data which is actively used. WIth Nvme speeds there should be no problems running the server.
If he is spending money on an upgrade I would suggest putting it towards more RAM rather than blowing it on an NVME drive for swapping, but that's just me.
JimDeadlock
If he is spending money on an upgrade I would suggest putting it towards more RAM rather than blowing it on an NVME drive for swapping, but that's just me.
The providers where I intend to set up the server are limited and a lot more expensive than in the US plus the one I am looking at comes with NVME. Obviously if there was more options things would be easier but there aren't which is why I made this post specifically about asking for peoples experiences with swap to potentially make this upgrade more viable. What specifically degrades when you say that it will decrease performance. Are we talking about FPS/rubber banding type of performance degradation? Thanks
Thanks for the feedback. Have you tried it personally?2CHEVSKII
That is not 100% true for all cases. It is true, that reading and writing ops on a drive is slower than in RAM, no doubts. But the resulting performance is determined with many factors including speed of the target drive, available ram and other. Using swap is actually essential to give OS the ability to drop less-used data on it to free space for data which is actively used. WIth Nvme speeds there should be no problems running the server.
haxateThanks for the feedback. Have you tried it personally?
Running 16gb of ram and 16gb of swap on the work pc with visual studio, rust, rust server and browser opened simultaniously. Have to mention my drive has 3+gb/s read and 1.5gb/s write speed so it is pretty responsive.
Hi all,
Just a follow up for those thinking of trying it.
After testing this and using NVME swap on a heavily modded server, I can confirm that I ran into a lot of issues once the entity count gets over 100k. The server took a very very long time to boot up and once I pasted lots of large bases in, the server would just begin to freeze for long periods.
Cheers.