Updating that to 500 players, and double the tile count to have space for all of themcazfi wrote:For the record, I took out some structure sizes from freeciv trunk:
Tile: 96 bytes -> 30000 tiles take 2.9 MB
Plrtile: 72 bytes -> 30000 tiles on plrmap of 250 players take 540 MB
City: 2392 bytes -> 30000 / 20 cities on plrmap of 250 players + on 1 real map take 900.6 MB
Unit: 328 bytes -> 30000 * 1 units take 9.8 MB
Diplstate: 28 bytes -> 250 * 250 players take 1.8 MB
So, yeah, server shouldn't take more than a couple of gigabytes at worst.
Tile: 96 bytes -> 60000 tiles take 5.8 MB
Plrtile: 72 bytes -> 60000 tiles on plrmap of 500 players take 2.2 GB
City: 2392 bytes -> 60000 / 20 cities on plrmap of 500 players + on 1 real map take 3.6 GB
Unit: 328 bytes -> 60000 * 1 units take 20 MB
Diplstate: 28 bytes -> 500 * 500 players take 7 MB
So server of 500 player game would peak around 6-7 GB, or, effectively it's 4 times the memory usage of 250 players game as the significant memory usages get multiplied by the tile count and the player count.