EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Long #repop and zone times after source upgrade (https://www.eqemulator.org/forums/showthread.php?t=39320)

Bohbo 02-06-2015 01:37 AM

Long #repop and zone times after source upgrade
 
I am banging my head on this one. I noticed an error in the log about being unable to load plugins.pl not sure if that has anythng to do with it because my plugins all seems to work. #repop used to start working right away. After updating to newest source i started getting these problems.

epilz 02-06-2015 12:57 PM

I updated to the latest source this morning, and have not seen any errors so far on my test server. #repop is instantly on my box

trevius 02-06-2015 12:58 PM

Plugins.pl has nothing to do with your problem.

What version/Date of source were you previously running and which one are you using now? Are you seeing a lot of chat messages in game? If you have a lot of logging turned on, I have found that it tends to start queuing up and #commands aren't very responsive or won't work at all if you are getting spammed too much.

I haven't seen any issues with #repop or zoning other than when I had turned on perl debug logging and was using a massive loop that was sending non-stop quest::debug() messages to my chat window.

Bohbo 02-06-2015 01:35 PM

I tried recompiling to latest source just now. Still have repop issue.

I just setup a fresh server too and migrated my custom DB info to it and effectively did a playerdata content wipe.

In CB for example i have 200 mobs about, it takes ~20 seconds to repop and during that time players will disapear briefly, MQ2EQBC drop its connection, and / commands dont work.

I don't however get a lot or any abnormal amounts of debug info in the chat box, just occasional stuff.

@Trev Where would I go to check debug logging? As far as source goes, my last updated was about a week ago. I usually try and update it once a week.

dagulus2 02-06-2015 01:48 PM

Quote:

Originally Posted by trevius (Post 237505)
If you have a lot of logging turned on, I have found that it tends to start queuing up and #commands aren't very responsive or won't work at all if you are getting spammed too much.

Ah, that explains a lot! Thanks.

Bohbo 02-06-2015 03:58 PM

Quote:

Originally Posted by epilz (Post 237503)
I updated to the latest source this morning, and have not seen any errors so far on my test server. #repop is instantly on my box

I tried renaming the logs, quests, and plugins folder to try and sniff out the problem. None of which had any significant effect on the problem.

14 Sec loading without logs, quests or plugin folder.
23 Sec Loading with log folder, quests, and plugin.

In my log folder under subdir called 'zone' i am getting big log files like 10mb to 30mb for a specific zone.

What is weird though is when the quest is commented away that loads the weapon plugin random weapons on spawn it still has a substantial lag in popping. (The script used to work with instant popping without issues)/


Code:

[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:32] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 11:58:33] [Quests] Argument "SHIELD" isn't numeric in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:33] [Quests] Argument "1HB" isn't numeric in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:33] [Quests] Argument "1HP" isn't numeric in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:33] [Quests] Argument "1HS" isn't numeric in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 11:58:33] [Zone Server] Time Broadcast Packet: EQTime [03:10 am]


Bohbo 02-06-2015 04:01 PM

One last thing... I looked at my log.ini file in my server directory and everything there is set to = off

So no idea why logs are even trying to be generated.

On my client logs i get this as the only event that logs during a repop

Code:

[Fri Feb 06 12:12:52 2015]00408:Invalid render material type.

[Fri Feb 06 12:12:52 2015]00409:CRender::CreateBatchWithoutColor() failed.


Akkadius 02-06-2015 04:10 PM

If you read the changelog.txt you'd know that the logging system got an absolute overhaul:

http://wiki.eqemulator.org/p?Logging_System_Overhaul

Bohbo 02-06-2015 04:29 PM

Quote:

Originally Posted by Akkadius (Post 237521)
If you read the changelog.txt you'd know that the logging system got an absolute overhaul:

http://wiki.eqemulator.org/p?Logging_System_Overhaul

Thanks for pointing that out.

So using CB as an example with ALL logging off repop is now about 12-14 sec. So i shaved off that extra bit i was getting with logging.

Another zone with signficantly less NPC ~30 repops in about 4 sec down from ~7.

This is definitely an improvement but nowhere as close to the instant repopping I enjoyed before. Any additional holes you can think of i can run down?

Akkadius 02-06-2015 04:34 PM

Make sure this is unchecked in your CMAKE:

http://i.imgur.com/fIwvVfd.png

Bohbo 02-06-2015 04:53 PM

Quote:

Originally Posted by Akkadius (Post 237523)
Make sure this is unchecked in your CMAKE:

http://i.imgur.com/fIwvVfd.png

