Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Very slow download speed from network

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Very slow download speed from network

#1 Post by Ichino »

Hi community!
I run Debian 10 on a dell Optiplex 3060 and I have a problem wiith a very slow download speed from network drives. downloading a 2 GB file take about 30 minutes while uploading take only 2 minutes :?
I tried switching the driver (r8169 -> r8168) without improvement. I have a dual-boot with Manjaro Linux and this slow download speed is a problem only in Debian.

Here is how I mount the drive

Code: Select all

sudo mount -t cifs //nas.ads.mwn.de/ab12cde /mnt/ab12cde -o username=ab12cde,pass="my_pw",dir_mode=0777,file_mode=0777
My network card

Code: Select all

lspci |grep -i ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
Other potentially relevant info

Code: Select all

ju@debian-julien:~$ sudo ethtool -i enp1s0
[sudo] password for ju: 
driver: r8168
version: 8.047.02-NAPI
firmware-version: 
expansion-rom-version: 
bus-info: 0000:01:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
and

Code: Select all

ju@debian-julien:~$ sudo ethtool  enp1s0
Settings for enp1s0:
	Supported ports: [ TP ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Full 
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: internal
	Auto-negotiation: on
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: yes
Any help much appreciated!

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Very slow download speed from network

#2 Post by p.H »

Did you test the download speed with other protocols (HTTP, FTP...) ?

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: Very slow download speed from network

#3 Post by Ichino »

Thanks for reply,
I should have indicated this... Same problem when downloading using HTTP (and same difference with the other distro which has no such issue). Downloading a 1.5 GB file takes 20 mn instead of 2-3 mn with the other Linux OS.
I did not try uploading.

I also tried "switching to software-based encryption by creating a file at /etc/modprobe.d/rt.conf" (http://forums.debian.net/viewtopic.php?t=123320) but did not see any improvement.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Very slow download speed from network

#4 Post by p.H »

Ichino wrote:Same problem when downloading using HTTP
So it is not related to SMB/CIFS.
From the same server or a different one ?

It could be due to :
- the filesystem write speed limit
- the TCP/IP layer
- the ethernet controller driver

Do the ethernet statistics (ip -s link) report anything unusual ?
Ichino wrote:I also tried "switching to software-based encryption by creating a file at /etc/modprobe.d/rt.conf"
This is for a Ralink wireless controller, not your Realtek ethernet controller. I doubt that this kind of controller does any encryption.

v&n
Posts: 624
Joined: 2015-02-04 02:57

Re: Very slow download speed from network

#5 Post by v&n »

p.H wrote:
Ichino wrote:I also tried "switching to software-based encryption by creating a file at /etc/modprobe.d/rt.conf"
This is for a Ralink wireless controller, not your Realtek ethernet controller. I doubt that this kind of controller does any encryption.
Indeed, that trick is not applicable to the driver in use here. Though the created conf file won't do any harm either, can be safely deleted.

Is the writing speed on the local filesystem otherwise okay? For example how much time does copying a 2 GB file locally take?
p.H wrote:Do the ethernet statistics (ip -s link) report anything unusual ?
This may be interesting ^^.

User avatar
Ichino
Posts: 15
Joined: 2019-09-10 08:42
Location: Freising

Re: Very slow download speed from network

#6 Post by Ichino »

Thanks for replies!
p.H wrote:So it is not related to SMB/CIFS.
From the same server or a different one ?
Right for the protocol, and I tried from a different server. I used http://osdn.net/ and download a 2GB .iso as I wanted to check for big files.
p.H wrote:It could be due to :
- the filesystem write speed limit
- the TCP/IP layer
- the ethernet controller driver
v&n wrote:Is the writing speed on the local filesystem otherwise okay? For example how much time does copying a 2 GB file locally take?
For the write speed, copying this 2GB .iso file locally take about 10 seconds, no problem here.
Concerning the driver, I first have r8169. Then I tried switching to r8168 (non-free) but it didn't fixed the thing. FYI, the r8168 driver is doing the job in Manjaro Linux.
p.H wrote:Do the ethernet statistics (ip -s link) report anything unusual ?
I am not really used to it, so it looks unusual... Seems OK but I may be wrong

Code: Select all

$ ip -s link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    RX: bytes  packets  errors  dropped overrun mcast   
    13422179   105621   0       0       0       0       
    TX: bytes  packets  errors  dropped carrier collsns 
    13422179   105621   0       0       0       0       
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether 54:bf:64:87:a7:23 brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    618841842  623332   0       0       0       8243    
    TX: bytes  packets  errors  dropped carrier collsns 
    1033279718 1624347  0       0       0       0 
p.H wrote:
Ichino wrote:I also tried "switching to software-based encryption by creating a file at /etc/modprobe.d/rt.conf"
This is for a Ralink wireless controller, not your Realtek ethernet controller. I doubt that this kind of controller does any encryption.
v&n wrote:Indeed, that trick is not applicable to the driver in use here. Though the created conf file won't do any harm either, can be safely deleted.
I saw it as a "not really dangerous thing to try" so I just edited the file with my driver name. I know it is not the best way to proceed... shooting in the dark... :roll:

Post Reply