Inbound file transfers very slow. Outbound are fine.

General support questions
Post Reply
jeffw_00
Posts: 60
Joined: 2006/12/17 02:55:29

Inbound file transfers very slow. Outbound are fine.

Post by jeffw_00 » 2017/12/17 14:55:34

Hi - I built a new Centos 7 system on a new i7 PC (1708) did a yum update. Things are generally working fine, a few things left to work out.

One is this: Copying files TO the system (rsync, internet downloads, sftp) are very slow (< 10MB/s). Copying files FROM the system are much faster. Firewall is off (for testing). Is there some sort of AntiVirus or something "checking" all incoming files?

If not - I see stuff on the web suggesting it's a network config issue. But usually the problem is the other way. My /etc/sysconfig/network is blank. Most of the network setup stuff i find on the web is old, can someone suggest a fix, or how I can figure out if my network is properly configured? Some info below. [Note - I did disable IPV6 on install]

Thanks!

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 70:4d:7b:65:0b:1d brd ff:ff:ff:ff:ff:ff
inet 192.168.1.19/24 brd 192.168.1.255 scope global dynamic enp1s0
valid_lft 77146sec preferred_lft 77146sec
inet6 fe80::724d:7bff:fe65:b1d/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 52:54:00:ba:b8:16 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000
link/ether 52:54:00:ba:b8:16 brd ff:ff:ff:ff:ff:ff
Last edited by jeffw_00 on 2017/12/17 15:15:07, edited 1 time in total.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Inbound file transfers very slow. Outbound are fine.

Post by hunter86_bg » 2017/12/17 15:04:20

Could you provide details for the both systems ? Same LAN segment? Any firewalls in between ?

jeffw_00
Posts: 60
Joined: 2006/12/17 02:55:29

Re: Inbound file transfers very slow. Outbound are fine.

Post by jeffw_00 » 2017/12/17 15:18:01

For purposes of testing, I have a CentOS5 system, a CentOS7 system, and a WIN7PC on the same LAN (all connected to the same switch). No firewalls except I didn't bother to disable WIN7 firewall as it's not in the way.

WIN7 <-> Centos5 No speed issues
WIN7 <-> Centos7 Slow TO centos7, Fast to Win7
Centos5 <-> Centos7 Slow TO Centos7, Fast TO Centos5
WIN7 <-> Centos5 Fast both ways

Internet download -> WIN7 Fast
Internet download -> Centos5 Fast
Internet download -> Centos7 slow.

Fast is what you'd expect - file transfers exceeding 30MB/s Internet download as much as 50Mb/s (what i pay for)
Slow is < 10 MB/s.

Thanks!
/j

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Inbound file transfers very slow. Outbound are fine.

Post by TrevorH » 2017/12/17 15:23:29

Both rsync and sftp use encrypted communication and it's possible that transfers using those will bottleneck on a single core of your processor. Test using a non-encrypted transfer protocol to eliminate that so you know if the problem is network or if you are just cpu bound.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

jeffw_00
Posts: 60
Joined: 2006/12/17 02:55:29

Re: Inbound file transfers very slow. Outbound are fine.

Post by jeffw_00 » 2017/12/17 16:09:56

Fair enough - I see the same slow inbound performance using old-style FTP. Thanks!

heliophyte
Posts: 10
Joined: 2017/12/02 15:37:53
Contact:

Re: Inbound file transfers very slow. Outbound are fine.

Post by heliophyte » 2017/12/17 19:05:17

Let me make sure I understand the problem...
the CentOS 7 machine is receiving more slowly than it is sending. No indications of network throttling.

Which machine initiates the transfer? Just read the rest of the thread from my workstation instead of my phone...
I'm inclined to think it may be protocol config related. Also, have you run these tests with SEL and FWD?
Jim Yadon
http://jim.yadon.ltd

"He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which." ~ D. Adams

jeffw_00
Posts: 60
Joined: 2006/12/17 02:55:29

Re: Inbound file transfers very slow. Outbound are fine.

Post by jeffw_00 » 2017/12/17 20:03:34

So what I did was plug in a good Intel external NIC and all the slow speed issues went away. My guess is that Centos 7 configures the driver for the RealTek RT8111H incorrectly (or more likely, the information Centos.org is given from Realtek is sketchy). It's not worth my time to debug further. ( Also - thanks to heliophyte, but I don't know what SEL and FWD are).

This kinda solves it - although not perhaps the way most would like - sorry
/j

heliophyte
Posts: 10
Joined: 2017/12/02 15:37:53
Contact:

Re: Inbound file transfers very slow. Outbound are fine.

Post by heliophyte » 2017/12/20 16:39:59

SEL= SELinux
FWD=firewalld

My apologies. I forget to expand my shorthand sometimes.
I am glad you were able to pinpoint it to the hardware at least. That was going to be my next suggestion. I recently had bad line in the port my machine was connected through. Turns out a fastener had been run into my network line when the adjoining room was remodelled.
Jim Yadon
http://jim.yadon.ltd

"He attacked everything in life with a mix of extraordinary genius and naive incompetence, and it was often difficult to tell which was which." ~ D. Adams

Post Reply