Lag Monster Challenge

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Techron
Novice
Novice
Posts: 57
Joined: 02 May 2010, 06:47

Lag Monster Challenge

Post by Techron »

I like a good challenge, but the lag has become ridiculous. Is the new Rage Skill at fault? Seems coincidental that there is so much lag since its inception. I saw a global announcement from "Purple" that the lag has been caused by dead accounts and those will be purged. If the accounts aren't read into memory, I don't see how that could be the cause. Just my opinion.

On the other hand, it is a good monster, I just wish it gave some experience and drops.

Techron
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Re: Lag Monster Challenge

Post by Jenalya »

Techron wrote:I saw a global announcement from "Purple" that the lag has been caused by dead accounts and those will be purged. If the accounts aren't read into memory, I don't see how that could be the cause. Just my opinion.
The server works with simple text files, including one big file for the playerdatabase, so those accounts are read into memory.
Techron
Novice
Novice
Posts: 57
Joined: 02 May 2010, 06:47

Re: Lag Monster Challenge

Post by Techron »

I should look at the architecture of the game before making judgement. Sorry...

Maybe write a cron to auto archive the "stale" accounts?

Techron
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: Lag Monster Challenge

Post by Freeyorp101 »

Techron wrote:Maybe write a cron to auto archive the "stale" accounts?
The servers need to be offline while unused accounts are purged. Doing so when not needed would be disruptive.


---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Lag Monster Challenge

Post by Crush »

As far as I know, account purging isn't necessary anymore because this part of the code was heavily optimized. Also, the symptom when an account purge became necessary, was a very long server response time during login. Response time while playing wasn't affected.

When you are experiencing bad network performance while playing there are a lot of other possible reasons which need to be explored. The first thing to research would be to find out who is affected by this: Only one person, several people (who have something in common like ISP, operating system, or geographical location), or everyone.

Btw: Moved to General Support
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Freeyorp101
Archivist Prime
Archivist Prime
Posts: 766
Joined: 04 Nov 2008, 09:17
Location: New Zealand

Re: Lag Monster Challenge

Post by Freeyorp101 »

The char-server now forks for writes, so it doesn't block inter-server tasks like it used to. It's not really optimised, as it still has some very heavy writes and takes up a lot of memory, but it shouldn't have the same impact on gameplay that it once did.


---Freeyorp
(09:58:17) < tux9th> Freeyorp: your sig on the forums is kind of outdated
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Lag Monster Challenge

Post by o11c »

Besides overall memory consumption, the two main problems with the current (login-server AND char-server) are linear search and having to write the whole db when something changes. The first is trivial to fix in my rewrite, if I haven't already (sort by ID, with an extra map from name-to-ID for the initial login), the second can be solved by implementing a "delete" message and appending to the file (or writing to another file and using includes), only periodically rewriting (probably on server startup, since shutdown should be fast - we don't want to get SIGKILL). (Remember, the whole file would not be stored in memory, only the accounts that are not deleted. And the file is never read after server start). Though actually, if I want to make this SQL-ready, I probably want to split storage into a separate server than the public-facing servers. Still waiting for a nonblocking SQL ... I have learned about "prepared statements" that ease my other fears.

That said - with the forking, it *shouldn't* have any delay on the map-server. But, I've learned enough not to trust tmwA at anything.
Former programmer for the TMWA server.
Post Reply