I recompiled after making the change in CMAKE and that didn't really seem to make a measurable difference. Repop times aren't terrible but on a zone with only 30 mobs it seems to me I remember repopping being faster than 4 sec / 12 sec per zone respectively.

Akkadius 02-06-2015 04:58 PM

Quote:

Originally Posted by Bohbo (Post 237525)
I recompiled after making the change in CMAKE and that didn't really seem to make a measurable difference. Repop times aren't terrible but on a zone with only 30 mobs it seems to me I remember repopping being faster than 4 sec / 12 sec per zone respectively.

Well there are varying factors but my repops are instant.

Bohbo 02-06-2015 05:02 PM

Quote:

Originally Posted by Akkadius (Post 237526)
Well there are varying factors but my repops are instant.

Hmmm, the server machine should be well beyond the specs needed.
W8.1 x64 with 8gb of RAM and dual core 3.2ghz. I will have to setup a new test server and experiment more. If you think of anything please dont hesitate to drop by and leave a suggestion. I do miss instant repop.

Akkadius 02-06-2015 05:03 PM

Quote:

Originally Posted by Bohbo (Post 237527)
Hmmm, the server machine should be well beyond the specs needed.
W8.1 x64 with 8gb of RAM and dual core 3.2ghz. I will have to setup a new test server and experiment more. If you think of anything please dont hesitate to drop by and leave a suggestion. I do miss instant repop.

Paste your log table settings

Bohbo 02-06-2015 05:50 PM

Quote:

Originally Posted by Akkadius (Post 237528)
Paste your log table settings

Right now everything is set to 0.

I noticed the quest logging was taking up a huge amount of time.

Throwing up errors for this code in global_NPC.pl

Code:

sub EVENT_SPAWN{
        if ($mname =~/#/){
        }
        else{
        plugin::RandomWeapons(1, 11169, 100, 200, 230);
        }
}

Keep in mind before this would add maybe 1 sec to repop times. Purpose is to give non named NPC random weapons. The quest logging under zone is making huge 30mb to 100mb files

Code:

2-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $PrimType in string eq at plugins/weapon_tools.pl line 944.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in array element at plugins/weapon_tools.pl line 948.
[02-06-2015 :: 13:23:37] [Quests] Use of uninitialized value $SecType in string eq at plugins/weapon_tools.pl line 957.

It also spits out in blocks of PrimTYpe and Sec type not just alternating. With the quest code disabled that is where i get the 10 sec drop (writing to HD). Not sure how i can fix that error with weapons other than not logging (not ideal). But there still seems to be a missing chunk of time that scales based on # of NPCs in zone. 30 NPC = 4 sec 200 = 14sec.

Akkadius 02-06-2015 05:53 PM

I know you said everything is set to 0, but do you even have quests set to 0?

If you're getting that size of quest messages your file writing is going to slow you down big time

Bohbo 02-06-2015 06:01 PM

Quote:

Originally Posted by Akkadius (Post 237533)
I know you said everything is set to 0, but do you even have quests set to 0?

If you're getting that size of quest messages your file writing is going to slow you down big time

I literally have every field in the log control table set to 0 and restarted the server.

In North Karana I get a 12 sec repop time.

Akkadius 02-06-2015 06:12 PM

Quote:

Originally Posted by Bohbo (Post 237534)
I literally have every field in the log control table set to 0 and restarted the server.

In North Karana I get a 12 sec repop time.

If you are compiling with VS2013 ultimate, you can profile your zone process while you are repopping and figure out what is chewing up CPU cycles by taking so long

Bohbo 02-06-2015 06:55 PM

Quote:

Originally Posted by Akkadius (Post 237535)
If you are compiling with VS2013 ultimate, you can profile your zone process while you are repopping and figure out what is chewing up CPU cycles by taking so long

VS is still installing. Keep in mind all logging is off but it seems like i am getting a hard disk write spike during repop. The spike goes to about 350kb/s not very high but it sustains through the repop. The moment a mob shows up the spike drops. CPU doesn't seem to change.

http://i.imgur.com/SPhLts0.png?1

Akkadius 02-06-2015 07:03 PM

Quote:

Originally Posted by Bohbo (Post 237537)
VS is still installing. Keep in mind all logging is off but it seems like i am getting a hard disk write spike during repop. The spike goes to about 350kb/s not very high but it sustains through the repop. The moment a mob shows up the spike drops. CPU doesn't seem to change.

http://i.imgur.com/SPhLts0.png?1

OK, then what is being written when you open up resource monitor

