11-10-2010, 08:26 AM
http://people.summit-servers.com/monk/2010/11/09/srcds-memory-usage/
More or less giving it less stack size prevents large growth because NPTL has a super-high stack size per thread (10MB on CentOS 5.5)
Lowering VM usage also releases pressure on the TLB and gives you more filesystem buffer cache and other free memory.
#!/bin/bash
ulimit -s 512 # you can try 128 or even 64 for gameservers
./srcds_run ....
More or less giving it less stack size prevents large growth because NPTL has a super-high stack size per thread (10MB on CentOS 5.5)
Lowering VM usage also releases pressure on the TLB and gives you more filesystem buffer cache and other free memory.
#!/bin/bash
ulimit -s 512 # you can try 128 or even 64 for gameservers
./srcds_run ....
http://leaf.dragonflybsd.org/~gary
“The two most common elements in the universe are hydrogen and stupidity.”
“The two most common elements in the universe are hydrogen and stupidity.”