[cod] Limiting Server RAM Usage

Brandon Ewing nicotine at warningg.com
Wed Dec 12 22:30:13 EST 2007


On Thu, Dec 13, 2007 at 01:13:02AM -0000, admin at teamhost.co.uk wrote:
>    Hi,
> 
>    Is there anyway to limit the amount of ram cod4 Linux uses? For me its
>    around 200meg+ per server process
> 
>    Dan

You can use ulimit prior to starting the server to limit the amount of
memory available to yourself.  

ulimit -m 204800

will set a limit of 200MB of physical memory for the current shell and any
processes it launches.

-m == physical memory
-v == virtual memory (swap)
-s == stack (physical and virtual, I believe)

The actual limit is set in kilobytes.


-- 
Brandon Ewing                                        (nicotine at warningg.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://icculus.org/pipermail/cod/attachments/20071212/d630c500/attachment.pgp>


More information about the Cod mailing list