[cod] COD4 Server Memory Limit

Vaughan Reid vaunus at gmail.com
Sun Dec 16 23:20:44 EST 2007


Agreed. I just bought 8GB of RAM for that system and it is almost all being soaked up already. I can't see any logical reason why they would take com_hunkmegs out of the game.

The meminfo command was pointed out to me on a forum which is the basis on which I limited the ram with com_hunkmegs in older games in the COD series, and as I said, I have had absolutely no problems with this on servers of varying size. 

-----Original Message-----
From: Robert Ros [mailto:robertros at gmail.com] 
Sent: Monday, 17 December 2007 5:39 AM
To: cod at icculus.org
Subject: Re: [cod] COD4 Server Memory Limit

That's nonsense, a dedicated server just needs to handle network 
connections between the clients and it manages a global gamestate 
(Player locations / health / etc) A dedicated server doesn't need to 
load all those high resolution textures in memory. That's where the huge 
amount of memory usage is coming from I think.

There is a command 'meminfo' in CoD4, I'm not sure what the numbers mean 
though.

meminfo
10485760 bytes total hunk

     5096 low permanent

    39648 high permanent

    44744 total hunk in use
$init                0.0
common_mp           39.0
localized_common_m   2.6
free physical       33.6
mp_convoy           51.7
localized_code_pos   0.7
code_post_gfx_mp     0.5
------------------------


- Robert

NewLight Systems wrote:
> just buy more ram :S
> 
> Vaughan Reid escribió:
>>
>> I know this issue has been brought up a couple of times already, but 
>> has anyone found a way to limit memory usage for COD4 server instances 
>> in Linux/Unix?
>>
>>  
>>
>> I am currently hosting nearly 30 servers and the amount of RAM they 
>> use collectively is ridiculous. Whats more, the differences in RAM 
>> usage are huge – right now servers are using anything from 15Mb to 
>> 300Mb. They are all empty and all similar in maxplayers size. I also 
>> host around 15 COD/COD2 servers and have had com_hunkmegs set to 64Mb 
>> for all of them for months now without issues as I have found that 
>> servers do not use anything near what they reserve for themselves.
>>
>>  
>>
>> I’m not sure why they took com_hunkmegs out of COD4 but I really need 
>> an alternative if anyone has one. I’ve tried ulimit without success.
>>
>> ------------------------------------------------------------------------
>>
>> No virus found in this incoming message.
>> Checked by AVG Free Edition. 
>> Version: 7.5.503 / Virus Database: 269.17.4/1187 - Release Date: 16/12/2007 11:36
>>   
> 
> -- 
> 
> *David Aguilar Valero*
> Dpto. Comercial y Soporte técnico
> NewLight Systems
> *Servidores de juegos, HW, Dedicados*
> 
> *crk01 at nls.es*
> crk01 at newlightsystems.com
> tecnico at newlightsystems.com
> #NewLight_Systems @ irc-hispano.org
> *www.newlightsystems.com
> www.nls.es*
> 
> This email and any files or attachments transmitted with it are intended 
> solely for the use of the intended recipient. This email is confidential 
> and may contain legally privileged information. If you are not the 
> intended recipient you should not read, disseminate, distribute, or copy 
> this email. If you have received this email in error, please notify the 
> sender immediately and delete it from your system.

---
To unsubscribe, send a blank email to cod-unsubscribe at icculus.org
Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?38





More information about the Cod mailing list