Profiler

From Pandorabox
Revision as of 01:11, 16 October 2019 by Thailand (talk | contribs)
Jump to navigation Jump to search

Profiler

is an build in mod, activated via "profiler.load = true" in minetest.conf file

usage "/profiler save" by an server admin getting out a text file "profiler date-time.txt" to check out.

The file I (Thailand) got, is from 11.09.2019

A File contains summary and single part from all activated mods

example

more_chests:                                            
 - on_joinplayer[1] ..................................  

with numbers for

  • min µs
  • max µs (leads to peaks, used for rank peaks)
  • avg µs (lead to avg lag, used for rank B)
  • min %
  • max %
  • avg % (lead to avg lag, used for rank A)
  • avg : mean time making work for cpu
  • peak : short but heavy usage, maybe feel lag

results

To read that you need to find out the most top 5 or 10 avg, as there where this time (11.09.2019):

  • advtrains - 35.6 % avg (rank 1) and just 40.4% peak of peak max mesecons (rank 5)
  • pipeworks - 17,9 % avg (rank 2), depend on avg us rank 3, and its peaks 53 % strenght of mesecons peak = rank 2
  • mesecons - 12.7 % avg (rank 3), but depend on avg us rank 1, top peak rank 1
  • technic - 4.6 % avg (rank 4), depend on avg us rank 4 also, peaks jsut 35% as of mesecons, rank 7
  • advtrains_train_japan - 4.6 % avg (rank 4), depend on avg us just rank 7
  • default - 4.4% rank 6 ... where I stop to check, as above mods make together 75% of all cpu work ...

summary

The most avg work, mean all time through the server is on is made by mods:

  • advtrains (35-40%)
  • + pipeworks (18%) = sum 53-58%
  • and + mesecons 13%, mean sum cpu for 3 mods 66-71%

The main hard peaks are generated out from

  • mesecon peaks, counted here as 100% as most strong peaks
  • pipeworks peaks, at least strong 50% strength of mesecons
  • advtrtains peaks, which are still 40% as strong like the mesecon peaks
  • technic peaks, have also 35% the strenght like mesecon peaks
  • ambience then follow with 24% hard peaks compare to messecons


conclusion

There are main just 3 mods there behaviour have to be checks / reduces to get lag down.

  • advtrains, with then also japan train
  • mesecons
  • pipeworks

all others are minor effect to server.


Author

Thailand, known as Festus1965 in Forum, and Thomas or Explorer on most other servers. I played aroud with profiler since at least 2 years and successful reduced lag on my server basing on profiler results. There is a change possible in pipeworks reducing that mod about 50% of its impact. At advtrains I have no glue, as I dont use it, as I know its impact on servers.