Subject: "Heavy lag lately" Previous topic | Next topic
Printer-friendly copy Email this topic to a friend CF Website
Top General Discussions Gameplay Topic #40390
Show all folders

GaplemoTue 27-Sep-11 01:04 AM
Member since 06th May 2010
619 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40390, "Heavy lag lately"


          

I spoke with a couple people and it seems its not just me, but there is heavy amounts of lag hitting lately, usually on the ticks. Is it because you guys are coding and testing away on some secret project, or is it hosting issues again? It's been pretty bad lately, even for me, and Im packing a 36.50 mbps internet speed.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Reply RE: Heavy lag lately, Isildur, 29-Sep-11 08:30 AM, #2
Reply RE: Heavy lag lately, Scarabaeus, 29-Sep-11 01:25 PM, #3
     Reply RE: Heavy lag lately, Isildur, 29-Sep-11 04:22 PM, #4
          Reply RE: Heavy lag lately, Scarabaeus, 30-Sep-11 07:40 AM, #5
               Reply RE: Heavy lag lately, Isildur, 30-Sep-11 10:01 AM, #6
                    Reply RE: Heavy lag lately, Scarabaeus, 30-Sep-11 01:05 PM, #7
                         Reply RE: Heavy lag lately, Isildur, 30-Sep-11 04:01 PM, #8
Reply Seems to only happen when necro's are online, Observer of lag (Anonymous), 29-Sep-11 08:03 AM, #1

IsildurThu 29-Sep-11 08:30 AM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40439, "RE: Heavy lag lately"
In response to Reply #0


          

Couple thoughts:

1. Zulg added code a while back to monitor when certain functions run longer than expected.

2. AFAIK the way this code is written it won't catch situations where functions run long because of system load external to the process in which CF is running.

3. CF runs on a shared system. It's very likely the lag is due to some other user on the system. Short of moving to dedicated hardware (or get some sort of resource guarantee on the shared system) there's probably not much that can be done. It might be helpful to add an additional batch of monitoring code that looks at wall-clock time instead of process time.

4. The bandwidth of your internet connection is pretty meaningless with respect to perceived "lag" on CF. What you care about is latency, i.e. "ping time".

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

    
ScarabaeusThu 29-Sep-11 01:25 PM
Member since 19th Feb 2011
1524 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40440, "RE: Heavy lag lately"
In response to Reply #2


  

          

I am periodically lagged while editing files on the server, so it is not specifically a CF issue.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

        
IsildurThu 29-Sep-11 04:22 PM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40441, "RE: Heavy lag lately"
In response to Reply #3


          

It's not the CF server's network connection either. I can have ping running non-stop and it never stutters even when the game seems to be lagging. So it's just that the box is cpu or i/o starved.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

            
ScarabaeusFri 30-Sep-11 07:40 AM
Member since 19th Feb 2011
1524 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40442, "RE: Heavy lag lately"
In response to Reply #4


  

          

If a process is hogging the resources, there isn't a form of ps that would help identify that is there? Tracking CPU usage may or may not be useful.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                
IsildurFri 30-Sep-11 10:01 AM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40443, "RE: Heavy lag lately"
In response to Reply #5


          

Depends. If the greedy process is running in the same VM as CF then it should be possible to identify. If not then it's pretty much impossible from CF's point of view. Someone with access to the host OS could, of course, figure it out, but that would have to be someone from the hosting company.

That said, someone could extend the monitoring code currently in place to check "wall clock" time in addition to process CPU time. The latter is good for identifying poorly performing sections of code. The former is good for catching two other issues:

1. delays due to I/O contention, and
2. delays due to CPU contention.

Problem is, even if such monitoring existed it wouldn't tell us which of the above scenarios is happening. And in the case of #2 there's probably nothing we can do about it besides getting dedicated hardware (or possibly complaining to the hosting company about intermittent CPU shortages).

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                    
ScarabaeusFri 30-Sep-11 01:05 PM
Member since 19th Feb 2011
1524 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40445, "RE: Heavy lag lately"
In response to Reply #6


  

          

Using top, it looks like CF takes ~5-9% CPU usage; 2.6% memory usage. When the lag spikes hit in CF, top continues to function (I assume that is a priority issue), but I haven't seen a pattern in what hits the top of the chart at those times.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

                        
IsildurFri 30-Sep-11 04:01 PM
Member since 04th Mar 2003
5969 posts
Click to send email to this author Click to send private message to this author Click to view this author's profile Click to add this author to your buddy list
#40446, "RE: Heavy lag lately"
In response to Reply #7


          

That suggests it's either 1) something outside CF's virtual machine that's sucking up all the available CPU resources or 2) CF stuck waiting on some I/O resource.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Observer of lag (Anonymous)Thu 29-Sep-11 08:03 AM
Charter member
#40438, "Seems to only happen when necro's are online"
In response to Reply #0


          

Seriously.

  

Alert | IP Printer Friendly copy | Reply | Reply with quote | Top

Top General Discussions Gameplay Topic #40390 Previous topic | Next topic