LinuxForum.Fans
Тема

Samba низкая скорость копирования

Автор: A0D 1 сообщений 2924 просмотров
#135727

При копировании машиной под виндой скорость: 8-10 мб/сек., с линем(archlinux) ситуация очень печальная: 1-3 мб/сек.
Если копировать по sftp - то все ок.

text

[a0d@SERVER ~]$> scp /mnt/films/films/21.avi a0d:~
21.avi                                                                                                                      16%  118MB  10.1MB/s   00:57 ETA

Есть у кого нибудь мысли по этому поводу? :)
Инфа для размышления:

ethtool:

text

Settings for eth0:
    Supported ports: [ MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: external
    Auto-negotiation: on
    Supports Wake-on: g
    Wake-on: d
    Link detected: yes

fstab:

text

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0 #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0 #/dev/fd0 /media/fl auto user,noauto 0 0

UUID=2dc46a96-ea9e-41a5-ae6a-d9461831a7fb /home ext4 defaults 0 1 UUID=f27088c5-699e-4264-bcb5-25c619d61de5 /boot ext2 defaults 0 1 UUID=9e90daae-f7ed-4ed5-a1b5-343b11b6d3ed / ext4 defaults 0 1 UUID=4e306965-1a23-44dc-b3b6-02597bf9d7e4 swap swap defaults 0 0

#SMB //server/net /mnt/LAN/server/net/ cifs auto,username=a0d,password=1234,workgroup=HOME 0 0 //server/ДОКУМЕНТЫ /mnt/LAN/server/docs/ cifs auto,uid=a0d,gid=a0d,setuids,username=a0d,password=1234,workgroup=HOME 0 0 //server/ФИЛЬМЫ /mnt/LAN/server/films/ cifs auto,username=a0d,password=1234,workgroup=HOME 0 0 //server/TEMP /mnt/LAN/server/temp/ cifs auto,uid=a0d,gid=a0d,setuids,username=a0d,password=1234,workgroup=HOME 0 0 //server/PACMAN /var/cache/pacman/pkg/ cifs auto,uid=a0d,gid=a0d,setuids,username=a0d,password=1234,workgroup=HOME 0 0

ethtool на удаленной машине:

text

Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Advertised pause frame use: No
    Advertised auto-negotiation: Yes
    Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                         100baseT/Half 100baseT/Full 
    Link partner advertised pause frame use: No
    Link partner advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 1
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: g
    Wake-on: g
    Current message level: 0x00000007 (7)
                   drv probe link
    Link detected: yes

smb.conf на удаленной машине:

text

[global]
    log file = /dev/null
    display charset = utf8
    guest account = nobody
    smb passwd file = /etc/samba/smbpasswd
    load printers = no
    socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
              guest ok = yes
    interfaces = 192.168.1.1 127.0.0.1
    domain master = yes
    encrypt passwords = yes
    hosts allow = 192.168.1.0/24 127.0.0.1
    dns proxy = no
    printing = bsd
    server string = 
    dos charset = cp866
    local master = yes
    workgroup = HOME
    os level = 33
    hosts deny = ALL
    printcap name = /dev/null
    syslog = 0
    security = user
    unix charset = utf8
    preferred master = yes
    bind interfaces only = yes
    disable spoolss = yes    
    max log size = 50
    log level = 0
    netbios name =  SERVER
    wins support = yes
              follow symlinks = yes
              wide links = yes
              unix extensions = no

[ДОКУМЕНТЫ] comment = Документы path = /home/%U browsable = yes public = no writable = yes create mask = 0644 [NET] comment = Файло-хранилище path = /home/LAN/NET browsable = yes writable = no guest ok = no public = no hide unreadable = yes [ФИЛЬМЫ] comment = Фильмы path = /mnt/films/films browsable = yes public = no writable = no guest ok = no hide unreadable = yes [TEMP] comment = Помойка path = /home/LAN/TEMP browsable = yes writable = yes public = yes guest ok = yes create mask = 0777 directory create mask = 0777 [MUSIC] comment = Музяка path = /mnt/music/music browsable = no writable = yes public = no guest ok = no [PACMAN] comment = Кеш pacman path = /mnt/1500GB/disk/pacman_cache browsable = no writable = yes public = no guest ok = no

Войдите или зарегистрируйтесь, чтобы ответить.