Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2015 13:15:34 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        freebsd-hackers@freebsd.org
Subject:   Re: FreeBSD smbfs horribly slow (update)
Message-ID:  <20151118131534.4a317f33@Papi>

next in thread | raw e-mail | index | archive | help
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."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151118131534.4a317f33>