Memory Usage?
Jarlaxle
Join Date: 2002-11-21 Member: 9546Members
<div class="IPBDescription">For Linux</div> I just started running a NS server on linux, on a 2.ghz p4 with a gig of ram. Problem is, I can't seem to get the server to run 20 players without the pings/cpu going into the celing. (95% CPU, and 300+ pings) and it seems like I should be able to. I think I have my problem tracked down. When I run top to check my cpu usage, it may be at 95%, but mem is only at 15%. Is there a way to make hlds_l use more memory? I'm wondering if its limiting itself in some way or something. I saw a post somewhere on here about heapsize and some other command to increase something to do with the ram, but I can't find it anymore, nor can I find a reference anywhere on where to/how to implement those commands.
Also, does anyone have any other tips for getting lower CPU usage on linux? I have already removed ns_bast and ns_hera for now, as they generate higher usage than any of the rest.
Thanks!
Jarlaxle
Also, does anyone have any other tips for getting lower CPU usage on linux? I have already removed ns_bast and ns_hera for now, as they generate higher usage than any of the rest.
Thanks!
Jarlaxle
Comments
this is very weird, i was talking with voogru today about his servers and he told me that it's AMD XP 1700+ and it holds fine 22 ppl, yet your 2.4ghz(which like 1ghz more than the AMD XP 1700+) can't hold 20 people...
btw, what distro and kernel?
oh and about the memory, HLDS barely takes memory, it's main usage is cpu.. not memory
Thats because AMD processors are better. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> Intel has higher clock speeds, but AMD gets better performance and they're hella cheaper.
It will not. You can reserve more memory for HLDS, but it won't use more just because more is available. Heapsize should only be increased from the 32MB default if your server crashes with errors about failing to allocate memory. If you increase your -zone, add the same amount to -heapsize, as -zone is taken from the heap. Really large maps have been known to run HLDS out of room; otherwise you shouldn't need to touch -heapsize.
He's running Windows.
I'll give a try with compliing my own Adminmod dlls, etc. Maybe it will help. I have already disabled about everything else on the box.