Insanely High Cpu Usage

Rotten_FleshRotten_Flesh Join Date: 2002-11-18 Member: 9203Members
edited November 2002 in General Server Discussion
<div class="IPBDescription">The new patch made it worse!</div> I run a 14 player NS Server. I'd like to increase it to 20, but cant because of the CPU lag spikes.

CPU utilization on the server at 6 people was the same as when it was 15 before the recent 1.02 patch.

<img src='http://www.Gamer-Guild.net/Images/cpu_usage.jpg' border='0' alt='user posted image'>

<img src='http://www.Gamer-Guild.net/Images/server_players.jpg' border='0' alt='user posted image'>

As can be seen in the above screenshot:

The <span style='color:blue'>Blue</span> line represents the player limit. You will see it at 14 then a major drop as it was when the server went down ... then i restarted it with 20 slots. At the 20 line there were 14 players and at the 2 line there were 5 players, yet both used the same amount of CPU. The server was running the map ns_caged and both times it was a new map.

WTH is going on? I thought that the new patch was supposed to reduce CPU usage, not increase it! <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' valign='absmiddle' alt='mad.gif'><!--endemo-->

Comments

  • MellonpoprMellonpopr Join Date: 2002-11-01 Member: 2304Members
    interesting... what are the specs of your server btw ?
    cpu
    os
    ram
    connection
  • Rotten_FleshRotten_Flesh Join Date: 2002-11-18 Member: 9203Members
    edited November 2002
    <b>CPU:</b> Dual (2) Athlon XP 1.8 Ghz
    <b>OS:</b> RedHat Linux 6.2
    <b>RAM:</b> 1 GB DDR 2100
    <b>Connection:</b> OC3

    <!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' valign='absmiddle' alt='asrifle.gif'><!--endemo--> <!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' valign='absmiddle' alt='pudgy.gif'><!--endemo-->
  • MellonpoprMellonpopr Join Date: 2002-11-01 Member: 2304Members
    edited November 2002
    this might be unrelated but everytime someone said redhat in the #nsserver channel the past week someone else said change to this x version kernel etc.

    you might want to talk to the guys in there and see what they suggest for the redhat flavor of linux.

    I've been out of linux since the mandrake 7.1 days so I'm not up on the current <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' valign='absmiddle' alt='sad.gif'><!--endemo-->

    btw I think your animated avatar and banner just gave my cat a seizure <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • Max1Max1 Join Date: 2002-11-08 Member: 7730Members
    Redhat isnt the best for servers anyway. Unless you manually choose each package, it installs a bunch of unnecessary crap. I use slackware for my linux servers, much cleaner
  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    Rotten, there's no way the new patch increased your CPU usage. You'll need more then 5 minute graphs to be able to compare them meaningfully. There only complication I can think of is if somehow the compiler optimizations were really bad for your CPU somehow. Your system sounds really standard though, so I don't think that's the case.

    You'll have to trust me here that 1.02 is faster. If you don't think so, revert back to 1.01 and try some longer tests to convince yourself.
  • CrrrazzzyCrrrazzzy Join Date: 2002-11-18 Member: 9215Members
    <!--QuoteBegin--|Max|+Nov 18 2002, 02:38 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (|Max| @ Nov 18 2002, 02:38 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Redhat isnt the best for servers anyway. Unless you manually choose each package, it installs a bunch of unnecessary crap. I use slackware for my linux servers, much cleaner<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    o lord lets not start one of these kinds of posts where you say apples and i say oranges ..... as i can give you at least 10 ways why RH is better then Slackware ..... (look up slack in the dictionary for starters) ...... but i won't
    As far as what packages are where ...... you are dipping in the mustard when you can't ketchup (pardon the pun) as i am the owner of the server that Rotten is referring to ..... It has the 2.4.18-2 kernel.
    I am also the Developer for the mod NeoTF and am very familiar with how loads effect which operating systems.
    To give you a bit more backround on myself:
    I am also a circuit Designer/Engineer at UUNET (Unix to Unix Networking) If you do not know that name then i am sure you know WorldCom/MCI ... all are the same company ..... If RH was not such a good operating system then why would we run it on the backbone ?


    I guees next we are gonna hear how BSD is better yet <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo-->
  • CrrrazzzyCrrrazzzy Join Date: 2002-11-18 Member: 9215Members
    edited November 2002
    <!--QuoteBegin--Flayra+Nov 18 2002, 02:49 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Flayra @ Nov 18 2002, 02:49 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Rotten, there's no way the new patch increased your CPU usage.  You'll need more then 5 minute graphs to be able to compare them meaningfully.  There only complication I can think of is if somehow the compiler optimizations were really bad for your CPU somehow.  Your system sounds really standard though, so I don't think that's the case.

    You'll have to trust me here that 1.02 is faster.  If you don't think so, revert back to 1.01 and try some longer tests to convince yourself.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    They are not just 5 minute graphs ....... what that is actually is that the server takes a snapshot at 5 minute intervals ....... ther graph he is showing you is from a 24hr period ...
    <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
    without the patch he was running it at 14 users and the CPU weas at 93% with 14 users ..... then he updated the patch and made the usercount max at 20 and with 5 users the cpu was still at 93% .....
    i understands what you are saying and how the graphs are misleading ....... but if you compare the two side by side you will see what i am talking about <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    The top is cpu and the bottom is user count .. .as the user count rose so did cpu ... jsut each at diff rates ... with the patch the ratio was higher ..... also on the bottom ggraph the blue line denoted total max user count ......... in between you will see it at 0 for a millisecond ... which is when he was adding the patch and th HL server was down <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->

    After reviewing my posts i find it necisary(sp?) to mention that it is not my intention to flame nor insult anyone at all but more of problem solve ....... i have ran many different mods on this same machine with the same os and same kernel ....... i am sure the NS crew will come up with a fix for this soon ...... also there are many servers out there that run RH so i think it will be in their best interest ...... as far as the extra packages running that is a mute point as you will see without ns running the server is at 0.1 % spu compared to 93% when it is .... if it were a package issue the server would be running at least a higher % ...... even with CS running the cpu never goes above 35% at 20 man .....and there have been many discussions about that on the hlds_linux board ......

    pls take my posts with a grain of salt <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--Crrrazzzy+Nov 18 2002, 02:49 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Crrrazzzy @ Nov 18 2002, 02:49 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--|Max|+Nov 18 2002, 02:38 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (|Max| @ Nov 18 2002, 02:38 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Redhat isnt the best for servers anyway. Unless you manually choose each package, it installs a bunch of unnecessary crap. I use slackware for my linux servers, much cleaner<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    o lord lets not start one of these kinds of posts where you say apples and i say oranges ..... as i can give you at least 10 ways why RH is better then Slackware ..... (look up slack in the dictionary for starters) ...... but i won't
    As far as what packages are where ...... you are dipping in the mustard when you can't ketchup (pardon the pun) as i am the owner of the server that Rotten is referring to ..... It has the 2.4.18-2 kernel.
    I am also the Developer for the mod NeoTF and am very familiar with how loads effect which operating systems.
    To give you a bit more backround on myself:
    I am also a circuit Designer/Engineer at UUNET (Unix to Unix Networking) If you do not know that name then i am sure you know WorldCom/MCI ... all are the same company ..... If RH was not such a good operating system then why would we run it on the backbone ?


    I guees next we are gonna hear how BSD is better yet <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' valign='absmiddle' alt='tounge.gif'><!--endemo--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    I have only one thing to say. RH sux out of the box. But then again, all linux distro's do.

    Inorder to make linux great you have to "tune" it and customize it for its application. I totally agree with you about the apples and ornages. Slackware is cool cuz it uses oldschool BSD startup scripts. But other than that, slackware isn't that much different from RH, or SuSe or Debian or.......

    yeah, your point is taken and affirmed by someone without a job <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' valign='absmiddle' alt='biggrin.gif'><!--endemo-->
Sign In or Register to comment.