From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 27 20:05:46 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1903F1065675 for ; Fri, 27 Apr 2012 20:05:46 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 82AB58FC08 for ; Fri, 27 Apr 2012 20:05:45 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q3RK5hqk006462 for ; Fri, 27 Apr 2012 22:05:43 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q3RK5hkw006459 for ; Fri, 27 Apr 2012 22:05:43 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Fri, 27 Apr 2012 22:05:42 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Fri, 27 Apr 2012 22:05:43 +0200 (CEST) Subject: NFS - slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 20:05:46 -0000 is there any way to speed up NFS server? from what i noticed: - reads works fast and good, like accessed locally, readahead up to maxbsize works fine on large files etc. - write works terribly. it performs sync on every write IMHO, setting vfs.nfsrv.async=1 improves things SLIGHTLY, but still - writes are sent to hard disk every single block - no clustering. am i doing something wrong or is it that broken? i tried user space nfs from ports, it's funny but it's performance is actually better after i removed fsync from code.