Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TCP perfomance ( samba in particular )
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
asl.pavel
n00b
n00b


Joined: 27 May 2007
Posts: 11

PostPosted: Tue Nov 25, 2008 5:01 pm    Post subject: TCP perfomance ( samba in particular ) Reply with quote

I got gigabit ethernet cards on both sides ( in my router and my pc ). But when i copy file via samba from router to pc i got speed about 8-9 MB/s. Here what i have got:
settings of ethernet card
Code:

(SSH:router) [~] $ sudo mii-tool
eth0: negotiated 1000baseT-FD flow-control, link ok

(SSH:router) [/mnt/smb/127.0.0.1/public/video] $ sudo ip link show dev eth0
2: eth0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:e0:4d:2c:38:74 brd ff:ff:ff:ff:ff:ff


samba server settings
Code:

[global]
        dos charset = cp866
        unix charset = utf8
        display charset = utf8
        workgroup = DGAP
        netbios name = SHADOW
        server string = Shadow ( user: %U )
        security = SHARE
        map to guest = Bad User
        username map = /etc/samba/smbusers
        log file = /var/log/samba.log
        name resolve order = lmhosts hosts wins bcast
        unix extensions = No
        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
        load printers = No
        printcap name = /dev/null
        disable spoolss = Yes
        local master = No
        hide unreadable = Yes

[public]
        comment = public data
        path = /mnt/data/samba/public
        force user = nobody
        guest only = Yes

[media]
        comment = data [private]
        path = /mnt/data/media
        valid users = media
        force user = media
        force group = users
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No

[services]
        comment = services [private]
        path = /mnt/data/services
        valid users = media
        force user = media
        force group = users
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No



Test of performance over la
Code:

(SSH:router) [/mnt/smb/127.0.0.1/public/video] $ dd if=Waking\ Life\ \[Пробуждение\ жизни\]\ \(2001\).avi > /dev/null
1187076+0 records in
1187076+0 records out
607782912 bytes (608 MB) copied, 8.84257 s, 68.7 MB/s

Plz help resolve this issue ? Maybe change mtu or smth?
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Tue Nov 25, 2008 5:39 pm    Post subject: Reply with quote

8-9 MB/s are quite OK for a default config.

You could try tuning Samba a bit, e.g. the network sockets.
Try addig following to [global] and see if it helps:
Code:
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
asl.pavel
n00b
n00b


Joined: 27 May 2007
Posts: 11

PostPosted: Tue Nov 25, 2008 6:04 pm    Post subject: Reply with quote

no difference at all :( As i write before when using local address 127.0.0.1 i got 60MB/s ( it seems hard disk and samba limit ) , 1GB ethernet should provide speed up to 120MB/s but i have only 10 i would like to have at least 40-50 ... so where is bottle neck? =(
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