Why Does Ns Use So Much Cpu?

Mad_DuckMad_Duck Join Date: 2004-10-20 Member: 32367Members
edited October 2004 in General Server Discussion
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-->

Comments

  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    Is it a Linux or Windows server? Sometimes linux can take a large ammount of system resources. If you are on Linux, <a href='http://www.unknownworlds.com/forums/index.php?showtopic=74931' target='_blank'>read this</a>.

    And FYI the NS:Source issue is addressed <a href='http://www.unknownworlds.com/forums/index.php?showtopic=35' target='_blank'>here.</a>
  • Mad_DuckMad_Duck Join Date: 2004-10-20 Member: 32367Members
    Its a windows server.
    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
  • GrendelGrendel All that is fear... Join Date: 2002-07-19 Member: 970Members, NS1 Playtester, Contributor, NS2 Playtester
    Try #nsserver on gamesurge. It might take a bit for people to respond, but there are some seriously competent server tweakmeisters hanging around in there.
  • EmanonEmanon Join Date: 2003-05-13 Member: 16254Members, Constellation
    edited October 2004
    60% is normal for a NS server with 16+ players on a p4 with HT enabled.

    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)
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 60% is normal for a NS server with 16+ players on a p4 with HT enabled.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    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
  • BigglesBiggles Join Date: 2004-10-20 Member: 32373Members
    Hi,

    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
  • EmanonEmanon Join Date: 2003-05-13 Member: 16254Members, Constellation
    <!--QuoteBegin-GiGaBiTe+Oct 20 2004, 04:33 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (GiGaBiTe @ Oct 20 2004, 04:33 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 60% is normal for a NS server with 16+ players on a p4 with HT enabled.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->

    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.
  • modiemodie Join Date: 2003-02-19 Member: 13758Members, Constellation
    Are you running metamod or adminmod? I've found that by running these, the proc usage does spike up.
  • Mad_DuckMad_Duck Join Date: 2004-10-20 Member: 32367Members
    Modie: Yes I am running metamod becuz use Wichbot to train as a Marine/Commander.

    About HT. I read also that HLDS does`ent support it but made no/little difference turning it off.
  • MassAssterMassAsster Join Date: 2002-12-04 Member: 10478Members
    edited October 2004
    pent 4 2.8 ghz with 512 ram

    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
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    i recently got a new server.

    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.
  • BigglesBiggles Join Date: 2004-10-20 Member: 32373Members
    Hi,

    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
  • GiGaBiTeGiGaBiTe Join Date: 2003-10-07 Member: 21489Members
    i dont use hlbooster. reason being:

    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.
Sign In or Register to comment.