Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] network file transfer very slow...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Oct 17, 2012 9:57 pm    Post subject: [solved] network file transfer very slow... Reply with quote

I have a share on a server and cannot get beyond ~1.5MB/s transfer speed. The server has constant gigabit and the client is temperamental sometimes 100MBit and sometimes detected as 1000MBit.

server:
Code:
Settings for eth1:
   Supported ports: [ TP MII ]
   Supported link modes:   10baseT/Half 10baseT/Full
                           100baseT/Half 100baseT/Full
                           1000baseT/Half 1000baseT/Full
   Supported pause frame use: No
   Supports auto-negotiation: Yes
   Advertised link modes:  10baseT/Half 10baseT/Full
                           100baseT/Half 100baseT/Full
                           1000baseT/Half 1000baseT/Full
   Advertised pause frame use: Symmetric Receive-only
   Advertised auto-negotiation: Yes
   Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                        100baseT/Half 100baseT/Full
                                        1000baseT/Half 1000baseT/Full
   Link partner advertised pause frame use: Symmetric Receive-only
   Link partner advertised auto-negotiation: Yes
   Speed: 1000Mb/s
   Duplex: Full
   Port: MII
   PHYAD: 0
   Transceiver: internal
   Auto-negotiation: on
   Supports Wake-on: pumbg
   Wake-on: g
   Current message level: 0x00000033 (51)
                drv probe ifdown ifup


I tested scp, nfs3, nfs4 and cifs with all possible settings fior nfs, which I would prefer. Same hardware with FreeBSD setver had about 10-15MB/s with 100MBit network, so I assume it is on the server side.
With rsync between the local disks gives me ~30MB/s speeds, which is OK for me.
NIC on the server:
Code:
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
   Subsystem: Realtek Semiconductor Co., Ltd. TEG-ECTX Gigabit PCI-E Adapter [Trendnet]
   Kernel driver in use: r8169
   Kernel modules: r8169
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
   Subsystem: Realtek Semiconductor Co., Ltd. TEG-ECTX Gigabit PCI-E Adapter [Trendnet]
   Kernel driver in use: r8169
   Kernel modules: r8169


Current settings for nfs:
Code:
/tank1/data 192.168.0.0/24(async,no_subtree_check,rw,no_root_squash)


Firewall rules (I also tried insecure for unprivileged ports on nfs with no better result)
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere           
ACCEPT     all  --  anywhere             anywhere           
REJECT     udp  --  anywhere             anywhere             udp dpt:bootps reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere             udp dpt:domain reject-with icmp-port-unreachable
DROP       tcp  --  anywhere             anywhere             tcp dpts:0:1023
DROP       udp  --  anywhere             anywhere             udp dpts:0:1023

Chain FORWARD (policy DROP)
target     prot opt source               destination         
DROP       all  --  anywhere             192.168.0.0/16     
ACCEPT     all  --  192.168.0.0/16       anywhere           
ACCEPT     all  --  anywhere             192.168.0.0/16     

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination   


uname -a
Code:
Linux disi-disk 3.4.9-gentoo #10 SMP Wed Oct 17 21:57:23 Local time zone must be set--see zic x86_64 Intel(R) Atom(TM) CPU N550 @ 1.50GHz GenuineIntel GNU/Linux


I can still live with the speed, but could be better...
_________________
Gentoo on Uptime Project - Larry is a cow


Last edited by disi on Thu Oct 18, 2012 5:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
b0nafide
Apprentice
Apprentice


Joined: 17 Feb 2008
Posts: 171
Location: ~/

PostPosted: Wed Oct 17, 2012 10:09 pm    Post subject: Reply with quote

I would recommend checking the stats too (assuming eth1):
Code:

# ifconfig eth1 | grep errors
# netstat -s eth1 | grep 'errors\|bad'
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13498

PostPosted: Thu Oct 18, 2012 1:37 am    Post subject: Reply with quote

What speed do you get using discard and/or chargen?
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Thu Oct 18, 2012 12:20 pm    Post subject: Reply with quote

Thanks, I will update later.

//edit: if the client is also on 1000MBit, I get ~20-30MB/s
which is the speed of the controller and therefore fine...

Code:
netstat -s eth1 | grep 'errors\|bad'
    0 bad segments received.
    0 packet receive errors
    0 receive buffer errors
    0 send buffer errors

Code:
ifconfig eth1 | grep errors
          RX packets:605836 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1038348 errors:0 dropped:0 overruns:0 carrier:0


p.s. I had to reboot the netgear switch when I came from work... this could have been the issue... :?:
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum