Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Slow samba file transfers

13 views
Skip to first unread message

Jelly

unread,
Dec 26, 2001, 7:15:49 PM12/26/01
to
Hi,

I'm getting slow transfer rates between my linux machine running samba
and my windows xp machine. My windows machine has a D-Link 528CT
10 Mbps NIC, and the linux machine has a Netgear FA311 10/100Mbps
NIC. Both are hooked up to a Linksys autosensing 10/100Mbps switch.

Currently when I upload a file from my windows machine to the linux
machine my transfer rate is ~30 KB/s. But when I'm transferring
files from my linux to my windows machine it is very fast (928 KB/s).


1) Anyone know what the 'RX packets' means? I could not find any info
in the man pages for ifconfig, and netstat.

eth0 Link encap:Ethernet HWaddr 00:02:E3:05:2C:9F
inet addr:192.168.0.4 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2946 errors:818 dropped:0 overruns:0 frame:2080
TX packets:2724 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3559782 (3.3 Mb) TX bytes:264764 (258.5 Kb)
Interrupt:11 Base address:0x3000


2) Do I need to set both NICs to full duplex? I have tried setting
both my D-Link and Netgear NIC to half duplex but there was a decrease
in transfer rates when uploading from the windows machine to linux
(~17 KB/s).

3) Sometimes my windows machine seems to disconnect from the samba
server for no reason. For example if I am playing an MP3 from the
samba server it would freeze and then I would try and remap the
network drive again. I would then get a message saying
"The network path \\server1\public could not be found"
My main problem now is that after my windows machine got disconnected
at 18:23 I cannot connect to the samba shared directory even after
rebooting both of the machines. I would get the same message as
above.

In /var/logs/samba/user.log I see:

[2001/12/26 00:25:28, 0] lib/util_sock.c:read_socket_data(478)
read_socket_data: recv failure for 4. Error = Connection reset by
peer
[2001/12/26 00:28:40, 0] lib/util_sock.c:read_socket_data(478)
read_socket_data: recv failure for 3376. Error = Connection reset by
peer
[2001/12/26 11:47:30, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798)
call_nt_transact_ioctl: Currently not implemented.
[2001/12/26 12:42:36, 0] lib/util_sock.c:read_socket_data(478)
read_socket_data: recv failure for 4. Error = Connection reset by
peer
[2001/12/26 13:38:06, 0] lib/util_sock.c:read_socket_data(478)
read_socket_data: recv failure for 4. Error = Connection reset by
peer
[2001/12/26 13:59:02, 0] lib/util_sock.c:read_socket_data(478)
read_socket_data: recv failure for 4. Error = Connection reset by
peer
[2001/12/26 18:23:14, 0] smbd/nttrans.c:call_nt_transact_ioctl(1798)
call_nt_transact_ioctl: Currently not implemented.

Anyone have any clues as to what may be wrong?

Linux machine
Redhat 7.2
PnP OS is disabled in the BIOS
Abit BH6, Celeron 300A
320 MB RAM
Netgear FA311 10/100Mbps NIC (supports full duplex)

Windows machine
Windows XP Pro
Abit KG7, Athlon 1.33
512 MB RAM
D-Link DE-528CT/R 10 Mbps NIC (supports full duplex)

Linksys 10/100 Mbps autosensing switch.

Thanks for your time.


Jelly

Florian Perves

unread,
Dec 28, 2001, 3:37:59 AM12/28/01
to

"Jelly" <NhO!SPAM-j...@email.com> a écrit dans le message de news:
g2qk2uo8974b6vapu...@4ax.com...

> Hi,
>
> I'm getting slow transfer rates between my linux machine running samba
> and my windows xp machine. My windows machine has a D-Link 528CT
> 10 Mbps NIC, and the linux machine has a Netgear FA311 10/100Mbps
> NIC. Both are hooked up to a Linksys autosensing 10/100Mbps switch.
>
> Currently when I upload a file from my windows machine to the linux
> machine my transfer rate is ~30 KB/s. But when I'm transferring
> files from my linux to my windows machine it is very fast (928 KB/s).
>
>
> 1) Anyone know what the 'RX packets' means? I could not find any info
> in the man pages for ifconfig, and netstat.
>

RX means 'received' and TX 'transmitted'.


> eth0 Link encap:Ethernet HWaddr 00:02:E3:05:2C:9F
> inet addr:192.168.0.4 Bcast:192.168.0.255
> Mask:255.255.255.0
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:2946 errors:818 dropped:0 overruns:0 frame:2080
> TX packets:2724 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:100
> RX bytes:3559782 (3.3 Mb) TX bytes:264764 (258.5 Kb)
> Interrupt:11 Base address:0x3000
>

you have many error packets. You should try other duplexing / speed of your
NICs.
you may have a look at
http://www.dd.iij4u.or.jp/~okuyamak/Documents/tuning.english.html to improve
your samba server.

Jelly

unread,
Jan 1, 2002, 3:06:24 PM1/1/02
to

Thanks for the tips. I've replaced my NIC on my windows machine
with a 10/100Mbps, and the performance has increased drastically.
I get a max of 4.8 MB/s when sending stuff from my windows client to
my linux samba server. I set both NICs to half-duplex and it seems to
have helped the most. I'll have to do some more tuning.

Jelly

Jens Lauert

unread,
Jan 2, 2002, 8:08:52 AM1/2/02
to

It seems that you have some hardware problems. Today packet errors
within a LAN should not occur. Compared to the rest of your hardware
you should buy a second 100 mbit NIC (costs about 20$) and check your
cables.

If you think that 928 kb/s is fast you'll be surprised.

Meteor

Jelly

unread,
Jan 14, 2002, 10:13:14 PM1/14/02
to

Thanks for the tip. I got another 100Mbps NIC and its much faster.
The reason why I was getting slow upload speeds was due to bad
cabling. When I switched the cabling my transfer rates shot up, I now
get ~7 MB/s now. Its still not close to the theoretical ~10MB/s but
just need to do some tuning to improve the transfer speeds.

Jelly

0 new messages