Raised This Month: $ Target: $400
 0% 

Minimize Resource Usage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cold-serenity
Member
Join Date: Sep 2009
Old 04-05-2011 , 07:03   Minimize Resource Usage
Reply With Quote #1

Hi, I am finding that zombiereloaded is using a lot of CPU usage. When placing this server on a single core, it reaches 100% after 20+ players. I have put it on all cores, but I just find this to be a little extreme, as it is hogging server FPS from my other servers and resources.

Because of ZR, I am only able to have one server that runs at a high performance.

Spec:
2.6 GHz, Tri-Core
4GB Ram
1 TB HD
1 GBps Port.

Serverside addons: ES, SM, META,

Serverside plugins:

SM
Code:
[SM] Listing 42 plugins:
  01 "Admin File Reader" (1.3.6) by AlliedModders LLC
  02 "Admin Buy" (1.04) by brizad
  03 "Admin Help" (1.3.6) by AlliedModders LLC
  04 "Admin Menu" (1.3.6) by AlliedModders LLC
  05 "Advanced admin commands" (0.16) by 3sigma
  06 "Advertisements" (0.5.5) by Tsunami
  07 "AFK Manager" (3.3.0) by Rothgar
  08 "Anti-Flood" (1.3.6) by AlliedModders LLC
  09 "Backpack" (2.11) by InstantDeath
  10 "Basic Chat" (1.2.0) by AlliedModders LLC
  11 "Basic Comm Control" (1.3.6) by AlliedModders LLC
  12 "Basic Commands" (1.3.6) by AlliedModders LLC
  13 "Basic Info Triggers" (1.3.6) by AlliedModders LLC
  14 "Basic Votes" (1.3.6) by AlliedModders LLC
  15 "Client Preferences" (1.3.6) by AlliedModders LLC
  16 "Fun Commands" (1.3.6) by AlliedModders LLC
  17 "Fun Votes" (1.3.6) by AlliedModders LLC
  18 "HLstatsX CE Ingame Plugin" (1.6.13) by psychonic
  19 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
  20 "Kigen's Anti-Cheat" (1.2.1.6) by CodingDirect LLC
  21 "MapChooser" (1.3.6) by AlliedModders LLC
  22 "Nextmap" (1.3.6) by AlliedModders LLC
  23 "Map Nominations" (1.3.6) by AlliedModders LLC
  24 "PermaMute" (0.1) by Ryan "FLOOR_MASTER" Mannion
  25 "Player Commands" (1.3.6) by AlliedModders LLC
  26 "Players Votes" (1.5.0) by The Resident, pZv!
  27 "Quake Sounds" (2.7) by dalto, Grrrrrrrrrrrrrrrrrrr, and psychonic
  28 "Reserved Slots" (1.3.6) by AlliedModders LLC
  29 "Rock The Vote" (1.3.6) by AlliedModders LLC
  30 "Server Clean Up" (1.1.7) by Jamster
  31 "Server Redirect" (1.1) by Brainstorm
  32 "Server Redirect Ads" (1.1) by Brainstorm
  33 "Server Redirect Commands" (1.1) by Brainstorm
  34 "Show Damage" (1.0.7) by exvel
  35 "Simple Chat Colors" (1.1.0) by Simple Plugins
  36 "Evil Admin - Beam" (1.0.100) by <eVa>Dog
  37 "Sound Commands" (1.3.6) by AlliedModders LLC
  38 "SourceBans" (1.4.8) by SourceBans Development Team
  39 "Spray Tracer" (5.8) by Nican132, CptMoore, Lebson506th
  40 "Weapon kick back" (1.1) by Nican132
  41 "Web Shortcuts" (1.0.1) by James "sslice" Gray
  42 "Zombie:Reloaded" (3.0.0-b2) by Greyscale | Richard Helgeby
ES: A custom script that resupplies ammo after a clip is used up. Unlimited ammo, but with reloading.

Thanks for any assistance.
cold-serenity is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 04-05-2011 , 10:58   Re: Minimize Resource Usage
Reply With Quote #2

What's the difference with and without ZR running?

Also I'd like to see some profiling logs for ZR if you can enable that for an hour or two while fully populated. How to do this is explained here: http://forums.alliedmods.net/showthr...11#post1403411
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
cold-serenity
Member
Join Date: Sep 2009
Old 04-05-2011 , 19:21   Re: Minimize Resource Usage
Reply With Quote #3

Thanks for the quick reply. I will have to get back to you on this. Today I had to do some restarts and we have a low population on our servers. And does this just store the info in a basic log file?

Last edited by cold-serenity; 04-05-2011 at 19:27.
cold-serenity is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 04-05-2011 , 19:53   Re: Minimize Resource Usage
Reply With Quote #4

It doesn't log anything until you do "sm profiler flush". Until then it's stored in memory.

Find out whether it's ZR alone that is causing this.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
cold-serenity
Member
Join Date: Sep 2009
Old 04-05-2011 , 22:09   Re: Minimize Resource Usage
Reply With Quote #5

All right thanks, while I am waiting for people, any idea how to fix this?

Quote:
L 04/05/2011 - 18:44:48: Info (map "zm_lila_panic_v2_fix") (file "errors_20110405.log")
L 04/05/2011 - 18:44:48: [zombiereloaded.smx] [Player Classes] [Default Spawn Class] Warning: Failed to set "zombie_classic" as default spawn class for team 0. The class doesn't exist or the team IDs doesn't match. Falling back to the first class in the team.
L 04/05/2011 - 18:44:48: [zombiereloaded.smx] [Player Classes] [Default Spawn Class] Warning: Failed to set "human_normal" as default spawn class for team 1. The class doesn't exist or the team IDs doesn't match. Falling back to the first class in the team.
L 04/05/2011 - 18:44:54: [zombiereloaded.smx] [Player Classes] [Default Spawn Class] Warning: Failed to set "human_normal" as default spawn class for team 1. The class doesn't exist or the team IDs doesn't match. Falling back to the first class in the team.
L 04/05/2011 - 18:451: [zombiereloaded.smx] [Player Classes] [Default Spawn Class] Warning: Failed to set "human_normal" as default spawn class for team 1. The class doesn't exist or the team IDs doesn't match. Falling back to the first class in the team.
cold-serenity is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 04-05-2011 , 23:05   Re: Minimize Resource Usage
Reply With Quote #6

Look up that error message in the manual. Don't go off topic, btw. It's messing up the thread and stealing focus from the original post.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
cold-serenity
Member
Join Date: Sep 2009
Old 06-01-2011 , 20:29   Re: Minimize Resource Usage
Reply With Quote #7

Here is, I finally got a chance to get the server a few off from max players. It appears that the only way to run zombie with multiple people is to have a really high FPS such that it does not lag. I have to have 500 FPS+ for it to work, however with just zombiemod back in the old days 250 FPS or default fps was enough.

Code:
<?xml version="1.0" encoding="UTF-8"?>

