From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 03:36:47 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45162F64 for ; Mon, 20 Oct 2014 03:36:47 +0000 (UTC) Received: from forward15.mail.yandex.net (forward15.mail.yandex.net [IPv6:2a02:6b8:0:801::5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 381E8FB7 for ; Mon, 20 Oct 2014 03:36:46 +0000 (UTC) Received: from web30j.yandex.ru (web30j.yandex.ru [5.45.198.71]) by forward15.mail.yandex.net (Yandex) with ESMTP id C83C99E04AF for ; Mon, 20 Oct 2014 07:36:42 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web30j.yandex.ru (Yandex) with ESMTP id 4698544C1095; Mon, 20 Oct 2014 07:36:42 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1413776202; bh=WcjY+IAg48/0UR5V+hgPR4lfsuNvKVho7jXg539ReNE=; h=From:To:Subject:Date; b=tsEoQE43xaEOb0kDTcodhazkYB/MaMYeYfKxOlTjCCTA/O6vOf0zwvjJ1MqNR7fWO qwmjsxOzILsAnpIgY+hN2mRYR494+e1IQirvBxjDQRrcfRyWhl0rY1rhUGouC3/DOQ E+3h7OYZDf5oO/3PM66FPmrFdRYaD5zkNxcZ0e+Y= Received: from tsn46-166-168-243.dyn.nltelcom.net (tsn46-166-168-243.dyn.nltelcom.net [46.166.186.243]) by web30j.yandex.ru with HTTP; Mon, 20 Oct 2014 07:36:41 +0400 From: Martin Hanson To: FreeBSD Questions Mailing List Subject: FreeBSD smbfs horrible slow MIME-Version: 1.0 Message-Id: <379771413776201@web30j.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 20 Oct 2014 05:36:41 +0200 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2014 03:36:47 -0000 Hi I am running a FreeBSD 10.1-RC2 box on at network where a Debian GNU/Linux box is hosting Samba. Mounting the share from another Debian (using cifs) or from a Windows box I get transfer rates at about 100 MB/s. All boxes are on the same gigabit network. Mounting the share from the FreeBSD box, using mount_smbfs or even smbclient, I can max. get 10-15 MB/s. I have tested the FreeBSD client on the exact same hardware as the Debian client. I am running with the following network card: em0: port 0xdf00-0xdf1f mem 0xfdee0000-0xfdefffff,0xfdec0000-0xfdedffff irq 21 at device 0.0 on pci2 The mount command for smbfs is: mount_smbfs -E iso-8859-1:iso-8859-1 //foo@fileserver/pub3 /home/foo/mnt/fileserver/pub3 Now, testing the same on NFS I get the same transfer rate from Debian to FreeBSD, ie. about 100 MB/s, so clearly the problem lies with "mount_smbfs". I cannot see any options to mount using cifs on FreeBSD. The smb.conf from the Debian box looks like this: [global] workgroup = WORKGROUP netbios name = Fileserver server string = %h server dns proxy = no interfaces = 127.0.0.0/8 eth0 bind interfaces only = yes log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072 strict sync = no sync always = no printable = no printing = bsd printcap name = /dev/null [pub3] path=/pub3 browseable = yes read only = yes valid users = foo admin users = foo, bar read list = bar write list = foo create mask = 0775 directory mask = 0775 What can be done to improve the performance of the FreeBSD client? Kind regards.