Server lag with megabase.

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
oleyska
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 16, 2017 5:36 pm
Contact:

Server lag with megabase.

Post by oleyska »

Is this to be expected?

Current server specs:
Ubuntu 16.04 latest updates installed.
Phenom II 1055T
16gb DDR3 1600mhz
It's a vm inside ESXi 5.5
ssd (intel 256 gb something sata)

if I save it and load it, it doesn't really lagg thaat much on my computer but it severely does it on a server I thought of using
My computer : Ryzen 1700 @ 4G. ubuntu 17.10 vega 64 mesa 17.3 devel. 50fps/50ups
Test server computer: Xeon 2680V2 10core\quadro 4000K - 27 fps\ups....

do I have to buy an I3 @ 5ghz to run it as a server ? is this what I should expect at this stage?
Attachments
_autosave5.zip
should be ok.
(20.23 MiB) Downloaded 63 times


AlienX
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed May 17, 2017 7:13 pm
Contact:

Re: Server lag with megabase.

Post by AlienX »

Just as a side note from the links posted above.
Factorio's simulation is a single-threaded beast.
As Loewchen has mentioned in his last link, the best idea is to pull down the game simulation speed with /c game.speed=x (where x is a number between 0.1 and 1.0)

Looking at your servers CPU, it's single threaded performance is quite bad: http://cpuboss.com/cpu/AMD-Phenom-II-X6-1055T

oleyska
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 16, 2017 5:36 pm
Contact:

Re: Server lag with megabase.

Post by oleyska »

no shit.
but even all alternatives I have seems to be not up to the task unfortunately...

seems like factorio servers are really hard\useless to host as most servers come with 10+ cores these days and even client cpu's are high core count... hoping they can do multicore soon...
Will try it at the xeon 2680v2 tomorrow hoping the ipc improvements on the other server is a little more up to the task.
The game speed setting at 0.3 managed to make it possible to place belts again...

I'm looking around to see if I can find an high clock part and overclock it to 5ghz to see if the map likes it.

AlienX
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed May 17, 2017 7:13 pm
Contact:

Re: Server lag with megabase.

Post by AlienX »

oleyska wrote:no shit.
From this, I would suggest that you've already known the answer to your original post then...

I can run a pretty intensive mega base on my VMWare hosted VPS running CentOS on a Intel Xeon X5690, if anything your map is tiny compared to most mega bases.

Have you tried the UPS-up mod - it sometimes helps, sometimes doesnt.

Multicore as far as I am aware is not something they are going to be doing any time soon, while some work has already happened on it and is most likely sitting on a repository fork somewhere It's a difficult task to multi-thread this type of simulation.

oleyska
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 16, 2017 5:36 pm
Contact:

Re: Server lag with megabase.

Post by oleyska »

Now we have found a better replacement for the server now we're all struggling with clients.

5960X, ryzen 1700, and finally the worst offender here for our gameplay is an i7-6500U...

server is now Xeon E3 1225 V3 where cpu bottleneck occur little over .8 gamespeed.

i7-6500U drops at .6
5960X drops game at .7
Ryzen 1700 @ 4ghz keeps in game at 1 but 5 FPS... 0.95 is max at the map for this one.

Not everyone playing factorio runs dualcores at 3.6ghz ++ do they?
we swapped a xeon 10 core to a quadcore for higher clocks and the server is doing better but still.... who owns dualcores nowadays ?

Server:
"oleyska@Ole1ubuntuserv01:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 4
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 60
Model name: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz
Stepping: 3
CPU MHz: 3191.865
BogoMIPS: 6385.21
Hypervisor vendor: VMware
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 8192K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm epb fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid xsaveopt dtherm ida arat pln pts"

oleyska@Ole1ubuntuserv01:~$ free -m
total used free shared buff/cache available
Mem: 3007 735 1937 12 334 2107
Swap: 3071 0 3071

oleyska@Ole1ubuntuserv01:~$ uname -r
4.8.0-59-generic

oleyska
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 16, 2017 5:36 pm
Contact:

Re: Server lag with megabase.

Post by oleyska »

Server upgrade, tried linux, windows, no go.

Current tasks done:
Killed all biters. - increased 1 ups.
Tried UPS up, removed again.
Removed dropped items. - no change
Game speed reduced to 55% (.55)
Tried force d3d, opengl in windows. - no change
Only used ups up mod for half a day and done pretty much all except remove decoration.

FPS and lagg spikes.
Zooming out a tiny bit is death:
Single player fully zoomed out is 25fps\ups at 3.8ghz ryzen 1700... - Cpu load ain't high either.

debug machine as single user in multiplayer game
Ryzen 7 1700 @ 3.8 ghz
Corsair LPX 2666 2x16gb
Vega 64 (I have tried Radeon 7970, GTX970 no difference)
Win 10.
Linux ubuntu 17.04 4.12 amd staging kernel mesa 17.3
3840x2160 resolution - Tried 1920x1080 - no change

as most are familiar with windows debug is done in Windows from now on, it's just exactly the same in linux.

Factorio server occasionally spikes up to 100% but rare occasion but usally sits at 85%
Attachments
_serverlaggsave4.zip
(24.57 MiB) Downloaded 65 times
FACTORIO_LAGG.png
FACTORIO_LAGG.png (16.98 MiB) Viewed 2689 times
factorio_server_load.JPG
factorio_server_load.JPG (139.38 KiB) Viewed 2689 times
factorio-current.log
(45.11 KiB) Downloaded 76 times

Loewchen
Global Moderator
Global Moderator
Posts: 8284
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Server lag with megabase.

Post by Loewchen »

Regarding UPS, this is to be expected with what is going on in your save, especially the amount of belts. You could noticeably improve it by consequently using underground belts and restructuring for minimum belt length.
What I do not understand is the FPS issue, for some reason the frame is waiting 32ms for the update while the update itself takes only 29ms. Are you sure FPS are not on par with UPS when using 1080p?

Post Reply

Return to “Technical Help”