[0.12.24] [cube] Really slow map upload

This subforum contains all the issues which we already resolved.
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

[0.12.24] [cube] Really slow map upload

Post by Zeblote »

My upload speed is 10Mbit/s and their download speed is about the same. Why does factorio keep slowing it down to a crawl?

Image
Live-Dimension
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Feb 27, 2016 11:17 pm
Contact:

Re: [0.12.24] Really slow map upload

Post by Live-Dimension »

I have the same issue. It's okay on smaller maps, but on the bigger ones....
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.24] Really slow map upload

Post by kovarex »

The speed was appropriate in our tests, so there is probably some specific.
Is it faster in the start and then slows down? Or is it just the same slow speed all the time?

Can you provide the log file? What country is there? Is there some specific network settings that might be related?
User avatar
yngndrw
Inserter
Inserter
Posts: 46
Joined: Tue Mar 01, 2016 12:14 pm
Contact:

Re: [0.12.24] Really slow map upload

Post by yngndrw »

I've noticed this as well.

It was a 6MB map and the upload started at about 50-100KB/s and slowly rose to about 200KB/s by the end of the upload. I have a 20Mb/s upload speed so I should have been able to get an around rate of around 2.5MB/s.

I was the hosting the server (Didn't tick peer-to-peer) and nobody else was on the server except my friend who was joining. The server has been up for a few hours before that and my friend had just restarted Factorio after a disconnect which wouldn't reconnect.

I've attached the log, or at least I believe it's the correct log.
Attachments
factorio-current.log
Log
(47.67 KiB) Downloaded 265 times
User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: [0.12.24] Really slow map upload

Post by StoneLegion »

kovarex wrote:The speed was appropriate in our tests, so there is probably some specific.
Is it faster in the start and then slows down? Or is it just the same slow speed all the time?

Can you provide the log file? What country is there? Is there some specific network settings that might be related?
We get this time to time Kovarex where the user starts at really low speed and then near the end very slow speed. At this point we ask them to alt f4 and reopen the game and it sometimes fixes it. Normally for us we start at like 1.5mbps or whatever the correct caps are and then ends up at 2.1 (so faster)

But yeah this odd bug seems to be a hit and miss but annoying neverless.
shandrolis
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Aug 13, 2015 2:52 pm
Contact:

Re: [0.12.24] Really slow map upload

Post by shandrolis »

For me and my friend it's the other way around.
Start at 300kbps-ish and slows down gradually, meaning that on a larger map it can slow down to 30kbps-ish
Dominic92x
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Mar 02, 2016 11:48 pm
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by Dominic92x »

Just wanted to bump this thread.
Having a similar issue with 12.26, wondering if it is computer specific?

On my Windows 10 laptop I will start downloading a map at 1.2 mb/s (WiFi) and then quickly crawl down to 20 kb/s, taking 15 minutes to download the map.
On my Windows 10 desktop I will download the map at 1.5 mb/s (Ethernet connection) and it will stay there until finished.

It is also important to note that this is all on the same network - so upload/download is only limited by the router's ability and individual computer network cards (Correct?)

I don't have access to the logs right now, but maybe I can post them when I get home.
Bisa
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jul 17, 2015 3:22 pm
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by Bisa »

0.12.29

Speed starts out fine at 800 kB/s (consistent with my internet subscription dl speed) but drops quickly to 80 kB/s

Yesterday I had the same problem so I started shutting down bandwidth eating services ending up only having factorio (stand alone zip package) running. I even disabled windows updates (and yes, I've long since disabled the windows update peer-to-peer sharing)
I ran some speed tests on my broadband and I even copied the save zip on the server and published it via apache, used a browser to fetch it over http - speedy as ever, it's not my internet, it's not the connection to/from the server it's most likely factorio...

So at this point I started tcpdumping the udp traffic when I connect to see if I could find anything interesting but lo and behold - it started working with normal speed again, random! Happily killed some biters and then went to sleep - this was a ~20 MB save

Today when I try to reconnect I decided to tcpdump again, this time actually capturing a slow sudden drop to 80 kB/s, it eventually desynced once I got into the game so I restarted the server and captured that too - I downloaded the save via http once again and went on to try another connection (still capturing with tcpdump)

Now, looking at the network dumps I can't really see anything useful but perhaps you can? (drop me a public key and I'll set you up to get access to the wire dumps)

Edit*
This morning I had a near perfect download of my now 30 mb save, joined in a few seconds compared to minutes last night, captured it as well if it's interesting to look at
Hosting a factorio server? Take a look at this || init script ||.
terminus
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Apr 06, 2016 1:27 pm
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by terminus »

This happens to my group of friends. However only when a third player downloads the map. It starts off at the maximum download speed of 2mbps but rapidly degrades to 10kbps. The hosts upload speed is not being maxed out. The download speed immediately increases when the second player disconnects. Both player 2 and 3 are on the same LAN however 1 is hosting the dedicated server from their home.
User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by TruePikachu »

The most likely cause of this is the use of UDP for transferring the map instead of TCP. I believe this is a known issue, I'll try to find the thread.

EDIT: I don't see it anywhere "official" in this subforum, so I guess I can't consider it a "known issue".
User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by cube »

Using UDP is not the problem, problem is that our implementation was a little messed up.

I've made another fix for 0.12.31, so let's hope this one will be the last that is necessary.
sillyfly
Smart Inserter
Smart Inserter
Posts: 1101
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: [0.12.24] [cube] Really slow map upload

Post by sillyfly »

I think the point about TCP was that it takes care of packet loss and transfer speed for you, so it can work fast "out of the box", at the price of being more rigid (less customizable).

But it's great to hear the network code implementation is being improved!
Post Reply

Return to “Resolved Problems and Bugs”