Lag and Desync

HEROTHOR
A semi-regular
A semi-regular
Posts: 25
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Sep 03, 2013 12:56 am

Lag and Desync

Post by HEROTHOR »

Hello I have a 6-Core VDS Package. Right now with 40 players on we are expieriencing major lag and desync. I think its pointing to that I have some settings configure wrong. Here is my basic.cfg

Code: Select all

MinBandwidth=140800000;
MaxBandwidth=1073741824;
MaxMsgSend=92;
MaxSizeGuaranteed=128;
MaxSizeNonguaranteed=64;
MinErrorToSendNear=0.0019999994;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
I do not believe i have max cores set to 6. My CPU is at 31% and my RAM is at 43%. This is the best forum I've ever been apart of. Thanks for everyone's help!
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Lag and Desync

Post by kraze »

Your min and max bandwidth are a bit off. Since those are done in BPS you're saying your server will be sending 17.6MBps with a maximum of 134MBps. Try lowering those to a bit. whether or not that can cause the issues you're are seeing is hard to say but I'd still correct them.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

Its a 55 player sever so wouldnt it be 256 * 55 = 140800000? What would you suggest I set it at? Thanks for you reply! I really appreciate the help! :D
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Lag and Desync

Post by kraze »

Well you will want that to be your maximum not your minimum. At the moment you're saying your server will be sending 17.6MBps consistently. 256 * 55 would be 14080, not sure why you added the extra zeros.

It would be best if you set your minrate to something lower that you know you'll server will always be achieving and then your max to something a bit higher, something that you'll never achieve.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

This is the post I was looking at. All the extra zeros are because its in b not kb

http://dayzmod.com/forum/index.php?/top ... rformance/
Your MinBandwidth should be your player slots x 256KB(its), so for example:
75 slots X 256KB = 19200KB(its)
19200KB(its) = 192000000 Bits
But Ill give that a shot. You reckon that is the only thing I should try to tweak? Should I set max cpu to 6?

Thanks again!
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Lag and Desync

Post by kraze »

Not sure how I missed that conversion, sorry about that. Anyways in your case the 14080000 would be your minimum but I would personally set this a bit lower since setting it too high can cause issues. Then as your maximum I would set it a bit higher. That way you're leaving your desired amount in the middle.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

Well 1073741824 is 1 extra digit this is not enough?
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

How much upload speed and download speed is normal? I'm at 147mbps for download and 26mbps for upload. This seems a bit low, any ideas?
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

Just uploaded with these settings. Seems like load in times are way quicker.
MinBandwidth=100800000;
MaxBandwidth=1103741824;
MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinErrorToSendNear=0.0019999994;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Lag and Desync

Post by .=QUACK=.Major.Pain »

You shouldn't have to set the cpucount in your command line.
They have made it so the game adjusts itself according to your server.

We found with some dayz mods, setting the cpucount had caused lag and skipping.
Removing that variable cleaned it up nicely.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

I'll give this a shot, I am experiencing a lot less lag with the new settings, but its still there. Way quicker load in times. I just think its allowing the player to download more. Is it normal to have not too bad lag but noticeable FPS drops with 55/55 on? Ill let you know if the disabling of the cpu count helps! ;)

Does anyone know if those internet speeds are normal for a server to run optimal. They are
How much upload speed and download speed is normal? I'm at 147mbps for download and 26mbps for upload.
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

This is my basic.cfg now. People are getting kicked for signature check timeouts.

Code: Select all

MinBandwidth=140800000;
MaxBandwidth=1073741824;
MaxMsgSend=92;
MaxSizeGuaranteed=128;
MaxSizeNonguaranteed=64;
MinErrorToSendNear=0.029999997;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
class sockets
{
	maxPacketSize=2048;
};
I was having a little bit better luck with this one, but still a nice amount of desync, but less than the new configuration. Any ideas on what I should try. This is the previous one.

Code: Select all

MinBandwidth=100800000;
MaxBandwidth=1103741824;
MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinErrorToSendNear=0.0019999994;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
Caliban55
This is my homepage
This is my homepage
Posts: 439
Joined: Sat Sep 04, 2010 10:20 am
Location: Cologne, Gemany
Contact:

Re: Lag and Desync

Post by Caliban55 »

HEROTHOR wrote:This is my basic.cfg now. People are getting kicked for signature check timeouts.

Code: Select all

MinBandwidth=140800000;
MaxBandwidth=1073741824;
MaxMsgSend=92;
MaxSizeGuaranteed=128;
MaxSizeNonguaranteed=64;
MinErrorToSendNear=0.029999997;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
class sockets
{
	maxPacketSize=2048;
};
I was having a little bit better luck with this one, but still a nice amount of desync, but less than the new configuration. Any ideas on what I should try. This is the previous one.

Code: Select all

MinBandwidth=100800000;
MaxBandwidth=1103741824;
MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;
MinErrorToSendNear=0.0019999994;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
Unlesss you know exactly what you are doing, I would NOT recommend changing the class socket parameter. Leave it at it's default of 1400, or do not include this setting at all and use the automatic default setting.

Please take a look at hte following officila BI thread on this:
http://community.bistudio.com/wiki/basic.cfg

What I would recommend changing are the calues for:

MaxMsgSend=128;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=256;

They are a bit too low/not adequate for a high load server. Try the following values:
MaxMsgSend=1024;
MaxSizeGuaranteed=1024;
MaxSizeNonguaranteed=64;

Leave the bandwidth setting within a reasonable range, the Arma2 server usually does a fairly good job itself to get the optimum setting.

And always use the #monitor command to check your actual server proccessing frames after those changes!
HEROTHOR
A semi-regular
A semi-regular
Posts: 25
Joined: Tue Sep 03, 2013 12:56 am

Re: Lag and Desync

Post by HEROTHOR »

Hey man thanks for the reply. I took that out. Running much better, only thing that happens now is like 15 players will all get signature check timeouts/session lost after a ping of desync. The only one i might add everyones desync 90% of the time is 0 now. So I'm doing something right. Heres my current basic.cfg. Tell me what you think or what i try next.

Code: Select all

MinBandwidth=140800000;
MaxBandwidth=1073741824; 
MaxMsgSend=1024;
MaxSizeGuaranteed=512;
MaxSizeNonguaranteed=64;
MinErrorToSendNear=0.029999997;
MinErrorToSend=0.0019999994;
MaxCustomFileSize=0;
Windowed=0;
adapter=-1;
3D_Performance=1;
Resolution_Bpp=32;
serverLongitude=-118;
serverLatitude=34;
serverLongitudeAuto=-118;
serverLatitudeAuto=34;
Caliban55
This is my homepage
This is my homepage
Posts: 439
Joined: Sat Sep 04, 2010 10:20 am
Location: Cologne, Gemany
Contact:

Re: Lag and Desync

Post by Caliban55 »

Your basic.cfg values looks good so far. What you can try now is to raise the MaxMsgSend and MaxSizeGuaranteed a bit in 128 steps and see if that improves anything(I don't think tough that you will see much of an improvement).

As a further measure, if you haven't done this yet, you could try to set your maxPing in your BattlEye config file to a decent value, so that high ping clients are not able to connect to the server and cause additional desynchronize problems.

You can also prevent client from mass spawning and only allow a specified number of clients to connect within a specified interval. Try to take a look at the BEC utility under http://www.ibattle.org/
This is done with the FloodControl setting.
Post Reply