SRCDS Steam group


Lowering OB Memory usage.
#1
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 ....
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#2
Hello, is that safe to lowering stack size? Any drawbacks? Would it be good
to use this on machine with many servers (shared hosting)?

Thanx in advance for an answer. Best regards Smile
Reply
#3
Solaris uses small stack sizes. (64k). AIX uses like 32k? FreeBSD uses 1024 (IIRC)

Do you really need large stack sizes? I don't think so. I've ran apache with everything with a stack size of 512, 256, and 128 (was seeing some random ENOMEM with eaccelerator though @ anything less than 128)

I suggest using it to allow your filesystem buffer cache to actually be used instead of wasted by large stack sizes.
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)