Author Topic: Server - memory allocation  (Read 2533 times)

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
Server - memory allocation
« on: May 14, 2006, 03:00:36 am »
Hey there,

I am just at further tweaking our servers and found this page (german) about q3a-servers: http://www.pro-linux.de/spiele/quake3ded.html

It mentions servers needing just 12-26MB of allocated RAM (com_hunkmegs) because a server just loads the map / hitboxes and not the whole visuals.

I guess they have tested it and are right... has anybody experiences with that? I guess beacause of a more complex gamedesign tremulous may need a bit more and 32-64MB should be okay.  :-?

I will try running some servers with low com_hunkmegs settings in the next few days, so don't wonder if there may be lag... ;)

Cheers, Danny
url=http://www.tremulous.info][/url]


R1CH

  • Posts: 79
  • Turrets: +3/-1
    • http://www.r1ch.net/
Server - memory allocation
« Reply #1 on: May 14, 2006, 04:03:21 am »
Low com_hunkmegs won't cause lag, it will just crash when there is insufficient memory.

Teiman

  • Posts: 286
  • Turrets: +0/-0
Re: Server - memory allocation
« Reply #2 on: May 14, 2006, 10:39:40 am »
A good feature of this hunk system is... you already know how much your server will need. If you use some flexible system, a memory leak will result on server memory needs growing and growing..

The hunk system is a good one. Safe and fast.

Anyway you can tweak even more, maybe, ....theres a command to list all block that z_malloc use. Or you can create this command. Because z_malloc can name block, you will see what is allocated and is not on a pure server.  Maybe the map loader load lighting stuff, or other non-server stuff on memory. So maybe you can tweak the map loader or other random stuff... but maybe this is not a good idea, because with the hunk already getting his space, you will not save nothing.

So maybe "its not broken, dont fix it".

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
Server - memory allocation
« Reply #3 on: May 14, 2006, 11:35:42 am »
My tests are looking fine by now... all servers still up, memory usage 100MB less, CPU usage at 40-55% with 35 players on 3 server instances. ;)

Cheers, Danny
url=http://www.tremulous.info][/url]