Hazeron Forums
2022-03-23 Server Load - Printable Version

+- Hazeron Forums (https://hazeron.com/mybb)
+-- Forum: Shores of Hazeron (https://hazeron.com/mybb/forumdisplay.php?fid=1)
+--- Forum: Updates (https://hazeron.com/mybb/forumdisplay.php?fid=11)
+--- Thread: 2022-03-23 Server Load (/showthread.php?tid=2705)

Pages: 1 2 3


2022-03-23 Server Load - Haxus - 03-23-2022

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.


RE: 2022-03-23 Server Load - Rockinsince87 - 03-23-2022

(03-23-2022, 08:50 PM)Haxus Wrote: 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.

Nice catch Haxus. I'm sure everyone is happy your working on server load at the moment.


RE: 2022-03-23 Server Load - Haxus - 03-23-2022

Ok, one more server restart today.


RE: 2022-03-23 Server Load - Xantheose - 03-23-2022

Thank you Haxus !


RE: 2022-03-23 Server Load - Haxus - 03-23-2022

Here is a shout out to those people using the Linux version.

For a long time the only player using a Linux build was me. I would see a Linux player online once in a while.

Lately, Linux players account for about 1 in 7 players online, sometimes as many as 1 in 6. Yay!


RE: 2022-03-23 Server Load - Vooker525 - 03-23-2022

I hope you visit us in universe after successful bug resolve!


RE: 2022-03-23 Server Load - jakbruce2012 - 03-24-2022

Excellent work. Thank you for continued support.


RE: 2022-03-23 Server Load - Tehepicdude - 03-24-2022

Good update, haven't experienced any lag yet, gameplay is very smooth.


RE: 2022-03-23 Server Load - Chojin - 03-24-2022

Thank you Haxus for your hard work.
It is never easy to debug particularly when it comes to multi-threads process ;)

Btw I am a Linux user since the beginning and it is nice to have a native Linux game.


RE: 2022-03-23 Server Load - Xantheose - 03-24-2022

(03-23-2022, 10:48 PM)Haxus Wrote: For a long time the only player using a Linux build was me. I would see a Linux player online once in a while.

I would if you were building on Debian 11.