ZFS + Samba performance

Vilem Kebrt vilem.kebrt at gmail.com
Mon Dec 19 09:45:53 CET 2011


On 12/19/2011 09:38 AM, Jan Dušátko wrote:
> Ahoj
>
> Proveden upgrade na:
> samba36-3.6.1       A free SMB and CIFS client and server for UNIX
> samba36-smbclient-3.6.1 Samba "ftp-like" client
> Situace je stale "stejna", prumer mi klesl na 1,7MB/s. Zacinam mit podezreni
> "Cim novejsi verze, tim nizsi propustnost".
>
> Options:
> _OPTIONS_READ=samba36-3.6.1
> WITHOUT_LDAP=true
> WITHOUT_ADS=true
> WITHOUT_CUPS=true
> WITH_WINBIND=true
> WITH_SWAT=true
> WITH_ACL_SUPPORT=true
> WITH_AIO_SUPPORT=true
> WITHOUT_FAM_SUPPORT=true
> WITHOUT_SYSLOG=true
> WITHOUT_QUOTAS=true
> WITHOUT_UTMP=true
> WITHOUT_PAM_SMBPASS=true
> WITHOUT_DNSUPDATE=true
> WITHOUT_AVAHI=true
> WITHOUT_EXP_MODULES=true
> WITH_POPT=true
> WITH_IPV6=true
> WITHOUT_MAX_DEBUG=true
> WITH_SMBTORTURE=true
>
> # cat /boot/loader.conf
> ...
> zfs_load="YES"
> ...
> #ZFS Tunning
> vm.kmem_size="512M"
> vm.kmem_size_max="1G"
> vm.kmem_size_min="256M"
> vfs.zfs.prefetch.disable=0
>
> # cat /etc/sysctl.conf
> ...
> net.inet.tcp.local_slowstart_flightsize=10
> net.inet.tcp.nolocaltimewait=1
> net.inet.tcp.delayed_ack=0
> net.inet.tcp.path_mtu_discovery=0
> net.inet.tcp.delacktime=100
> net.inet.tcp.mssdflt=1460
> net.inet.tcp.sendspace=16384
> net.inet.tcp.recvspace=16384
> net.inet.tcp.slowstart_flightsize=54
> net.inet.tcp.inflight.enable=1
> net.inet.tcp.inflight.min=6144
> net.inet.tcp.hostcache.expire=3900
> net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.recvbuf_inc=65536
> net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.sendbuf_inc=65536
> net.inet.tcp.blackhole=2
> net.inet.udp.blackhole=1
> net.inet.udp.maxdgram=8192
> net.inet.udp.recvspace=16384
> net.local.stream.recvspace=16384
> net.local.stream.sendspace=16384
> kern.ipc.shmall=8388608
> kern.ipc.shmmax=67108864
> kern.ipc.maxsockbuf=16777216
> kern.ipc.nmbclusters=32768
> kern.ipc.somaxconn=8192
> kern.maxfiles=131072
> kern.maxfilesperproc=16384
> kern.maxvnodes=262144
> vfs.zfs.prefetch_disable=0
> vfs.read_max=1024
>
> Jinak pri hledani jsem nasel jednu nesrovnalost. Samba sice zabere necele
> procento casu, ale vetsinu stravi ve stavu "sbwait". Dle top-u se jedna o
> cas na alokaci socketu. Je zajimave, ze touto necnosti to v pripade zapisu
> netrpi, nebo je to mozna tak rychle, ze to nestiham sledovat.
>
> Honza
>
Ahoj, to je zajimave ja jsem na 8.1 upgradoval sambu z 3.4 na 3.5 a 
pozoroval jsem naopak narust prutoku asi o 3%.
Upgrade probehl z duvodu nekompatibility 3.4 a win7 v domene.
Vilem



More information about the Users-l mailing list