Why Does Ns Use So Much Cpu?
Mad_Duck
Join Date: 2004-10-20 Member: 32367Members
Seems weird to me that NS server gobbles up 60+% CPU on a 3Ghz p4.
I have 2 Gig ram.
The server has had serveral server on it before with no problem.
Like 2 CS and even CS Source and that combined uses 15% CPU load.
I doubt its configuration problem, but if anyone knows anything to reduce CPU load I am listning.
This should be looked at on next version if you ask me.
Even if dont have lag on NS it still effects the other servers running.
Also was wondring if you porting NS to Source engine
Nice game btw;)
Thanks for any suggestions <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
I have 2 Gig ram.
The server has had serveral server on it before with no problem.
Like 2 CS and even CS Source and that combined uses 15% CPU load.
I doubt its configuration problem, but if anyone knows anything to reduce CPU load I am listning.
This should be looked at on next version if you ask me.
Even if dont have lag on NS it still effects the other servers running.
Also was wondring if you porting NS to Source engine
Nice game btw;)
Thanks for any suggestions <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html//emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
Comments
And FYI the NS:Source issue is addressed <a href='http://www.unknownworlds.com/forums/index.php?showtopic=35' target='_blank'>here.</a>
I read the Linux thread and feel sorry for them if it use`es more than the windows server.
Note that I run a lag free server, I just feel that maybe it would make NS more popular if it used less resources, since many run multiple games on same server.
Not all will wanna buy a seperate server just to run NS, and few have Dual/Quad servers exept ISP`s.
Thx for the answer on Source btw
Its high but probably has to do with the complexity of the game.
BTW is this 60% coming from rcon? or are you reading it off the box(i.e. task Manager)
if hyper threading is enabled, disable it. ns cannot use more than one cpu. when HT is enabled since you have a 3 GHz cpu, you would have something like 2 1.5 GHz cpu's it will greatly increase the servers performance with hyperthreading disabled when running HLDS
I have pretty much the same problem.
On a P4 2.8Ghz Northwood (no HT) 1Gb of RAM, a 12 man server can sometimes use upto 80% cpu usage. It will generally average around 40-50% but sometimes it will rocket to 80%. It is a Windows 2000 server aswell.
This seems insane to me, surely it can't be that cpu intensive? Does anyone else run an NS server, and do you get the same performance?
I really don't want to take my NS server down, but with usage like that I can't really keep it up.
Thanks,
Biggles
if hyper threading is enabled, disable it. ns cannot use more than one cpu. when HT is enabled since you have a 3 GHz cpu, you would have something like 2 1.5 GHz cpu's it will greatly increase the servers performance with hyperthreading disabled when running HLDS <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Its good for running multiple instances of HLDS because they become isolated from eachother. Therefore for if one starts to lag it will not effect the other.
Keeping HT on for Mad_Duck maybe his best bet as he is running CS, CS:S and NS on the same box. Although he wont beable to break the 20 player mark without lag.
About HT. I read also that HLDS does`ent support it but made no/little difference turning it off.
im seeing 30% - 40% CPU usages on NS maps - less on CO maps
to be honest i think my CZ server and Svencoop servers are eating more bandwidth then NS right now.
i know when all 3 are full ( 8 slot SC ) (26 slot CZ) (24 slot NS) the pings shoot up to the 120's - but you dont feel the lag - at all
specs:
Windows 2000 Professional (Service Pack 4)
Pentium 4 @ 2.0 GHz
512 MB RD-RAM (PC 800)
80 GB ATA100 Hard Drive
when it was 16 players full i had about 10-15% of the cpu being used on the map ns_siege007.
with these metamod plugins installed:
EntMod 3.0
Alien Resource Tower Spore 1.0
Amx Mod X .16
Stripper2 (server side ripent)
HLGuard
NSMapVote
and there are over 30 amxx plugins loaded. one reason that the cpu usage might be so low is that i have a limit on most types of buildings that are built alot.
Max limit on these buildings
Command Chairs: 4
Turret Factories: 5
Turrets: 20
Siege Turrets: 15
offense chambers: 30
defense chambers: 30
movement chambers: 15
sensory chambers: 10
plan on putting a limit on all other marine structures since some commanders like blocking with armories and other such things.
but thats the specs and settings of my server, you should give it a try. i spent years trying to come up with a good server configuration to provide clients with best playing experience without laggyness and this seems to work.
this config was also used on my slower Dual PIII 1000 server and 10 clients max seemed to work well with the configuration also.
Gigabite, MassAsster do you alter many HLDS settings on your server sys_ticrate, etc.?
I can't get anywhere near as low cpu usage as that, even on a CO map with 12 players. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
Thanks for any replies,
Biggles
a. uses way too much cpu
b. extremely buggy
c. i really dont notice a difference in clients performance when its on
well i dont know about you guys but when i make a dedicated server, i install win 2k and all the updates, then hlds and update it all. then leave it alone, dont install anything else on it.