Bohbo 02-06-2015 07:09 PM

Quote:

Originally Posted by Akkadius (Post 237538)
OK, then what is being written when you open up resource monitor

mysqld.exe is the culprit it looks like. Still trying to write with logging disabled somehow?

Akkadius 02-06-2015 07:12 PM

Quote:

Originally Posted by Bohbo (Post 237539)
mysqld.exe is the culprit it looks like. Still trying to write with logging disabled somehow?

If it is truly mysql, then while you repop do a:

#logs gmsay 36 1

And you can get an idea of what queries are trying to write.

You shouldn't be pushing MB/s of data on write

Bohbo 02-06-2015 07:19 PM

Quote:

Originally Posted by Akkadius (Post 237540)
If it is truly mysql, then while you repop do a:

#logs gmsay 36 1

And you can get an idea of what queries are trying to write.

You shouldn't be pushing MB/s of data on write

Not sure if this matters. But when i tried to use #logs i get the context for the command but if i do #logs gmsay 36 1 i dont get a response and the DB doesn't change. I had to manually change the DB. Any chance that might be related to the cause of problems. I will double check my perl to make sure its the one for plugins.

Akkadius 02-06-2015 07:21 PM

Quote:

Originally Posted by Bohbo (Post 237541)
Not sure if this matters. But when i tried to use #logs i get the context for the command but if i do #logs gmsay 36 1 i dont get a response and the DB doesn't change. I had to manually change the DB. Any chance that might be related to the cause of problems. I will double check my perl to make sure its the one for plugins.

I meant:

#logs set gmsay 36 1

Bohbo 02-06-2015 07:26 PM

Potential problem with Tasks?

Code:

[02-06-2015 :: 15:27:57] [MySQL Query] SELECT `taskid`, `activityid`, `completedtime` FROM `completed_tasks` WHERE `charid` = 8 ORDER BY completedtime, taskid, activityid (0 rows returned)
[02-06-2015 :: 15:27:57] [MySQL Query] SELECT `taskid` FROM character_enabledtasks WHERE `charid` = 8 AND `taskid` >0 AND `taskid` < 10000 ORDER BY `taskid` ASC (0 rows returned)
[02-06-2015 :: 15:28:06] [MySQL Query] SELECT c.id,c.name,c.class,c.level,c.last_login,c.zone_id, g.guild_id,g.rank,g.tribute_enable,g.total_tribute,g.last_tribute, g.banker,g.public_note,g.alt  FROM `character_data` AS c LEFT JOIN guild_members AS g ON c.id=g.char_id  WHERE g.guild_id=1 (6 rows returned)

EDIT:: character_enabledtasks is empty

EDIT2:: Looking at a simple repop SQL seems to be doing about 60 records a second a second on repop

Code:

