To Answer the Question About Lag

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.

To Answer the Question About Lag

Postby jordancoles » Thu Aug 16, 2012 2:37 am

No, it is not just you. It's not your internet connection or your computer, the server itself is just lagging. In order to fix the problem the game will need close to a total revamp which is also the reason why Jorbtar aren't currently sneaking in updates to the game. Adding more shit to a pile of shit just is not productive when you'll need to redo the whole thing anyways. The only solution is to wait it out until Loftar finds time to start work on the revamping process which could be whenever really. Please stop asking.

borka wrote:k - i tried to sample the important stuff ( i quit after 53 pages ... :'( )

short version:

All filesystems are XFS. I suspect the lag spikes happen because of either XFS logging flushing, or by XFS' interaction with sync()-ing, but I have no hard proof. The practical effect, either way, is that some process (like the game server) might have to wait sometimes upwards of 10-20 seconds for some simple I/O operation like an open(), rename() or close() to complete.

Some Loftar quotes-

*Planned downtime: OS upgrade thread

I'm having some hopes that the newer kernel might have less lock contentions in the XFS driver, which might have a beneficial impact on I/O latency, but I can't say for sure. :)
---
Much of it is related to the fact that the hard drives are now RAID-1'd to prevent data loss from disk crashes. In world 3, I had the game data on a separate drive, which helped immensely, but was of course far more vulnerable, and there was in face a nuke situation caused by it. You can probably find it somewhere around the Announcements forum.
---
Notice, particularly, the absurdly high waiting times on dm-2, which is the LV holding the game data. It, in turn, is backed by md2, which is a md-RAID mirror backed by sda and sdb. dm-0 is the root filesystem, backed by the same VG as dm-2, and dm-1 is on a separate VG (backed by sda and sdb directly, without redundancy) and holds the minimap data. All filesystems are XFS. I suspect the lag spikes happen because of either XFS logging flushing, or by XFS' interaction with sync()-ing, but I have no hard proof. The practical effect, either way, is that some process (like the game server) might have to wait sometimes upwards of 10-20 seconds for some simple I/O operation like an open(), rename() or close() to complete.
---
No. I guess I wouldn't mind trying, but I doubt fragmentation is the issue, since it isn't a matter of the filesystem just performing steadily bad, but rather of sudden spikes in I/O latency. This is also part of the reason why I suspect that log flushing is part of the problem. I was hoping that Linux 3.2 would solve some of that since it uses delayed logging in XFS by default, but alas...
---
I've explained it previously both in this thread and others, but the concrete symptoms are that individual VFS operations seemingly randomly take Really Long (sometimes up to 20 seconds) to complete, particularly metadata-heavy ones, such as open(), rename(), close() and the like. The problem is that I don't know what they are blocking on, nor how to find that out. Processes running sync() or fsync() calls do seem to have particularly high probability of making other processes block, but they are far from exclusively responsible.
---
Well, to be fair, the cause of the lag is the same as it has been for the past year or so. It only changed in quantity, not in quality. If it were as easy as "trying stuff", Haven would never have had lag to begin with.
---
No, not really. In that regard, I think it speaks for itself that the increase in lag was caused by software changes, rather than hardware changes. ;)

That's not to exclude the possibility that hardware upgrades could alleviate the problem, however. For instance, more RAM would increase the amount of data fitting into the block cache and therefore alleviate the need for disk I/O, which may or may not fix the problem (though I don't really think so either, because the current block cache size should be more than enough as it is, I think). I can also conclude that the server that Salem is running on has far (far) better I/O than the Haven server has, but I'm not sure whether that's mainly a hardware issue or if it might be related to it not using md-RAID or LVM (that hosting company uses a SAN instead).
---
Last edited by jordancoles on Tue Sep 18, 2012 7:24 pm, edited 2 times in total.
Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:

Check out my pro-tips thread
Image Image Image
User avatar
jordancoles
 
Posts: 14076
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: To Answer the Question About Lag

Postby DDDsDD999 » Thu Aug 16, 2012 3:18 am

Lies and slander, the germans right next to the server are mocking us, I DECLARE GERMAN JIHAD!
Image
Image
Image
Image
Image
User avatar
DDDsDD999
 
Posts: 5670
Joined: Fri Jul 02, 2010 12:31 am

Re: To Answer the Question About Lag

Postby jordancoles » Thu Aug 16, 2012 3:47 am

It'd be nice if someone could sticky this just so it could stop being asked lol, at least until the lag is over with
Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:

Check out my pro-tips thread
Image Image Image
User avatar
jordancoles
 
Posts: 14076
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: To Answer the Question About Lag

Postby Marsdarth » Thu Aug 16, 2012 2:57 pm

I don't know what you're talking about, I'm not getting any
.
.
.
.
lag
Marsdarth
 
Posts: 107
Joined: Wed Jun 06, 2012 3:37 am

Re: To Answer the Question About Lag

Postby Dill » Sat Aug 18, 2012 1:06 pm

Thanks alot Jordan, This was much needed.
User avatar
Dill
 
Posts: 875
Joined: Sat Jun 09, 2012 5:58 pm

Re: To Answer the Question About Lag

Postby jordancoles » Thu Aug 23, 2012 2:06 pm

Bumping this when it gets low
Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:

Check out my pro-tips thread
Image Image Image
User avatar
jordancoles
 
Posts: 14076
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: To Answer the Question About Lag

Postby burgingham » Thu Aug 23, 2012 2:21 pm

Gonna help you bump it, but I do not really want to have any more stickies. The forum is too cluttered up with them already imo.
User avatar
burgingham
 
Posts: 8486
Joined: Fri Aug 14, 2009 10:58 pm

Re: To Answer the Question About Lag

Postby jordancoles » Thu Aug 23, 2012 4:31 pm

burgingham wrote:Gonna help you bump it, but I do not really want to have any more stickies. The forum is too cluttered up with them already imo.

Yep, that's fine.
If you have any other links/quotes from Jorbtar about the subject feel free to link it and it'll go in the OP
I tried to find the one from Projeer or however he spells his name but the link wasn't in his sig anymore
Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:

Check out my pro-tips thread
Image Image Image
User avatar
jordancoles
 
Posts: 14076
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: To Answer the Question About Lag

Postby mvgulik » Thu Aug 23, 2012 9:41 pm

Stickies: Sticky index-topics might be a option.
mvgulik
 
Posts: 3766
Joined: Fri May 21, 2010 2:29 am

Re: To Answer the Question About Lag

Postby burgingham » Thu Aug 23, 2012 9:55 pm

Good idea. Anyone not as lazy as I am who can whip something like that up?
User avatar
burgingham
 
Posts: 8486
Joined: Fri Aug 14, 2009 10:58 pm

Next

Return to How do I?

Who is online

Users browsing this forum: Ahrefs [Bot], Claude [Bot], Semrush [Bot] and 2 guests