V
V
Vitaly Pukhov2014-11-14 01:53:04
Programming
Vitaly Pukhov, 2014-11-14 01:53:04

Why is multi-threaded download slow?

Created an application for downloading files in a Very multi-threaded mode (with support for more than 10 threads), on a slow Internet (up to 2Mbps) a 2-3 times speed increase compared to analogues (download master, etc.), but on a good Internet (over 50Mbps) the speed is almost 2 times slower than analogues. I can’t understand why, the CPU usage is minimal in any case, so I can’t sin on the algorithm yet. Does anyone have any idea why the speed can be so different?
ps It is also impossible to sin on the speed of the disk subsystem, because the file is loaded completely into RAM and "flushed" to disk after the download is complete, which takes a couple of seconds in total.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2014-11-14
@Neuroware

Without knowing the architecture of your application, it's generally difficult to judge ... A couple of ideas:
1. Locks, interprocess communication.
2. Random reading on the sender.

3
386DX, 2014-11-14
@386DX

DM fills 99% of the channel. Better by 2-3 times this is from Babushkin's laboratory, obviously.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question