• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: GuruPlug Network speed slow  (Read 1486 times)
bbhl
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: November 13, 2010, 05:20:47 PM »

Hi, All!

I have an issue with GuruPlug while trying to transfer data over the network. The speed over the network is very slow - 5+Mb per second while

Quote
sheevaplug-debian:/etc/samba# time dd if=/dev/zero of=/mnt/hdd/file1 bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 22.7605 s, 46.1 MB/s

real   0m23.371s
user   0m0.010s
sys   0m14.000s
sheevaplug-debian:/etc/samba# time dd if=/dev/sdc1 of=/dev/null bs=1M count=1000
1000+0 records in
1000+0 records out
1048576000 bytes (1.0 GB) copied, 28.604 s, 36.7 MB/s

real   0m28.616s
user   0m0.010s
sys   0m6.610s

Samba config:

Quote
[global]
   workgroup = localdomain
   server string = %h server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S
[music]
   comment = Test
        path = /mnt/hdd
        write list = @share
        locking = no
   browseable = yes
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
sheevaplug-debian:/etc/samba#

There is no error on Ethernet interface at all. The Interface speed is 1Gb. GuruPlug connected to the Asus Rt-N16. Laptop to PC speed consumes maximum HDD speed (approx. 50+ Mb), but Guru stays 5+ Mb per second.

Any ideas? Sad

Thank you.
Logged

bbhl
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #1 on: November 14, 2010, 09:20:19 AM »

Definitely this is Samba issue with speed... sounds weird, but it is... Sad Continues the story of GuruPlug strange behavior.

eth0 config:

Quote
sheevaplug-debian:~# ifconfig
eth0      Link encap:Ethernet  HWaddr f0:ad:4e:00:28:47 
          inet addr:10.10.10.135  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::f2ad:4eff:fe00:2847/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4437530 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3960071 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:513740696 (489.9 MiB)  TX bytes:3861738168 (3.5 GiB)
          Interrupt:11


sheevaplug-debian:~# ethtool eth0
Settings for eth0:
   Supported ports: [ TP MII ]
   Supported link modes:   10baseT/Half 10baseT/Full
                           100baseT/Half 100baseT/Full
                           1000baseT/Full
   Supports auto-negotiation: Yes
   Advertised link modes:  10baseT/Half 10baseT/Full
                           100baseT/Half 100baseT/Full
                           1000baseT/Full
   Advertised auto-negotiation: Yes
   Speed: 1000Mb/s
   Duplex: Full
   Port: MII
   PHYAD: 0
   Transceiver: external
   Auto-negotiation: on
   Link detected: yes
sheevaplug-debian:~#

Network speed test via netcat:

Quote
sheevaplug-debian:~# netcat 10.10.10.117  12345 -c "dd if=/dev/zero count=2000000"
2000000+0 records in
2000000+0 records out
1024000000 bytes (1.0 GB) copied, 87.4634 s, 11.7 MB/s
sheevaplug-debian:~# netcat 10.10.10.117  12345 -c "dd if=/dev/zero count=2000000"
2000000+0 records in
2000000+0 records out
1024000000 bytes (1.0 GB) copied, 88.6938 s, 11.5 MB/s
sheevaplug-debian:~#

100Mbit speed over the Gigabit interface?

Neighbor PC to Laptop within the same switch are doing 40+MB/s transfer...

Any ideas?
Logged

bbhl
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #2 on: November 14, 2010, 04:17:58 PM »

The long story short... I was not able to manage eth0 to operate faster than 100Mbit over 1Gbit link (special restrictions in Kernel? :-D ). I decided to play with eth1... Well, it acts with speed over the 100Mbit. The speed reported by netcat was about 20MB/s and Samba speed is 10MB/s both ways.

Looking at

Quote
sheevaplug-debian:~# hdparm -tT /dev/sda1

/dev/sda1:
 Timing cached reads:   516 MB in  2.00 seconds = 257.71 MB/sec
 Timing buffered disk reads:   80 MB in  3.03 seconds =  26.44 MB/sec
sheevaplug-debian:~#

I think that 20MB is a quite good result... :-)
Logged

UnaClocker
Full Member
***

Karma: 0
Posts: 131



View Profile WWW
« Reply #3 on: November 14, 2010, 05:34:52 PM »

Can you use NFS or AFP rather than SMB?
Logged

SheevaPlug - 8gb class 4 SDHC primary drive, 4tb 3.5" media drive, Debian Wheezy, nginx, Samba, Shorewall

Pages: [1]
Print
Jump to: