LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
 
Search this Thread
Old 04-22-2009, 01:57 AM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Thumbs up increasing data transfer speed of ethernet card


Hi All,

Can anybody tell me how to increase the data transfer speed of ethernet card. The card which i am having is R6040 and i am getting the data transfer speed as 5Mbps and i want to increase it to 100Mbps.

Please guide me for that,

Thanks and Regards,
Ravi Chobey
 
Old 04-22-2009, 02:49 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Post the results of ethtool eth0 (or the name of the card, eth1, etc), depending on system you may need to be root.


How are you checking the speed?

In order to run 100Mbps you have to have 100Mbps from end to end. If you have a hub it may be a 10Mbps hub or even if it is a 100Mbps hub(rare) there may be enough traffic on it that you are getting collisions. If you have a switch it MAY only be 10Mbps (fairly rare). You may have a bad Ethernet cable(or more than one).
 
Old 04-22-2009, 03:27 AM   #3
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thumbs up

I am not having a hub or switch,it is direct one to one connection between my host system and my target system.I am having a good ethernet cable also.

What i am doing: I am uploading some files to my target device from host,it
is quite slow.The "ethtool eth0" command outpute is:
Code:
[root@localhost root]# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        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: 100Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
[root@localhost root]#
The host NIC is "RTL8139" and target NIC is "R6040" from RDC.I am using samba version-3.2.24.

Thanks for your support.

Regards,
Ravi Chobey
 
Old 04-22-2009, 05:48 AM   #4
shpenat
Member
 
Registered: Dec 2008
Distribution: LFS
Posts: 95

Rep: Reputation: 21
I think the problem is not in hardware, but in samba. I got similar problem, where over fast network samba is running very slow (But still faster than when using windows Can you measure the speed directly, without using samba?
 
Old 04-22-2009, 01:55 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Just to be clear 100Mbps works out to roughly 9.5MB per second (in reality, on a good day).
 
Old 04-23-2009, 04:47 AM   #6
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Angry

hi all,

After reading some threads from google,I came to know that there are two parameters in samba configuration file that are
(socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192).The parameters are SO_RCVBUF and SO_SNDBUF.I have tried to change the 8K value(8192) to 64k value for the two parameters,But it is not changing. I have checked it with "testparm" command. There two parameters are playing important role in data transfer from host to target.I have referred this link:

http://www.mail-archive.com/samba@li.../msg78154.html

The changes in smb.conf is mentioned below:

Code:
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
 socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
the output after passing "testparm" is:

Code:
[root@localhost root]# testparm
Load smb config files from /usr/local/samba/lib/smb.conf
Unknown parameter encountered: "pam password change"
Ignoring unknown parameter "pam password change"
Unknown parameter encountered: "obey pam restrictions"
Ignoring unknown parameter "obey pam restrictions"
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
Processing section "[data]"
Loaded services file OK.
Press enter to see a dump of your service definitions
 
# Global parameters
[global]
        workgroup = MYGROUP
        netbios name =
        netbios aliases =
        server string = Samba Server
        interfaces =
        bind interfaces only = No
        security = USER
        encrypt passwords = Yes
        update encrypted = No
        allow trusted domains = Yes
        hosts equiv =
        min passwd length = 5
        map to guest = Never
        null passwords = No
        password server =
        smb passwd file = /etc/samba/smbpasswd
        root directory = /
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al
l*authentication*tokens*updated*successfully*
        passwd chat debug = No
        username map =
        password level = 0
        username level = 0
        unix password sync = Yes
        restrict anonymous = No
        use rhosts = No
        log level = 2
        syslog = 1
        syslog only = No
        log file = /var/log/samba/%m.log
        max log size = 0
        timestamp logs = Yes
        protocol = NT1
        read bmpx = No
        read raw = Yes
        write raw = Yes
        nt smb support = Yes
        nt pipe support = Yes
        nt acl support = Yes
        announce version = 4.2
        announce as = NT
        max mux = 50
        max xmit = 65535
        name resolve order = lmhosts host wins bcast
        max packet = 65535
        max ttl = 259200
        max wins ttl = 518400
        min wins ttl = 21600
        time server = No
        change notify timeout = 60
        deadtime = 0
        getwd cache = Yes
        keepalive = 300
        lpq cache time = 10
        max disk size = 0
        max open files = 10000
        read prediction = No
        read size = 16384
        shared mem size = 1048576
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        stat cache size = 50
        load printers = Yes
        printcap name = /etc/printcap
        printer driver file = /usr/local/samba/lib/printers.def
        strip dot = No
        character set =
        mangled stack = 50
        coding system =
        client code page = 850
        stat cache = Yes
        domain groups =
        domain admin group =
        domain guest group =
        domain admin users =
        domain guest users =
        machine password timeout = 604800
        add user script =
        delete user script =
        logon script =
        logon path = \\%N\%U\profile
        logon drive =
        logon home = \\%N\%U
        domain logons = No
        os level = 0
        lm announce = Auto
        lm interval = 60
        preferred master = No
        local master = Yes
        domain master = No
        browse list = Yes
        dns proxy = No
        wins proxy = No
        wins server =
        wins support = No
        kernel oplocks = Yes
        ole locking compatibility = Yes
        oplock break wait time = 10
        smbrun = /usr/local/samba/bin/smbrun
        config file =
        preload =
        lock dir = /usr/local/samba/var/locks
        default service =
        message command =
        dfree command =
        valid chars =
        remote announce =
        remote browse sync =
        socket address = 0.0.0.0
        homedir map =
        time offset = 0
        unix realname = No
        NIS homedir = No
        panic action =
        comment =
        path =
        alternate permissions = No
        revalidate = No
        username =
        guest account = nobody
        invalid users =
        valid users =
        admin users =
        read list =
        write list =
        force user =
        force group =
        read only = Yes
        create mask = 0744
        force create mode = 00
        security mask = 037777777777
        force security mode = 037777777777
        directory mask = 0755
        force directory mode = 00
        directory security mask = 037777777777
        force directory security mode = 037777777777
        guest only = No
        guest ok = No
        only user = No
        hosts allow =
        hosts deny =
        status = Yes
        max connections = 0
        min print space = 0
        strict sync = No
        sync always = No
        print ok = No
        postscript = No
        printing = bsd
        print command = lpr -r -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j
        lppause command =
        lpresume command =
        queuepause command =
        queueresume command =
        printer name =
        printer driver = NULL
        printer driver location =
        default case = lower
        case sensitive = No
        preserve case = Yes
        short preserve case = Yes
        mangle case = No
        mangling char = ~
        hide dot files = Yes
        delete veto files = No
        veto files =
        hide files =
        veto oplock files =
        map system = No
        map hidden = No
        map archive = Yes
        mangled names = Yes
        mangled map =
        browseable = Yes
        blocking locks = Yes
        fake oplocks = No
        locking = Yes
        mangle locks = Yes
        oplocks = Yes
        level2 oplocks = No
        oplock contention limit = 2
        strict locking = No
        share modes = Yes
        copy =
        include =
        exec =
        postexec =
        root preexec =
        root postexec =
        available = Yes
        volume =
        fstype = NTFS
        set directory = No
        wide links = Yes
        follow symlinks = Yes
        dont descend =
        magic script =
        magic output =
        delete readonly = No
        dos filetimes = No
        dos filetime resolution = No
        fake directory create times = No
 
[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No
 
[printers]
        comment = All Printers
        path = /var/spool/samba
        print ok = Yes
        browseable = No
 
[public]
        path = /
        read only = No
        guest only = Yes
        guest ok = Yes
 
[data]
        comment = Mary's and Fred's stuff
        path = /
        read only = No
        create mask = 0765
[root@localhost root]#
I am measuring the data speed by: data (in MB) divided my time taken to move that data from host to target.

Please help me in sorting this issue.

Regards,
Ravi Chobey
 
Old 04-23-2009, 08:05 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,739
Blog Entries: 10

Rep: Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604
Hi,

Your 'ethtool eth0' output shows the 'Speed: 100Mb/s' for the device on one machine. So you are linked at that speed. Your network speed will be determined by the slowest device on the LAN.

As for the SAMBA measured speed of '5MB' by your measuring technique being slow is not a 'fair' test. The speed is typical for SAMBA. What do you show for a data transfer for something other than SAMBA?
 
Old 04-23-2009, 05:16 PM   #8
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
I think there is also some confusion about the difference between Mbps and MB/s. The latter is the former divided by 8. I assume that OP did not mean 5Mbps but 5MB/s. 5 megabit per second would be extremely slow indeed.

Without the right type of cables, you won't get any higher than 12.5MB/s anyway, no matter what the rest of your hardware looks like.
 
Old 04-23-2009, 08:21 PM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,739
Blog Entries: 10

Rep: Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604
Hi,

I agree 5Mb/s would be slow. I think there's a typo. I assumed the post was intended to be 5MB/s as the 5Mb/s would be molasses.

I would like to know what the OP got for something other than SAMBA for a network transfer.
 
Old 04-24-2009, 12:43 AM   #10
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Dear Gary,

I tested for ftp,the transfer rate is 5000Kbytespersec.Now ,how can i test samba speed?

With regards,
Ravi
 
Old 04-24-2009, 07:03 AM   #11
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,739
Blog Entries: 10

Rep: Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604Reputation: 1604
Hi,

I'm curious as to what 'ifconfig -a' and 'ethtool -S eth0' as root after both transfer tests for both machines in question. Run the 'ifconfig -a' along with 'ethtool -S eth0' before and after each transfer for ftp, SAMBA on each machine. This will show possible errors.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a USB 2.0 Memory Card and getting 3MB transfer speed fobbio Linux - Hardware 2 10-04-2007 09:03 AM
SLES 9 Ethernet Card speed dstjames Linux - Networking 3 11-04-2005 01:02 PM
External hard drive data transfer speed buldir SUSE / openSUSE 1 04-11-2005 09:25 AM
Ethernet card speed Pedroski Linux - Hardware 3 12-12-2004 03:12 PM
eth card data transfer rates h/w Programming 3 10-11-2003 10:24 AM


All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration