Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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).
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?
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:
# 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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.