<profile time="1306770894" uptime="308006.711598">
 <report name="natives">
 </report>
 <report name="callbacks">
  <item name="zombiereloaded.smx!AskPluginLoad2" numcalls="1" mintime="0.000174" maxtime="0.000174" totaltime="0.000174"/>
  <item name="zombiereloaded.smx!__ext_core_SetNTVOptional" numcalls="1" mintime="0.000018" maxtime="0.000018" totaltime="0.000018"/>
  <item name="zombiereloaded.smx!OnPluginStart" numcalls="1" mintime="0.376674" maxtime="0.376674" totaltime="0.376674"/>
  <item name="zombiereloaded.smx!OnAllPluginsLoaded" numcalls="1" mintime="0.000075" maxtime="0.000075" totaltime="0.000075"/>
  <item name="zombiereloaded.smx!OnMapStart" numcalls="84" mintime="0.000023" maxtime="0.000115" totaltime="0.002384"/>
  <item name="zombiereloaded.smx!CvarsHookLocked" numcalls="168" mintime="0.000000" maxtime="0.001687" totaltime="0.088067"/>
  <item name="zombiereloaded.smx!OnAutoConfigsBuffered" numcalls="84" mintime="0.000012" maxtime="0.000055" totaltime="0.001436"/>
  <item name="zombiereloaded.smx!EventRoundFreezeEnd" numcalls="618" mintime="0.000064" maxtime="0.000848" totaltime="0.104917"/>
  <item name="zombiereloaded.smx!EventRoundStart" numcalls="536" mintime="0.000150" maxtime="0.001522" totaltime="0.179039"/>
  <item name="zombiereloaded.smx!OnConfigsExecuted" numcalls="84" mintime="0.005982" maxtime="1.441968" totaltime="2.009801"/>
  <item name="zombiereloaded.smx!OverlaysTimer" numcalls="307347" mintime="0.000000" maxtime="0.000824" totaltime="1.323595"/>
  <item name="zombiereloaded.smx!OnClientConnected" numcalls="684" mintime="0.000000" maxtime="0.000032" totaltime="0.001351"/>
  <item name="zombiereloaded.smx!OnClientCookiesCached" numcalls="682" mintime="0.000001" maxtime="0.000073" totaltime="0.004195"/>
  <item name="zombiereloaded.smx!OnClientDisconnect" numcalls="663" mintime="0.000002" maxtime="0.008628" totaltime="0.710872"/>
  <item name="zombiereloaded.smx!InfectMotherZombie" numcalls="473" mintime="0.000007" maxtime="0.088168" totaltime="1.812657"/>
  <item name="zombiereloaded.smx!RoundEndTimer" numcalls="80" mintime="0.000005" maxtime="0.002612" totaltime="0.056866"/>
  <item name="zombiereloaded.smx!OnClientPutInServer" numcalls="619" mintime="0.000036" maxtime="0.000183" totaltime="0.035249"/>
  <item name="zombiereloaded.smx!OnClientPostAdminCheck" numcalls="619" mintime="0.000001" maxtime="0.000167" totaltime="0.019748"/>
  <item name="zombiereloaded.smx!EventPlayerSpawn" numcalls="3334" mintime="0.000372" maxtime="0.004782" totaltime="3.319354"/>
  <item name="zombiereloaded.smx!EventPlayerSpawnPost" numcalls="3334" mintime="0.000009" maxtime="0.154423" totaltime="4.928859"/>
  <item name="zombiereloaded.smx!OverlaysQueryClientDXLevel" numcalls="618" mintime="0.000001" maxtime="0.000020" totaltime="0.001480"/>
  <item name="zombiereloaded.smx!OnPlayerRunCmd" numcalls="29780349" mintime="0.000000" maxtime="0.002523" totaltime="45.902744"/>
  <item name="zombiereloaded.smx!ClassPreThinkPost" numcalls="29749196" mintime="0.000000" maxtime="0.004078" totaltime="14.662384"/>
  <item name="zombiereloaded.smx!DamageSuicideIntercept" numcalls="1312" mintime="0.000001" maxtime="0.000312" totaltime="0.010088"/>
  <item name="zombiereloaded.smx!EventPlayerTeam" numcalls="5482" mintime="0.000000" maxtime="0.000200" totaltime="0.008058"/>
  <item name="zombiereloaded.smx!RestrictCanUse" numcalls="2189157" mintime="0.000000" maxtime="0.002979" totaltime="14.309546"/>
  <item name="zombiereloaded.smx!WeaponsOnItemPickupPost" numcalls="886734" mintime="0.000000" maxtime="0.001598" totaltime="3.044825"/>
  <item name="zombiereloaded.smx!ClassMenuMainHandle" numcalls="1310" mintime="0.000000" maxtime="0.001150" totaltime="0.047239"/>
  <item name="zombiereloaded.smx!ClassMenuSelectHandle" numcalls="988" mintime="0.000002" maxtime="0.166360" totaltime="0.219802"/>
  <item name="zombiereloaded.smx!EventPlayerJump" numcalls="54844" mintime="0.000003" maxtime="0.001557" totaltime="0.397291"/>
  <item name="zombiereloaded.smx!EventPlayerJumpPost" numcalls="54844" mintime="0.000000" maxtime="0.001215" totaltime="0.767088"/>
  <item name="zombiereloaded.smx!AntiStickStartTouch" numcalls="841977" mintime="0.000000" maxtime="0.002318" totaltime="5.747300"/>
  <item name="zombiereloaded.smx!OnMapEnd" numcalls="83" mintime="0.000012" maxtime="0.000103" totaltime="0.001685"/>
  <item name="zombiereloaded.smx!Event_VolUpdateTimer" numcalls="298954" mintime="0.000001" maxtime="0.000674" totaltime="1.601021"/>
  <item name="zombiereloaded.smx!Event_VolTriggerTimer" numcalls="298954" mintime="0.000008" maxtime="0.000957" totaltime="4.148964"/>
  <item name="zombiereloaded.smx!EventRoundEnd" numcalls="531" mintime="0.000029" maxtime="0.001378" totaltime="0.059228"/>
  <item name="zombiereloaded.smx!EventWeaponFire" numcalls="178066" mintime="0.000002" maxtime="0.001370" totaltime="1.122451"/>
  <item name="zombiereloaded.smx!DamageTraceAttack" numcalls="35860" mintime="0.000000" maxtime="0.000970" totaltime="0.223355"/>
  <item name="zombiereloaded.smx!RestrictBuyCommand" numcalls="7804" mintime="0.000000" maxtime="0.000964" totaltime="0.203238"/>
  <item name="zombiereloaded.smx!WeaponAlphaDrop" numcalls="7271" mintime="0.000000" maxtime="0.000090" totaltime="0.042948"/>
  <item name="zombiereloaded.smx!Event_ClassDisableInstantSpawn" numcalls="3287" mintime="0.000000" maxtime="0.000064" totaltime="0.002464"/>
  <item name="zombiereloaded.smx!DamageOnTakeDamage" numcalls="44350" mintime="0.000001" maxtime="0.000787" totaltime="0.200115"/>
  <item name="zombiereloaded.smx!KnockbackTRFilter" numcalls="55592" mintime="0.000000" maxtime="0.000131" totaltime="0.032040"/>
  <item name="zombiereloaded.smx!EventPlayerHurt" numcalls="32939" mintime="0.000006" maxtime="0.116045" totaltime="7.932654"/>
  <item name="zombiereloaded.smx!ZHPTimer" numcalls="34475" mintime="0.000000" maxtime="0.001663" totaltime="1.298184"/>
  <item name="zombiereloaded.smx!AmbientSoundsTimer" numcalls="4775" mintime="0.000016" maxtime="0.000332" totaltime="0.154149"/>
  <item name="zombiereloaded.smx!ClassHealthRegenTimer" numcalls="5781" mintime="0.000000" maxtime="0.001057" totaltime="0.027054"/>
  <item name="zombiereloaded.smx!ZombieSoundsMoanTimer" numcalls="5114" mintime="0.000000" maxtime="0.000185" totaltime="0.131254"/>
  <item name="zombiereloaded.smx!EventPlayerDeath" numcalls="1517" mintime="0.000001" maxtime="0.002189" totaltime="0.065814"/>
  <item name="zombiereloaded.smx!RagdollTimer" numcalls="355" mintime="0.000093" maxtime="0.000458" totaltime="0.072913"/>
  <item name="zombiereloaded.smx!AntiStickSolidifyTimer" numcalls="2071" mintime="0.000000" maxtime="0.001169" totaltime="0.090498"/>
  <item name="zombiereloaded.smx!RespawnTimer" numcalls="284" mintime="0.000000" maxtime="0.091947" totaltime="1.681582"/>
  <item name="zombiereloaded.smx!ZClassCommand" numcalls="16" mintime="0.000059" maxtime="0.000080" totaltime="0.001071"/>
  <item name="zombiereloaded.smx!ZTeleCommand" numcalls="200" mintime="0.000002" maxtime="0.000079" totaltime="0.005133"/>
  <item name="zombiereloaded.smx!ZTeleTimer" numcalls="202" mintime="0.000009" maxtime="0.000145" totaltime="0.008799"/>
  <item name="zombiereloaded.smx!ZSpawnCommand" numcalls="139" mintime="0.000022" maxtime="0.014880" totaltime="0.834822"/>
  <item name="zombiereloaded.smx!ZMenuCommand" numcalls="26" mintime="0.000912" maxtime="0.001713" totaltime="0.030551"/>
  <item name="zombiereloaded.smx!ZMenuMainHandle" numcalls="122" mintime="0.000001" maxtime="0.006897" totaltime="0.042686"/>
  <item name="zombiereloaded.smx!ClassOverlayEnableCommand" numcalls="66" mintime="0.000011" maxtime="0.000050" totaltime="0.000942"/>
  <item name="zombiereloaded.smx!ZombieSoundsScreamCommand" numcalls="72" mintime="0.000002" maxtime="0.000064" totaltime="0.001528"/>
  <item name="zombiereloaded.smx!ZombieSoundsCmdTimer" numcalls="217" mintime="0.000000" maxtime="0.000009" totaltime="0.000245"/>
  <item name="zombiereloaded.smx!ZAdminCommand" numcalls="2" mintime="0.000020" maxtime="0.000126" totaltime="0.000146"/>
  <item name="zombiereloaded.smx!ZAdminMenuHandle" numcalls="12" mintime="0.000003" maxtime="0.001212" totaltime="0.002705"/>
  <item name="zombiereloaded.smx!ZSpawnForceHandle" numcalls="2" mintime="0.000003" maxtime="0.000078" totaltime="0.000081"/>
  <item name="zombiereloaded.smx!ZTeleForceHandle" numcalls="8" mintime="0.000002" maxtime="0.000182" totaltime="0.000360"/>
  <item name="zombiereloaded.smx!InfectMenuClientsHandle" numcalls="4" mintime="0.000002" maxtime="0.004130" totaltime="0.004141"/>
  <item name="zombiereloaded.smx!SpawnProtectTimer" numcalls="75" mintime="0.000006" maxtime="0.000058" totaltime="0.001732"/>
  <item name="zombiereloaded.smx!Command_Version" numcalls="2" mintime="0.000018" maxtime="0.000062" totaltime="0.000080"/>
  <item name="zombiereloaded.smx!ZCookiesMenuMainHandle" numcalls="68" mintime="0.000002" maxtime="0.001045" totaltime="0.003678"/>
  <item name="zombiereloaded.smx!ZMarketCommand" numcalls="5" mintime="0.000020" maxtime="0.000062" totaltime="0.000149"/>
 </report>
 <report name="functions">
 </report>
</profile>
cold-serenity is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 06-02-2011 , 03:50   Re: Minimize Resource Usage
Reply With Quote #8

I don't think ZR alone is doing this. We have had reports that ZR ran perfectly smooth with 64 players in the server, non-bot.

Try disabling eventscripts and see if the problem remains. There have been reports of conflicts between SM and ES.
__________________
Greyscale is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 06-02-2011 , 05:34   Re: Minimize Resource Usage
Reply With Quote #9

Those profiling logs look very good. Busy events in ZR are finished faster than 1ms on average (most of them in just a few microseconds). It must be something else that's causing it, or that there's too many plugins at once for the server to handle it.

Also, running the server with too high FPS might make it worse. Higher FPS just makes that each game frame will be shorter and give less time for all plugins to complete a event without causing lag.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode