From owner-freebsd-stable@freebsd.org Tue Aug 1 06:30:01 2017 Return-Path: Delivered-To: freebsd-stable@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 D9E7FDB52B0 for ; Tue, 1 Aug 2017 06:30:01 +0000 (UTC) (envelope-from TERRY@glaver.org) Received: from server.glaver.org (server.glaver.org [204.141.35.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B9E4E66731 for ; Tue, 1 Aug 2017 06:30:01 +0000 (UTC) (envelope-from TERRY@glaver.org) Received: from glaver.org by glaver.org (PMDF V6.7-x02 #37010) id <01QHDP0VCU1C006GXB@glaver.org> for freebsd-stable@freebsd.org; Tue, 01 Aug 2017 02:29:52 -0400 (EDT) Date: Tue, 01 Aug 2017 02:13:35 -0400 (EDT) From: Terry Kennedy Subject: Re: FreeBSD 11.1-R network slowness on Samba To: freebsd-stable@freebsd.org Message-id: <01QHDPLW30LG006GXB@glaver.org> MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=us-ascii X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Aug 2017 06:30:02 -0000 > Then I updated to 11.1-R by recompiling from svn, using the same > kernelconfig from 10.3, and now my windows client shows timeouts and > really slow connection. File copy never past kilobytes per second :( I think the issue is with the SAMBA port. I was running the samba36 port under FreeBSD 10.x and things were fine (500Mbyte/sec transfers using 10GbE). At some point the samba36 port broke due to changes in one or more of talloc/tdb/tevent and I tried various samba4x ports (I am using samba44 now, samba46 doesn't seem to work with XP-type client systems). Various directory traversal operations spike the CPU load up to 100% and clients see very bursty behavior. A lot seems to depend on the application in use - my benchmark is clrmamepro: https://mamedev.emulab.it/clrmamepro/ But even things like Windows (7) Photo Viewer will just sit at the "Loading..." message for a random length of time before displaying the next picture. I am seeing easily a 10:1 performance degradation with any of the samba4x ports. I have tried large numbers of SAMBA config tuning changes, different port build options, etc. without any success. I "solved" the problem by using an old FreeBSD 8.4 box with a 10GbE card as an NFS client to the storage server, and then exporting the NFS-mounted storage to clients with samba36. This whole chain is nearly as fast as the old samba36-on-storage-server setup. I may try resurrecting the samba36 port under FreeBSD 11.1 to see if that has the performance I used to get. I'm not sure how hard it will be to build samba36, though. Things have changed since the port was retired. Terry Kennedy http://www.glaver.org New York, NY USA