Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow Samba and ftp on local network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ChrisCol
n00b
n00b


Joined: 15 Nov 2003
Posts: 49

PostPosted: Sun Jan 04, 2004 12:11 am    Post subject: Slow Samba and ftp on local network Reply with quote

Hi,

I am transfering files between 2 gentoo boxes on my network and the transfer speeds I have are:

smb 2.0MB/s
vsftp 5.5 MB/s

Aren't these alittle slow? At the very least samba should be closer to vsftp shouldn't it??

Heres all the info that I can think of...

One of the boxes is a P233 with 256MB RAM and the other is an XP2000+ with 512MB Ram.
They are both running the latest 'emergeable' version of samba and vsftp (via xinetd) (all without ACCEPT_KEYWORDS="~x86"). There are no erros in the logs of either machine.
CPU usage was around 60-70% on the 233 machine when transfering with samba (smbd) and areounf 90% when using vsftp. Normal loadd averages are around <0.1 (usually <0.05) but ris considerably during transfer.
DMA is on for all drives. and hdparm -Tt gives:
On the XP2000:
Code:
bash-2.05b# hdparm -Tt /dev/hda

/dev/hda:
 Timing buffer-cache reads:   1260 MB in  2.00 seconds = 628.84 MB/sec
 Timing buffered disk reads:  170 MB in  3.03 seconds =  56.15 MB/sec


And on the P233
Code:
gateway root # hdparm -Tt /dev/hdd

/dev/hdd:
 Timing buffer-cache reads:   168 MB in  2.04 seconds =  82.20 MB/sec
 Timing buffered disk reads:   48 MB in  3.04 seconds =  15.77 MB/sec


The file system is ReiserFs on the P233 and ext3 on the XP2000+.
I am almost sure the problem is on the P233 due to it's high CPU usage and the fact the XP2000 has worked fine in the past...
Both systems are using the 2.6.0 gentoo-dev-sources kernel.
Finaly the network is a 100M ethernet one, and the cards have been tested and are fine.

I guess the options are Kernel configuration, network hardware or that the 233 just isn't up to fast transfer speeds. And probably more I'm not aware of...

If anyone has any advice then it would be much appreciated!

[Edit: to correct the swapped disk speeds...]


Last edited by ChrisCol on Sun Jan 04, 2004 1:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Sun Jan 04, 2004 12:36 pm    Post subject: Reply with quote

If you want to test the speed achievable regarless of the disks, to retrieve a file, use wget ftp://blabla/blopblop -O /dev/null so that files are directly sent to trash. By the way, which computer has the servers ? the P233 ?
Haven't you swapped your disk read speeds ? Why is the XP200+ so slow and the P233 so fast ?
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
ChrisCol
n00b
n00b


Joined: 15 Nov 2003
Posts: 49

PostPosted: Sun Jan 04, 2004 1:20 pm    Post subject: Reply with quote

Hi,

Yep, your right the server is the 233 and I have swapped the disk speeds. (it was late at night after many hours puzzling...)

Using wget I have a transfer speed of 4.39 MB/s. So I guess the problem lies on the 233 and not on the XP2000. I have no idea what though.
Back to top
View user's profile Send private message
Angrybob
Guru
Guru


Joined: 19 Apr 2003
Posts: 575

PostPosted: Sun Jan 04, 2004 1:41 pm    Post subject: Reply with quote

the max transfer speed of a 100Mbps network is 10MB/sec, maybe one of you're computers is in half duplex mode? that would explain the 5MB/sec ftp speed... I've found that smb can be slower than ftp so that shouldnt be a surprise.

so i guess you should check dmesg for anything about half duplex mode
Back to top
View user's profile Send private message
ChrisCol
n00b
n00b


Joined: 15 Nov 2003
Posts: 49

PostPosted: Sun Jan 04, 2004 1:48 pm    Post subject: Reply with quote

Both appear to be in full duplex mode if I am undestanding the output correctly:

P233: (eth0 is the external if, eth1 the local network)
Code:
gateway root # dmesg | grep ^eth
eth0: RealTek RTL-8029 found at 0x6600, IRQ 10, 00:C0:DF:A5:11:46.
eth1: NatSemi DP8381[56] at 0xd090f000, 00:09:5b:05:e2:78, IRQ 11.
eth1: link up.
eth1: Setting full-duplex based on negotiated link capability.


XP2000+
Code:
bash-2.05b$ dmesg | grep ^eth
eth0: RealTek RTL8139 at 0xe181ff00, 00:90:47:03:ad:16, IRQ 5
eth0:  Identified 8139 chip type 'RTL-8100B/8139D'
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1


Thanks for the idea,
Back to top
View user's profile Send private message
ChrisCol
n00b
n00b


Joined: 15 Nov 2003
Posts: 49

PostPosted: Sun Jan 04, 2004 2:06 pm    Post subject: Reply with quote

Aside from the duplex possibility, is it normal for the CPU usage to be so high when serving files?
Back to top
View user's profile Send private message
scout
Veteran
Veteran


Joined: 08 Mar 2003
Posts: 1991
Location: France, Paris en Semaine / Metz le W-E

PostPosted: Sun Jan 04, 2004 2:20 pm    Post subject: Reply with quote

With pure-ftpd I serve files at 10Mo/sec that is to say the maximum my ethernet card can do on a 100Mbps networks, and on a P4 2.0GHz, this eats 3% of CPU Usage (kernel 2.6).
_________________
http://petition.eurolinux.org/ - Petition against ePatents
L'essence de la finesse
Back to top
View user's profile Send private message
g_os
n00b
n00b


Joined: 25 Nov 2003
Posts: 71
Location: France

PostPosted: Sun Jan 04, 2004 8:56 pm    Post subject: Reply with quote

scout wrote:
With pure-ftpd I serve files at 10Mo/sec that is to say the maximum my ethernet card can do on a 100Mbps networks, and on a P4 2.0GHz, this eats 3% of CPU Usage (kernel 2.6).


Hi, using apache2 a server on a PII-233 256Mo ram. DD 7200 (hdma on) to retrieve a 91MB file on a full duplex ethernet 100Mbit/s network. I achieve 8 MB/s [CPU on server -> 60/80% used]. On a smaller file 11MB limitation occurs at 10MB/s

G_os
_________________
I can't remember where I take this avatar, thanks ;p)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum