Reducing Server lag
- 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
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
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.
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...
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.
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
What benifits does leveldb have over sqlite?Hybrid Dog wrote:you could use leveldb for the map file, I think
Maybe that is why...we have 12,000 player files D: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...
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.
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
Ok. And that would be awesome. Anyone known where I could find it?Hybrid Dog wrote:http://en.wikipedia.org/wiki/LevelDB
I think someone already wrote a script to delete empty player files automatically.
Hmmm, porting to freeminer might be quite a challenge and I don't really like some of the other features which cannot be disabled.rubenwardy wrote:Freeminer has better server capacity, providing that you disable weather and other laggy crap like finite liquids.
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
No Problem I'm Glad I could help!
Last edited by Amaz on Wed Mar 05, 2014 18:38, edited 1 time in total.
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
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
- 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>
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
register_on_global_step()Hybrid Dog wrote:how?Krock wrote: - mapgen limits to: x, z from -2000 to 2000, y from -6000 to 300
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>
- CraigyDavi
- Member
- Posts: 582
- Joined: Sat Aug 10, 2013 13:08
- GitHub: davisonio
- IRC: davisonio
- In-game: CraigyDavi
- Location: Hampshire, UK
- Contact:
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.
- BrandonReese
- Member
- Posts: 839
- Joined: Wed Sep 12, 2012 00:44
- GitHub: bremaweb
- IRC: BrandonReese
- In-game: BrandonReese
- Location: USA
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.proller wrote:freeminer have lag less 1s even with 50 players with default settings...
My Twitch Channel - https://www.twitch.tv/brandonreese81/profile
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- 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
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
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
Re: Reducing Server lag
A player that hasn't visited in over a year isn't much of a player - delete them!Milan* wrote:(snip)
There are playerfiles from "real" players but they can be over a year old :o
- 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
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 :(
It is possible to check the filecontent but i dont have enough experience with code :(
-
- Member
- Posts: 4290
- Joined: Sun Sep 09, 2012 17:31
- GitHub: Sokomine
- IRC: Sokomine
- In-game: Sokomine
Re: Reducing Server lag
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.KCoombes wrote: A player that hasn't visited in over a year isn't much of a player - delete them!
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.
Re:
LoL, max_lag 12? Maybe 1.2 or even 0.12? That is insane :/BrandonReese wrote: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.proller wrote:freeminer have lag less 1s even with 50 players with default settings...
- Tmanyo
- Member
- Posts: 196
- Joined: Mon Sep 29, 2014 01:20
- GitHub: Tmanyo
- IRC: Tmanyo
- In-game: tmanyo
- Location: United States
- Contact:
Re:
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.rubenwardy wrote:Freeminer has better server capacity, providing that you disable weather and other laggy crap like finite liquids.
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
http://www.rrhmsservers.ml
Servers I Host:
Tmanyo-Realism
Mods of mine that I don't totally hate:
Bank Accounts
T-Rating
Tmusic Player
Re: Reducing Server lag
Minetest 0.4.14 has lot of lag space , that should improve it
Who is online
Users browsing this forum: No registered users and 18 guests