From owner-freebsd-fs@FreeBSD.ORG Tue Dec 13 16:18:40 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C9131065670 for ; Tue, 13 Dec 2011 16:18:40 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id DCE868FC1A for ; Tue, 13 Dec 2011 16:18:39 +0000 (UTC) Received: by eaaf13 with SMTP id f13so1636992eaa.13 for ; Tue, 13 Dec 2011 08:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=BdNSC8RjgS5MgSqsj6VA9onz7A2L+oUlQwMsAIHi+h8=; b=VbzTchAtelu0Qw2QYGASaEHl7tX7AAYx+/Zg45P76FrfPuLJgH26lmi+kzaGtMekZf 2Ky51fY0X7jOi+YpMwc3g7/ycGmd68l7mMZU4LPQqSIcPO6z4YjTCjcgo1EjVeBlZed+ YezkxK33HSf9Bf9Pmp6A83Haaz5wAvo+tF43U= Received: by 10.204.14.208 with SMTP id h16mr12993353bka.2.1323793118822; Tue, 13 Dec 2011 08:18:38 -0800 (PST) Received: from [192.168.1.129] (schavemaker.nl. [213.84.84.186]) by mx.google.com with ESMTPS id jf4sm41714025bkc.5.2011.12.13.08.18.37 (version=SSLv3 cipher=OTHER); Tue, 13 Dec 2011 08:18:38 -0800 (PST) Message-ID: <4EE77ADC.9050501@gmail.com> Date: Tue, 13 Dec 2011 17:18:36 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <1888801930.136947.1323790912860.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <1888801930.136947.1323790912860.JavaMail.root@erie.cs.uoguelph.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: FreeBSD 9.0 and NFS async X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 16:18:40 -0000 Rick Macklem schreef: > Johan Hendriks wrote: >> Hello all. >> >> I used to use async on my 8.x nfs servers! >> On the FreeBSD 9.0 server i can not do it through the old 8.x sysctl. >> >> Is there an other way to set async on FreeBSD 9.x >> > You have two choices: > 1 - Apply this patch to your NFS server's kernel sources and then set > vfs.nfsd.async=1 > http://people.freebsd.org/~rmacklem/async.patch > > 2 - switch to using the old server by setting > oldnfs_server_enable="YES" > in your /etc/rc.conf and then setting the sysctl. > > I'll assume that you realize that doing this violates the NFS RFCs because > it runs your server in a way where there is a risk of data loss (that the > client won't know to re-write) when the server crashes. > > rick >> regards, >> Johan Hendriks >> _______________________________________________ >> freebsd-fs@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-fs >> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" Yes i do know the risk. The thing is we want a dataset shared to a ESXi client using NFS. I use NFS for my normal usage, (sharing ports tree and so on.) but now we want to use it to share a ZFS dataset for a ESXi client. We use iscsi now, but this way we miss some zfs goodies. like snapshots(not a zvol) and most important, we can reach the files directly. But with a virtual machine shared over NFS i get horrible performance. If i copy a file to whatever virtual machine from a windows client shared with iscsi , i get arround 80Mb per second (in the windows copy window) almost at a steady pace. we are really pleased with that. !! If i copy a virtual machine to the NFS share, fire it up, and do a file copy, it never gets higher than 50 Mb and it sometimes drop to 1 Mb then goes to 20 back to 10 and so on. Also the machines feels sluggish in performance. Are there other less dangerous things i can try to boost performance? regards, Johan Hendriks