Memory usage for server?

Discussion in 'Planetary Annihilation General Discussion' started by devoh, April 13, 2015.

  1. devoh

    devoh Well-Known Member

    Messages:
    445
    Likes Received:
    404
    I'm curious on what memory usage people are seeing when using a local server and large number of planets and armies.
    > 8GB?
    > 16GB?
    > 24GB?
    > 32GB?

    I have 16GB and trying to decide if I want to go to 24 or 32GB.

    Regards
  2. mikeyh

    mikeyh Post Master General

    Messages:
    1,869
    Likes Received:
    1,509
    History is what consumes RAM. ie players x units x interactions x time, etc

    Clan Wars Showdown required 52GB RAM for 3 hours, 21 players and a lot of units.
    tatsujb, devoh and websterx01 like this.
  3. devoh

    devoh Well-Known Member

    Messages:
    445
    Likes Received:
    404

    Is this for the Chronocam? Wow! really didn't expect that answer
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    52GB is quite an extreme value though. In all servers I ever run it never went beyond 30GB, usually it stayed below 20.
    squishypon3 likes this.
  5. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    RAM isn't what you need, what you need is a good CPU. As in amazing CPU per core. (Because the sim isn't multithreaded)
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Well if you do run out of memory the game has a pretty sudden end.
    Alpha2546, tatsujb and squishypon3 like this.
  7. mikeyh

    mikeyh Post Master General

    Messages:
    1,869
    Likes Received:
    1,509
  8. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Just wonder is anyone here tried to use zram? :)

    I just think compression may work for history in RAM pretty nicely, but testing needed of course.
  9. mikeyh

    mikeyh Post Master General

    Messages:
    1,869
    Likes Received:
    1,509
    Will try zram this weekend.

    OS X memory compression works really well... the issue on OS X is that memory compression is delayed so it works for games as history grows over time but does not work for big replays where PA allocates the memory so rapidly that memory compression has no impact until after it's fully allocated.
    SXX likes this.
  10. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    zram basically allocates all RAM you give to it and then create virtual SWAP device so once all other RAM is used it's using this "fake SWAP" instead of one on HDD. For my needs it's was extremely useful, but would be interesting to see how it's works for history.:rolleyes:

    I think I'm going to run some long AI game and check for results...

    PS: Though as far as I remember there is some issues with using it on kernels below 3.15 so you better to get something newer than that. Also no need to worry if server has HDD swap enabled as zram swaps getting higher priority by default.

Share This Page