Not a member yet? Why not Sign up today
Create an account  

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2022-03-23 Server Load

#1
A bug caused one or more servers to crash over the past few days. The bug was due to the noncombatant state of NPCs. That bug was fixed.

Load on the servers has continued to be my number one concern this week. I know there are other bugs that need attention but this one is the highest priority.

I made some giant strides toward smoothing out the servers today. Thanks for your patience if you waited through the many server restarts today. That should be all for today.

The largest contributor to the lag was due to a read/write lock on a data structure that was getting locked for write too often. The code was improved to be smarter about when to lock that lock for write.

Here is a little background about read/write locks. They are used to control access to a resource in a multi threaded environment.

Many threads can access a resource simultaneously when they lock the read/write lock for read access. The lock allows many threads to lock it for read at the same time.

However, when a thread must have exclusive access to the resource, the lock must be locked for write. Only one thread can lock the read/write lock for write at the same time. The locking thread waits for all current locks to be unlocked before the write lock is granted.

While a read/write lock is locked for write, any other thread attempting to lock the lock will wait until the write lock is unlocked.
Reply



Messages In This Thread
2022-03-23 Server Load - by Haxus - 03-23-2022, 08:50 PM
RE: 2022-03-23 Server Load - by Rockinsince87 - 03-23-2022, 09:30 PM
RE: 2022-03-23 Server Load - by Haxus - 03-23-2022, 09:40 PM
RE: 2022-03-23 Server Load - by Rockinsince87 - 03-24-2022, 10:13 AM
RE: 2022-03-23 Server Load - by Xantheose - 03-23-2022, 10:01 PM
RE: 2022-03-23 Server Load - by Haxus - 03-23-2022, 10:48 PM
RE: 2022-03-23 Server Load - by Xantheose - 03-24-2022, 09:19 AM
RE: 2022-03-23 Server Load - by Vooker525 - 03-23-2022, 10:50 PM
RE: 2022-03-23 Server Load - by jakbruce2012 - 03-24-2022, 02:59 AM
RE: 2022-03-23 Server Load - by Tehepicdude - 03-24-2022, 07:57 AM
RE: 2022-03-23 Server Load - by Chojin - 03-24-2022, 08:09 AM
RE: 2022-03-23 Server Load - by DidoNialow - 03-24-2022, 11:13 AM
RE: 2022-03-23 Server Load - by Haxus - 03-24-2022, 03:15 PM
RE: 2022-03-23 Server Load - by Xantheose - 03-24-2022, 04:24 PM
RE: 2022-03-23 Server Load - by Haxus - 03-24-2022, 04:35 PM
RE: 2022-03-23 Server Load - by Xantheose - 03-27-2022, 10:16 PM
RE: 2022-03-23 Server Load - by Vooker525 - 03-24-2022, 06:07 PM
RE: 2022-03-23 Server Load - by QuakeIV - 03-25-2022, 02:44 AM
RE: 2022-03-23 Server Load - by Haxus - 03-25-2022, 10:35 PM
RE: 2022-03-23 Server Load - by Vooker525 - 03-25-2022, 10:37 PM
RE: 2022-03-23 Server Load - by martianant - 03-26-2022, 12:33 AM
RE: 2022-03-23 Server Load - by QuakeIV - 03-26-2022, 12:04 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)