WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Fast write performance, slow read performance in NFS

To: Linspeed <lee@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Fast write performance, slow read performance in NFS
From: Nathan <have.an.email@xxxxxxxxx>
Date: Thu, 23 Oct 2008 22:05:18 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 23 Oct 2008 13:06:00 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4c5b7N6BHcOE0Esi5+16RQ83no4JZ0vHqez6T6h/b44=; b=JhHAkaJYEGqNWGFe5aNGbLMDkv01xQTuRvTjpx0lOUCLqgVa+iA1sxLk4c68l6MzHk e941vL6sICK5miS+T88vW4bZfEpQ7WrVd9FyFUDBhHzigWDELSrlP8nn70Tof6K3NvQM tTmR5iY8Eb7oepur6mfAGoduJnJ9mhLSx/Acw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dQ6zpA4eqlwJxHRT4kZn57QmMpcY4uhENxy9wx5gkRKW+pMklYvozdK7vM9W8/h7Rt jmLP36QxATs6gUQe5nGTkyJAHUBfW+lHoeuqtAER0PIzV2sqcJwb9SRLK3qLo3qwYxj4 9MZ2Glf+Sw74NRpGBVQEH3ymKAY2F130gVn2U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20130320.post@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20130320.post@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Oct 23, 2008 at 2:54 PM, Linspeed <lee@xxxxxxxxxxxx> wrote:
>
> Hello
>
> I need to setup shared storage for several virtual machines I'm running in
> Xen.
> I've gone for NFS.
>
> Native performance on the disk that is shared is as follows:
> Read: 199 MB/second
> Write: 158 MB/second
>
> Now I've done lots of testing with NFS options on the client (the virtual
> machine).
> I've managed to get the same write performance as I get natively, but read
> performance is way below half that of native. Around 70 MB/second.

158 MB/second, counting overhead that's something like 1.5 Gbit/second
. . . What kind of network is this?

This is very off the cuff, but in your place I'd test by maximizing
your MTU and varying

 - between tcp and udp (you've tested udp)

 - nfsv3 and nfsv4 (you've tested nfsv3)

 - [r|w]sizes lower than MTU size or much bigger (you've tested much
bigger, and your default was probably 8192 with MTU of 1500 which is
no good). With default size of 8192 octets you get a boost in
performance when you push MTU to contain that size, MTU 9000 is good,
I suppose that with your network you can do that :-)

Don't forget NFS server-side cache, I suppose you can tune that, it
shouldn't change your test values though(otherwise there's something
wrong with your tests)

-- 
HTH,
Nathan

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>