Reducing Server lag

Post Reply
User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

Reducing Server lag

by CraigyDavi » Post

Has anyone got any more ideas for reducing server lag?
This is what I have tried already:
- /clearobjects
- Server performance settings
- Choosing lag-free mods
I have also tried a few other smaller things such as limiting amount of players who can join.

The server used to have very little lag but now it has increased a lot, recently and without any new mods being installed.
I have noticed a much larger map file (2GB) and quite a lot more player files which could be increasing the lag.
It is main things like chunks taking ages to load and chat commands taking a lot time to carry out.

I would be much appreciative if anyone could help with a few more ideas :)
Last edited by CraigyDavi on Wed Mar 05, 2014 16:32, edited 1 time in total.

Amaz
Member
Posts: 354
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

by Amaz » Post

I remember reading on the topic of the 0gb.us server that 0gb.us managed to reduce the lag by deleting the player files.
viewtopic.php?pid=112645#p112645 Actually, I'm not sure that is still applicable...
Last edited by Amaz on Wed Mar 05, 2014 16:47, edited 1 time in total.

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

Hybrid Dog wrote:you could use leveldb for the map file, I think
What benifits does leveldb have over sqlite?
Amaz wrote:I remember reading on the topic of the 0gb.us server that 0gb.us managed to reduce the lag by deleting the player files.
viewtopic.php?pid=112645#p112645 Actually, I'm not sure that is still applicable...
Maybe that is why...we have 12,000 player files D:
I suppose I could delete ones which are nearly empty.
Thanks for this :)
Last edited by CraigyDavi on Wed Mar 05, 2014 16:54, edited 1 time in total.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

Freeminer has better server capacity, providing that you disable weather and other laggy crap like finite liquids.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

Hybrid Dog wrote:http://en.wikipedia.org/wiki/LevelDB
I think someone already wrote a script to delete empty player files automatically.
Ok. And that would be awesome. Anyone known where I could find it?
rubenwardy wrote:Freeminer has better server capacity, providing that you disable weather and other laggy crap like finite liquids.
Hmmm, porting to freeminer might be quite a challenge and I don't really like some of the other features which cannot be disabled.

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

Clearing player files seems to have done the trick, thanks a lot Amaz.

Amaz
Member
Posts: 354
Joined: Wed May 08, 2013 08:26
GitHub: Amaz1
IRC: Amaz
In-game: Amaz

by Amaz » Post

No Problem I'm Glad I could help!
Last edited by Amaz on Wed Mar 05, 2014 18:38, edited 1 time in total.

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

My server settings (cause total ~3s lag with 12 players):
- edited MoreTrees leafdecay, reduced to 2 abm's (instead of [insert diffrent leaves count here])
- edited liquid updating to 3s, instead of 1
- using LevelDB
- mapgen limits to: x, z from -2000 to 2000, y from -6000 to 300
minetest.conf wrote:

Code: Select all

max_block_generate_distance = 3
max_block_send_distance = 2
max_simultaneous_block_sends_per_client = 5
max_simultaneous_block_sends_server_total = 25

active_block_range = 2
active_object_send_range_blocks = 2
client_unload_unused_data_timeout = 300
server_unload_unused_data_timeout = 28
server_map_save_interval = 90
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

by Krock » Post

Hybrid Dog wrote:
Krock wrote: - mapgen limits to: x, z from -2000 to 2000, y from -6000 to 300
how?
register_on_global_step()
use a loop for ever player and check if that player walked over the limits.

or

register_on_gererated()
and use there a loop

..and teleport them back to 0, 0, 0
Last edited by Krock on Wed Mar 05, 2014 20:06, edited 1 time in total.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

Thanks Krock! With your settings and the deletion of inactive player files the server now gets less than a second lad even with around 15 players.
Last edited by CraigyDavi on Wed Mar 05, 2014 21:24, edited 1 time in total.

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

freeminer have lag less 1s even with 50 players with default settings...

User avatar
BrandonReese
Member
Posts: 839
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese
Location: USA

by BrandonReese » Post

proller wrote:freeminer have lag less 1s even with 50 players with default settings...
Default settings and no mods? I switched my server setup over to freeminer for testing and 1 person, max_lag is around 12. That's about the same performance as my minetestserver setup. As I'm typing this freeminerserver is at max_lag 15 with one person online, finite liquids and weather off. minetestserver is at max_lag 13 with 7 people online. So it would seem both servers loaded with mods have similar performance.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

There was over 30 seconds of lag on a server with default mods etc. When I tried a Freeminer server, with 30 people on it.

So: citation needed.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

proller
Member
Posts: 222
Joined: Sat Jan 26, 2013 15:22

by proller » Post

max lag can be big from map save, saving one block on big map can took 5-10s.
Look on average lag and responce time (build-dig, inventory items move)

User avatar
Milan*
Member
Posts: 255
Joined: Thu May 28, 2015 06:45
GitHub: tchncs
IRC: Passant
In-game: Milan Passant
Location: Germany
Contact:

Re: Reducing Server lag

by Milan* » Post

Hi there - i got strange lags with just a few players and a not very loaded server.
How can i remove the playerfiles with just the initial stuff in it?
There are playerfiles from "real" players but they can be over a year old :o

KCoombes
Member
Posts: 427
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt
Location: SW Florida, USA

Re: Reducing Server lag

by KCoombes » Post

Milan* wrote:(snip)
There are playerfiles from "real" players but they can be over a year old :o
A player that hasn't visited in over a year isn't much of a player - delete them!

User avatar
Milan*
Member
Posts: 255
Joined: Thu May 28, 2015 06:45
GitHub: tchncs
IRC: Passant
In-game: Milan Passant
Location: Germany
Contact:

Re: Reducing Server lag

by Milan* » Post

There are people i personally like(d). I have fear to dont remember names (to safe before delete).
It is possible to check the filecontent but i dont have enough experience with code :(

Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: Reducing Server lag

by Sokomine » Post

KCoombes wrote: A player that hasn't visited in over a year isn't much of a player - delete them!
There are quite a lot of servers I havn't visited for a year, but which I still value highly and where I even have larger buildings standing around.

On servers that use the areas mod, it ought to be easy to figure out who actually protected something instead of merely beeing a tourist and doing some sightseeing. With other protection mods it might be more tricky.
A list of my mods can be found here.

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re:

by Fixer » Post

BrandonReese wrote:
proller wrote:freeminer have lag less 1s even with 50 players with default settings...
Default settings and no mods? I switched my server setup over to freeminer for testing and 1 person, max_lag is around 12. That's about the same performance as my minetestserver setup. As I'm typing this freeminerserver is at max_lag 15 with one person online, finite liquids and weather off. minetestserver is at max_lag 13 with 7 people online. So it would seem both servers loaded with mods have similar performance.
LoL, max_lag 12? Maybe 1.2 or even 0.12? That is insane :/

User avatar
Tmanyo
Member
Posts: 196
Joined: Mon Sep 29, 2014 01:20
GitHub: Tmanyo
IRC: Tmanyo
In-game: tmanyo
Location: United States
Contact:

Re:

by Tmanyo » Post

rubenwardy wrote:Freeminer has better server capacity, providing that you disable weather and other laggy crap like finite liquids.
Freeminer has a nice more modern Menu. It seems to have speedier performance but it is not that popular. There are only around like 2-4 servers last time I checked.
Tmanyo
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player

snowflake
Member
Posts: 215
Joined: Mon Nov 16, 2015 16:50

Re: Reducing Server lag

by snowflake » Post

Minetest 0.4.14 has lot of lag space , that should improve it

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests