LinuxQuestions.org
Visit Jeremy's Blog.
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 09-17-2004, 07:53 PM   #1
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Rep: Reputation: 0
Transfer rate extremely slow...


WARNING:
And i searched google for a solution and didn't find one... Sorry if this has been covered a million times, at least i made an attempt.....


[root@localhost badbread]# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] System Controller (rev 25)
00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] AGP Bridge (rev 01)
00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
00:04.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 10)
00:04.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:04.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 10)
00:04.4 SMBus: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
00:0e.0 Communication controller: Rockwell International HSF 56k Data/Fax/Voice Modem (rev 01)
00:0f.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)
00:10.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
00:10.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
01:05.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 420] (rev a3)

Kernel:
[root@localhost badbread]# uname -r
2.6.8-1.521

Distro: Fedora2
GUI: Mostly KDE

Linksys wireless router is between the 2 pc's. Both PC's are plugged directly in the back by wire. (SO NO WIRELESS CONNECTION BETWEEN THE 2)


Ok, I have my linux box and my xp box. I want to listen to MP'3 from my XP box on my linux box. I mounted the SAMBA share like this:

mount -t smbfs //155.1.1.101/mp3 /mnt

155.1.1.101 = XP box

I goto file manager and browse the connection and see everything just fine. When I transfer a file from XP to Linux the transfer rate average's around 25kb/s(according to DU meter.) The XP machine is set to 100/Full duplex. My XP to XB0X gets around 7mb/s, whats going on????

Why is the connection soooo slow? Is it the 3com card that needs so updated drivers or something?

[root@localhost badbread]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:68:22:8B
inet addr:155.1.1.102 Bcast:155.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe68:228b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60918 errors:2336 dropped:0 overruns:0 frame:2337
TX packets:49906 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43659224 (41.6 Mb) TX bytes:4371350 (4.1 Mb)
Interrupt:10 Base address:0x1080

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7587 errors:0 dropped:0 overruns:0 frame:0
TX packets:7587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4021617 (3.8 Mb) TX bytes:4021617 (3.8 Mb)


Hope that helps.

Thanks,
Jay
 
Old 09-17-2004, 08:27 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
What does the command: 'mii-tool eth0' say? Are you sure your cable is ok? What happens if you try to force the connection to 10Mb/HD (that is more redundant to cable problems)? Is there a problem even when you try to transfer files with ftp, sftp or http?
 
Old 09-18-2004, 02:57 AM   #3
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Original Poster
Rep: Reputation: 0
[root@localhost badbread]# mii-tool eth0
eth0: 100 Mbit, full duplex, link ok

The cable is fine to my knowledge, I've been d/loading http at over 500kb/s all day
 
Old 09-18-2004, 11:47 AM   #4
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
You may have a log file log.smbmount (in /var/log). At least that's what the manpage says. So maybe there is a clue where those RX errors on eth0 are coming from.

If you have the samba daemons running (smbd and nmbd) there are further log files in /var/log/samba.
 
Old 09-18-2004, 03:28 PM   #5
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Original Poster
Rep: Reputation: 0
smbmount.log

[2004/09/16 23:08:34, 0] client/smbmount.c:send_fs_socket(406)
mount.smbfs: entering daemon mode for service \\155.1.1.101\mp3, pid=31640
[2004/09/16 23:09:47, 0] client/smbmount.c:send_fs_socket(406)
mount.smbfs: entering daemon mode for service \\155.1.1.101\mp3, pid=31656
[2004/09/17 19:21:48, 0] client/smbmount.c:send_fs_socket(406)
mount.smbfs: entering daemon mode for service \\155.1.1.101\mp3, pid=446
 
Old 09-19-2004, 01:34 PM   #6
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Original Poster
Rep: Reputation: 0
what else do you'll need to help me out here?

jay
 
Old 09-19-2004, 11:56 PM   #7
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
I have a 3Com NIC. I optimized samba for high throughput and accessing speed. Sometimes it peaks the maximum throughput that my network can go. Post your smb.conf and I or some else can suggest a few things to add or to change. Probably you just need to add a few lines or uncomment a few lines.
 
Old 09-20-2004, 06:46 PM   #8
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Original Poster
Rep: Reputation: 0
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = 334

# server string is the equivalent of the NT Description field
server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = bsd

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
# Use password server option only with security = server
; password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
; password level = 8
; username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
# the encrypted SMB passwords. They allow the Unix password
# to be kept in sync with the SMB password.
; unix password sync = Yes
; passwd program = /usr/bin/passwd %u
; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# 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=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
; interfaces = 192.168.12.2/24 192.168.13.2/24

# Configure remote browse list synchronisation here
# request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
; remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
; remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
; local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
; os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
; domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
; preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
; domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
; logon script = %m.bat
# run a specific logon batch file per username
; logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
# %L substitutes for this servers netbios name, %U is username
# You must uncomment the [Profiles] share below
; logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
; wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
; wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
; preserve case = no
; short preserve case = no
# Default case is normally upper case for all DOS files
; default case = lower
# Be very careful with case sensitivity - it can break things!
; case sensitive = no

#============================ Share Definitions ==============================
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[homes]
comment = Home Directories
browseable = no
writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /home/netlogon
; guest ok = yes
; writable = no
; share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes

# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
; comment = Public Stuff
; path = /home/samba
; public = yes
; read only = yes
; write list = @staff

# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %u option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765


[ROOT_TEST]
path = /root/test
comment = /root/test
public = yes
guest ok = yes
writable = no
wide links = no
 
Old 09-21-2004, 01:02 AM   #9
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
That config should work but having
Quote:
[ROOT_TEST]
path = /root/test
comment = /root/test
public = yes
guest ok = yes
writable = no
wide links = no
Is very, very, very risky. I suggest disabling it or do not even have it.

All I can say is to optimize the Linux's network connection and check all network cables. If you kinked and stretched the network cable, it will not work at its effective speed throughput.
 
Old 09-23-2004, 08:17 PM   #10
badbread
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora2
Posts: 8

Original Poster
Rep: Reputation: 0
The network cables are fine. My linux box will d/load off the internet at over 500kb/s. There must be something slowing it down between the XP machine and the Linux box
 
Old 09-23-2004, 09:40 PM   #11
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Have you tried all combinations of to/from transfers between Linux, windows and xbox? It is also possible your router is faulty on one or more ports. You could try a direct connection with a crossover cable (an ordinary ethernet cable will not work).
 
Old 09-25-2004, 09:42 PM   #12
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Tesing / Unstable
Posts: 166
Blog Entries: 1

Rep: Reputation: 30
What does ifconfig show for receive errors when you play the mp3 stream? Is a firewall intalled on the Linux box?
 
Old 09-25-2004, 10:23 PM   #13
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Tesing / Unstable
Posts: 166
Blog Entries: 1

Rep: Reputation: 30
Sorry, I missed it above. Lots of RX errors, and I've seen crimped cable cause those. On the software side you can slap a protocol monitor on a typical session and see what's going on. I just started using 'ethereal' and it is very comprehensive. There are free Windows and Linux versions available here:

www.ethereal.com
 
Old 03-23-2005, 04:27 PM   #14
grens
LQ Newbie
 
Registered: Mar 2005
Posts: 3

Rep: Reputation: 0
Communication problem between XP and RedHat Linux V4

Error when attempt to mount share folder from Linux RedHat Entreprise V4.0 to Windows XP sp1.



mount -t smbfs -o username=grens,workgroup=ecs //slecs3000/linux /mnt4
Password: XXXXXXX

df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
68378168 6621788 58282972 11% /
/dev/cciss/c0d0p1 102182 6472 95710 7% /boot/efi
none 1022304 0 1022304 0% /dev/shm
//sl-ecs-files-01/grens$
155197440 135020544 20176896 87% /mnt
//sl-ecs-files-01/slecs
155197440 135020544 20176896 87% /mnt1
df: `/mnt4': Permission denied

cd /
ls -l

drwxr-xr-x 1 root root 16384 Mar 17 15:57 mnt1
drwxr-xr-x 2 root root 4096 Mar 16 16:02 mnt2
drwxr-xr-x 2 root root 4096 Mar 16 16:23 mnt3
?--------- ? ? ? ? ? mnt4
drwxr-xr-x 2 root root 4096 Aug 12 2004 opt



I did the same command to windows 2000 Server and it work as you see /mnt and /mnt1

# smbd -V
Version 3.0.10-1.4E

I can do the same command on Linux RedHat 9 with no error !!!! Why ?

pwd
/var/log/samba

[root@serv21 samba]# tail -f smbmount.log
[2005/03/23 16:10:24, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/gencache.tdb): tdb_lock failed on list 119 ltype=1 (Bad file descriptor)
[2005/03/23 16:10:24, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/gencache.tdb): tdb_lock failed on list 76 ltype=0 (Bad file descriptor)
[2005/03/23 16:10:24, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/gencache.tdb): tdb_lock failed on list 76 ltype=1 (Bad file descriptor)
[2005/03/23 16:10:24, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/gencache.tdb): tdb_lock failed on list 76 ltype=1 (Bad file descriptor)
[2005/03/23 16:13:22, 0] client/smbmount.c:send_fs_socket(406)
mount.smbfs: entering daemon mode for service \\slecs3000\linux, pid=17140


Any suggestions ?

Sylvain
 
Old 03-23-2005, 08:30 PM   #15
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You have a lot of recieving errors. I suggest replace the cable or turn off the firewall for both systems. On my computer that runs Samba, it gets near 10 megabytes per second. Sometimes it jumps to 16 megabytes per second even though it is on a 100 megabit network which only handles about 12 megabytes per second. The computer uses XFS for the filesystem on a 2.4.19.

If you do replace the cable, do not stretch, kink, unkink, unbend and bend it too much because it changes the characteristics of the copper wire to transfer data in the megahertz range. Make sure the cable is not longer than 100 meters from the switch/hub to the computer. If it is longer than 100 meters, you may have to use fiber optic.

Listening an mp3 or ogg file from a smb share will only send a few bytes because those audio formats are serial transmission. Depending what bitrate the audio file is. It can vary from 4 kilobytes to 40 kilobytes per second. If you transfer a big file like an iso image, you will get a better results.

Usually other components in the system conflicts with certain components. In the past the Soundblaster LIVE! screws up DMA transmission, so the data that is writen to the hard drive is corrupted.
 
  


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
slow file transfer rate ricmaninang Linux - Networking 12 06-10-2009 02:33 AM
Transfer Rate Between PC's is slow. Please help Phantisy Linux - Networking 3 08-27-2005 03:46 PM
proftpd transfer speeds are extremely slow... wpg9210 Linux - Software 1 12-03-2004 08:23 PM
VERY slow transfer rate.. dkc_ace *BSD 2 03-24-2004 10:11 PM
Slow transfer rate into Linux server danedwards11 Linux - Networking 6 09-26-2003 09:45 PM


All times are GMT -5. The time now is 12:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration