Page 1 of 1

Server speedup

PostPosted: Thu Oct 30, 2014 17:36
by neko259
What are the tricks to speed up the server? The first that comes in mind is to put the world into tmpfs and sync it with the disk once an hour or so. Will this work, or minetest already holds the active map in memory and putting the whole world there will be useless?

Re: Server speedup

PostPosted: Thu Oct 30, 2014 17:45
by Esteban

Re: Server speedup

PostPosted: Thu Oct 30, 2014 17:49
by neko259
Esteban wrote:Using these setting in the minetest.conf can speed up a server:
https://forum.minetest.net/viewtopic.php?id=7879
https://forum.minetest.net/viewtopic.php?id=1825

Yeah, I know that. I'm talking about speeding it up from out of minetest.

Re: Server speedup

PostPosted: Thu Oct 30, 2014 17:56
by Krock
What exactly do you try to speed up?
Your server? Get a better one.
Your Harddisk? Defrag it.

Re: Server speedup

PostPosted: Thu Oct 30, 2014 17:59
by neko259
Krock wrote:What exactly do you try to speed up?
Your server? Get a better one.
Your Harddisk? Defrag it.

btrfs does not fragment :P
I'm just thinking, not trying to speedup a particular server. Will putting it to tmpfs give a profit?

Re: Server speedup

PostPosted: Fri Oct 31, 2014 12:28
by neko259
I can tell now what exactly I want to speedup. I am the only player on the server, and when I try to open or close a door there is sometimes a 1-2 second lag. Minetest process does not take too much CPU or ram, so it's not the PC performance issue. Something in the game engine is very slow, and I try to understand, what is the issue.

Re: Server speedup

PostPosted: Fri Oct 31, 2014 16:15
by Krock
neko259 wrote:I can tell now what exactly I want to speedup. I am the only player on the server, and when I try to open or close a door there is sometimes a 1-2 second lag. Minetest process does not take too much CPU or ram, so it's not the PC performance issue. Something in the game engine is very slow, and I try to understand, what is the issue.

Maybe you've got a slow connection? I do not notice such big lags.

Re: Server speedup

PostPosted: Fri Oct 31, 2014 21:42
by Calinou
There is not much to do outside of Minetest to speed up a server. Try automatic daily restarts to free up some RAM.

Re: Server speedup

PostPosted: Tue Mar 31, 2015 05:03
by lightonflux
neko259 wrote:btrfs does not fragment :P


It is a false believe that ext4 and nowadays btrfs do not need defragmentation.

ext4 and btrfs use online fragmentation. So the FS does it in the background while it is used. Back in the days when windows had the magnificent defrag screen at startup this believe came to life because the windowses only supported offline defragmentation.