[02-06-2015 :: 15:41:18] [MySQL Query] DELETE FROM respawn_times WHERE id=9900471 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900471, 1423266078, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900470 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900470, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900469 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900469, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900468 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900468, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900467 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900467, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900466 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900466, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900465 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900465, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900464 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900464, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900463 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900463, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900462 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900462, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900461 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900461, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900460 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900460, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900459 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900459, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900458 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900458, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900457 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900457, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900456 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900456, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900455 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900455, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900454 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900454, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900453 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900453, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] DELETE FROM respawn_times WHERE id=9900452 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:19] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900452, 1423266079, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:20] [MySQL Query] DELETE FROM respawn_times WHERE id=9900451 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:20] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900451, 1423266080, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:20] [MySQL Query] DELETE FROM respawn_times WHERE id=9900447 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:41:20] [MySQL Query] REPLACE INTO respawn_times (id, start, duration, instance_id) VALUES (9900447, 1423266080, 0, 0) (0 rows returned)
[02-06-2015 :: 15:41:31] [MySQL Query] SELECT hotzone FROM zone WHERE short_name = 'freeporttheater' (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT id, spawngroupID, x, y, z, heading, respawntime, variance, pathgrid, _condition, cond_value, enabled, animation FROM spawn2 WHERE zone = 'freeporttheater' AND version = 0 (45 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900447 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900451 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900452 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900453 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900454 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900455 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900456 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900457 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900458 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900459 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900460 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900461 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900462 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900463 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900464 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900465 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900466 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900467 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900468 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900469 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900470 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900471 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900472 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900473 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900474 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900475 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900476 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900478 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900480 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900526 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900593 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900594 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900595 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900596 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900597 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900598 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900599 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900600 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900601 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900602 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900603 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900604 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900605 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900606 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:20] [MySQL Query] SELECT start, duration FROM respawn_times WHERE id = 9900626 AND instance_id = 0 (1 rows returned)
[02-06-2015 :: 15:42:21] [MySQL Query] DELETE FROM respawn_times WHERE id=9900626 AND instance_id = 0 (0 rows returned)
[02-06-2015 :: 15:42:21] [MySQL Query]

EDIT3::Not sure if it matters but i did double check perl and the #logs set gmsay 36 <1/0> gives feedback for enabling or disabling but doesn't actually change the DB.

Cassieze 02-06-2015 07:59 PM

Could this have something to do with xampp versus installing mysql standalone? I know on my old comp I never had this issue either. But now on the a fresh install of everything on my new pc, its taking 21-25 seconds to perform #repop

Bohbo 02-06-2015 08:01 PM

Quote:

Originally Posted by Cassieze (Post 237545)
Could this have something to do with xampp versus installing mysql standalone? I know on my old comp I never had this issue either. But now on the a fresh install of everything on my new pc, its taking 21-25 seconds to perform #repop

*highfive* brother we aren't alone!~ I did install XAMP but i skipped mysql and used mariadb10.0 instead

I will mess around with XAMPP and see if anything might be messing it up

EDIT:: Then again maybe not.
http://i.imgur.com/SgTYBPa.png

Bohbo 02-06-2015 08:22 PM

@Akka

I am setting up a fresh W8.1 Box on a XEON 4gb machine Let me know if there is anything outside of the normal windows server install setup guide you want me to do.

Akkadius 02-06-2015 09:27 PM

You've never really said anything about what your using for disks, since I got home and was able to check I could see my writes were happening like that because its DELETING and REPLACE INTO constantly which is kind of horrid.

I have a M.2 SSD so my read speads are up 1000MB + and latency is nuts, so my repop's are pretty quick.

But, since repops happen potentially hundreds of times during the developing process, I'm going to look at getting them sped up quite a bit by optimizing the database end. I think everyone would appreciate this as a quality of life enhancement.

Akkadius 02-06-2015 09:30 PM

I will also make note that if you are using windows and you have any logs to 'console' enabled for MYSQL queries, that will definitely slow things down. Same thing for Perl, outputting to windows console is really slow.

If you have a shit load of quest errors like you posted before, and they are going to windows console, that is your problem.

Everything that we have enabled by default going to console is usually used sparingly given the cost consideration of windows console being slow.

If you want to see quests errors, I would highly recommend using gmsay because that is going to be a much faster medium to see realtime than the console

Bohbo 02-07-2015 10:43 AM

Quote:

Originally Posted by Akkadius (Post 237550)
I will also make note that if you are using windows and you have any logs to 'console' enabled for MYSQL queries, that will definitely slow things down. Same thing for Perl, outputting to windows console is really slow.

If you have a shit load of quest errors like you posted before, and they are going to windows console, that is your problem.

Everything that we have enabled by default going to console is usually used sparingly given the cost consideration of windows console being slow.

If you want to see quests errors, I would highly recommend using gmsay because that is going to be a much faster medium to see realtime than the console

Did you make any changes? I recompiled this morning with latest source 8 files changed 169 insertions 101 deletions and repops seem to be a lot faster already

Zone with 30 mobs is like 1-2 sec CB with 200 is like 2-4 so really great job (i assume this was you)

Akkadius 02-07-2015 04:51 PM

Yep, was me. Have more changes to make too.

Akkadius 02-08-2015 04:49 AM

Did some work to get these cut down dramatically to pretty much instant, will submit them shortly. I'm sure many will love this.


ghanja 02-08-2015 05:55 AM

If only it were a smidgen faster. o.O :p

Akkadius 02-08-2015 08:14 AM

https://github.com/EQEmu/Server/comm...e328a24ea52d65

Bohbo 02-08-2015 11:19 AM

Quote:

Originally Posted by Akkadius (Post 237601)

You sir are awesome. I know people call you the man and give you unlimited accolades of worship, but you are amazingly cool and helpful. Reading your old posts when you were a newb gives me hope I will get better and be able to contribute more in the future, thanks Akka.

Akkadius 02-08-2015 06:08 PM

Quote:

Originally Posted by Bohbo (Post 237603)
You sir are awesome. I know people call you the man and give you unlimited accolades of worship, but you are amazingly cool and helpful. Reading your old posts when you were a newb gives me hope I will get better and be able to contribute more in the future, thanks Akka.

No problem, everyone starts somewhere.


All times are GMT -4. The time now is 01:07 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.