From owner-freebsd-hackers@freebsd.org Wed Nov 18 16:10:38 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5B65A2BE74 for ; Wed, 18 Nov 2015 16:10:38 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-qg0-x22f.google.com (mail-qg0-x22f.google.com [IPv6:2607:f8b0:400d:c04::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C1591DC6 for ; Wed, 18 Nov 2015 16:10:38 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: by qgad10 with SMTP id d10so31207077qga.3 for ; Wed, 18 Nov 2015 08:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=date:from:to:subject:message-id:organization:mime-version :content-type:content-transfer-encoding; bh=KF6MmPEPK7RKS9BWKVNih9oMXrIBIGQQMYQZESiz+RY=; b=DJs676Hs1w1rhkx2etdM3lmS9SELmJxCMaPbpB87vOCOHxhdUuE1Ko3VyQtYvo+zsN gS7M079iTD1mSB15HNXXUrakX3TOOfJTWpS5ARQfsZmILF+EcU2rl80lda+sNLfXpzAX 3LCE7pnAuyD9e4liY7vizUkx2DT9ZnFNC1E6g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:organization :mime-version:content-type:content-transfer-encoding; bh=KF6MmPEPK7RKS9BWKVNih9oMXrIBIGQQMYQZESiz+RY=; b=m8MwDTOxEDROBXdV2kpfseml2HAAXtOxl5uKmIOdobOBHE1i0hrlxUwqOM0pNslFo5 yQ8zHU0Qn9JYb0EPr7cojuVwob6CEn7QyEXIBOd+c8Wt+ZQ2OhhawWeWlQHGBtzObXgu kREggIg8oawTLGkwXHbIRVym5sgKiuXl6TAXzXhkGHfaSXUdtCaKo0z+0GouZxzmel3E AIQBT5EN8iCs1WpKNDZBu6S+2M76N30F1VFasvewefYh8IvKBdIiM+hinwjPHF1ReEOQ deCW6Z548qSGxvbprAljVrzaSv95adfnAh23qVfnHaKOGHuyRFX34nK0pjfZaTxpRmW1 Sk3w== X-Gm-Message-State: ALoCoQlw7H4cCXjQ9jjWHbgdjQ4nwlQXfoyQ3ecOOua0j8TdqWNTLjUni1qHdKjqHqGvxIBo1ek8 X-Received: by 10.140.153.213 with SMTP id 204mr2477420qhz.30.1447863037262; Wed, 18 Nov 2015 08:10:37 -0800 (PST) Received: from Papi ([186.212.159.77]) by smtp.gmail.com with ESMTPSA id 5sm1063851qgk.10.2015.11.18.08.10.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Nov 2015 08:10:37 -0800 (PST) Date: Wed, 18 Nov 2015 13:15:34 -0300 From: Mario Lobo To: freebsd-hackers@freebsd.org Subject: Re: FreeBSD smbfs horribly slow (update) Message-ID: <20151118131534.4a317f33@Papi> Organization: BSD X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.25; amd64-portbld-freebsd10.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2015 16:10:38 -0000 This an update to my previous post. Here are the test scenarios: Daemon = custom app that is accessed via tcp, and works on DBF/NTX files, either locally or on a smb share. The test involves several writing/deleting or updating DBF/NTX records operations. OBS - completion times may vary, but very little. Case 1) FBSD 10.2 running Daemon <---> Local Files Test executed on the same machine were the daemon is running. Completion: 3 seconds case 2) Daemon client <---> FBSD 10.2 running Daemon <---> Local Files (whatever OS) Test executed on the daemon client. Completion: 3-4 seconds case 3) Daemon client <---> FBSD 10.2 running Daemon <---> FBSD (Samba 4.2) (whatever OS) Test executed on the daemon client. The daemon server mounts the share via mount_smbfs Completion: 3 minutes and 50 seconds (aprox.) case 4) Daemon client <---> FBSD 10.2 running Daemon <---> LINUX (Samba 3.6) (whatever OS) Test executed on the daemon client. The daemon server mounts the share via mount_smbfs Completion: 3 minutes and 47 seconds (aprox.) case 5) Daemon client <---> CENTOS 7 running Daemon <---> LINUX (Samba 3.6) (whatever OS) Test executed on the daemon client. The daemon server mounts the share via cifs Completion: 5-6 seconds case 5) Daemon client <---> CENTOS 7 running Daemon <---> FBSD (Samba 4.2) (whatever OS) Test executed on the daemon client. The daemon server mounts the share via cifs Completion: 5-6 seconds CONCLUSION: When copying several files to the share via mount_smbfs (i.e. overwriting the DBF/NTX to rerun the test), I can get 20/40 mbps, with a few 300/400k hiccups in between, but for doing "little record" operations like those involved in DBF/NTX, the cifs client outperforms mount_smbfs client by an enormous factor. -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio.... YET!!] "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things."