Samba server performance -- only 33MiB/s with one client on 1G network!
Lev Serebryakov
lev at FreeBSD.org
Tue Jul 9 19:12:39 UTC 2013
Hello, Mark.
You wrote 9 июля 2013 г., 20:41:31:
MS> What can you tell us about the system tunings. Can you post a copy of your
I need to note, that system as tuned for (a) maximum local read/write speed
and (b) maximum TCP throughput in local network, as seen by "iperf".
Results of these separate tunings could be seen in very first message in
this thread (280MiB/s sustained local read from FS and 820Mbit/s of TCP
throughput to client in question).
MS> 1. sysctl.conf
net.inet.tcp.recvbuf_auto=1
net.inet.tcp.recvbuf_inc=131072
net.inet.tcp.recvbuf_max=1048576
net.inet.tcp.sendbuf_auto=1
net.inet.tcp.sendbuf_inc=131072
net.inet.tcp.sendbuf_max=1048576
net.inet.tcp.maxtcptw=102400
net.inet.tcp.mssdflt=8800
net.inet.tcp.recvspace=262144
net.inet.tcp.sendspace=262144
kern.ipc.nmbclusters=204800
kern.ipc.nmbjumbop=192000
kern.ipc.maxsockbuf=2097152
net.inet.ip.intr_queue_maxlen=8192
vfs.read_max=32
MS> 2. loader.conf
hw.em.rxd=4096
hw.em.txd=4096
net.link.ifqmaxlen=16384
MS> 3. smb.conf
Attached
MS> 4. /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/label/swap none swap sw 0 0
/dev/ufs/root / ufs rw 1 1
/dev/ufs/tmp /tmp ufs rw 2 2
/dev/ufs/usr /usr ufs rw 2 2
/dev/ufs/var /var ufs rw 2 2
/dev/raid5/storage /usr/home ufs rw 2 2
linproc /compat/linux/proc linprocfs rw 0 0
/usr/home /backup/home nullfs rw 0 0
FS in question is "/usr/home" (exported as "storage" SMB share).
MS> Also the output from
MS> 1. pciconf -lv
attached.
MS> 2. dmidecode
dmidecode
MS> 3. ifconfig
ifconfig -v em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=4219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO>
ether 00:1e:8c:75:03:0d
inet 192.168.134.2 netmask 0xffffff00 broadcast 192.168.134.255
inet6 fe80::21e:8cff:fe75:30d%em0 prefixlen 64 scopeid 0x1
inet6 2001:470:923f:1:21e:8cff:fe75:30d prefixlen 64 autoconf
nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
media: Ethernet 1000baseT <full-duplex>
status: active
MS> 4. mount
/dev/ufs/root on / (ufs, local, soft-updates)
devfs on /dev (devfs, local)
/dev/ufs/tmp on /tmp (ufs, local, journaled soft-updates)
/dev/ufs/usr on /usr (ufs, NFS exported, local, journaled soft-updates)
/dev/ufs/var on /var (ufs, local, journaled soft-updates)
/dev/raid5/storage on /usr/home (ufs, NFS exported, local, journaled soft-updates)
linprocfs on /usr/local/linux/proc (linprocfs, local)
/usr/home on /backup/home (nullfs, local)
--
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmidecode.txt.bz2
Type: application/octet-stream
Size: 4313 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-performance/attachments/20130709/8836db39/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pciconf.txt.bz2
Type: application/octet-stream
Size: 867 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-performance/attachments/20130709/8836db39/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smb.conf.bz2
Type: application/octet-stream
Size: 694 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-performance/attachments/20130709/8836db39/attachment-0002.obj>
More information about the freebsd-performance
mailing list