LongTurn Game 2 for Freeciv-web

Planning and discussing Freeciv Longturn gaming
User avatar
AndreasR
Elite
Posts: 681
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: LongTurn Game 2 for Freeciv-web

Postby AndreasR » Fri Jun 16, 2017 8:41 pm

Thanks for the pragma pack patch, I will apply it.
Any chance you could create a patch for dynamic city name length memory allocation?

User avatar
Corbeau
Elite
Posts: 600
Joined: Mon Jan 13, 2014 11:13 pm

Re: LongTurn Game 2 for Freeciv-web

Postby Corbeau » Fri Jun 23, 2017 9:08 pm

Game crash detected :)

User avatar
AndreasR
Elite
Posts: 681
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: LongTurn Game 2 for Freeciv-web

Postby AndreasR » Fri Jun 23, 2017 9:34 pm

Server maintenance. Nothing to worry about.

User avatar
Corbeau
Elite
Posts: 600
Joined: Mon Jan 13, 2014 11:13 pm

Re: LongTurn Game 2 for Freeciv-web

Postby Corbeau » Fri Jun 23, 2017 10:00 pm

Oh! So I jumped in exactly the moment between server restart and loading the last save :D

cazfi
Elite
Posts: 1344
Joined: Tue Jan 29, 2013 6:54 pm

Re: LongTurn Game 2 for Freeciv-web

Postby cazfi » Wed Jul 19, 2017 10:40 pm

It occurred to me that in a large game memory usage can peak significantly at the moment server constructs savegame in memory.

I hope you have spread out turn change times of longturn games so that they are not all taking maximum server resources at the same time.

User avatar
AndreasR
Elite
Posts: 681
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: LongTurn Game 2 for Freeciv-web

Postby AndreasR » Thu Jul 20, 2017 3:50 am

cazfi wrote:It occurred to me that in a large game memory usage can peak significantly at the moment server constructs savegame in memory.

I hope you have spread out turn change times of longturn games so that they are not all taking maximum server resources at the same time.


Do you mean when the server is autosaving? How do you suggest I spread out turn change times for the already running games? I could set slightly different turn timeout values. At the moment, the server is able to handle these games just fine, so it is not urgent.

In order to support even more and larger LongTurn games, I hope that we can be able to reduce the base idle memory usage of the Freeciv processes down from approximately 1,5Gb per process.

User avatar
AndreasR
Elite
Posts: 681
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: LongTurn Game 2 for Freeciv-web

Postby AndreasR » Thu Jul 20, 2017 3:59 am

By the way, the production server was not able to start a 500 player LongTurn game. The web client was stuck in pregame and the game never started. Starting the exact same game on my Pc running Vagrant worked. The server is slower than my Pc, so perhaps something is timing out. Perhaps you could help me test starting a 500 player LongTurn game with 30000 tiles on Freeciv-web on your setup?

User avatar
Corbeau
Elite
Posts: 600
Joined: Mon Jan 13, 2014 11:13 pm

Re: LongTurn Game 2 for Freeciv-web

Postby Corbeau » Thu Jul 20, 2017 8:53 am

AndreasR wrote:Do you mean when the server is autosaving? How do you suggest I spread out turn change times for the already running games? I could set slightly different turn timeout values.

Yes.

Today: increase timeout BY
Game 2 - 15 minutes
Game 3 - 30 minutes
Game 4 - 45 minutes
Game 4 - 60 minutes

Tomorrow: reduce all timeouts back to 23 hours.

Caedo
Elite
Posts: 365
Joined: Sun Feb 10, 2013 10:21 pm
Location: Germany

Re: LongTurn Game 2 for Freeciv-web

Postby Caedo » Thu Jul 20, 2017 9:23 am

Corbeau wrote:
AndreasR wrote:Do you mean when the server is autosaving? How do you suggest I spread out turn change times for the already running games? I could set slightly different turn timeout values.

Yes.

Today: increase timeout BY
Game 2 - 15 minutes
Game 3 - 30 minutes
Game 4 - 45 minutes
Game 4 - 60 minutes

Tomorrow: reduce all timeouts back to 23 hours.

Problem being that once the server is restarted for maintenance and the latest savegames are loaded, the current timeout is reset so they will all be in sync again. Possible solution: Add an option to modify the current turn's timeout, so that when restarting the server, you can manually knock a few minutes on or off some of the clocks. Alternatively, the time left on the clock when shutting down could be stored in the save file and just loaded again. That way, the games would drift apart slightly on their own if their shutdown times are closer to each other than their load times.

User avatar
AndreasR
Elite
Posts: 681
Joined: Thu May 02, 2013 10:26 pm
Location: Norway

Re: LongTurn Game 2 for Freeciv-web

Postby AndreasR » Sat Aug 05, 2017 4:10 pm

LongTurn game 2 is now at turn 101! Game 2 is a testing game which we can use to improve and better understand this type of game on Freeciv-web.

Here is a screenshot of the overview map, showing the borders of all nations:
Image