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] Xen guest nfs client not responding

To: "Mark Furner" <mark.furner@xxxxxxx>
Subject: Re: [Xen-users] Xen guest nfs client not responding
From: tmac <tmacmd@xxxxxxxxx>
Date: Sun, 3 Feb 2008 07:24:43 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 03 Feb 2008 04:25:24 -0800
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:references; bh=IReWSHrPSAmPzZZZiEw/C2dzTzzdsjJ96hk3u3KU7Lg=; b=E0PcbJEYnHslEEc3OI+a/slQh+D+a7Q2vRfpJ1b7hMhUMdloOU758O6Lt7hY9RGBI706JeLal+dPV1YP+gEYPXMzxCp4IkyRMdljnuHJfC8vkq5QsXTHbMnG0ktK2SRlUvuOtkfTgt8st/LBQou/GvMSQHfPSazktkai0VpPLLg=
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:references; b=c9/63RMT1Ebr49C1nrXFyMINjD2izMcBvwsbLLgrI60MMs4asdrOlodviGBPp9vOkXgLVRVdUprmVJ3yWfnpA9t0amKLwvQx1rVn+D/WE4Ibmn1J82tBSGKcdEmXCDXMGxXB6oZBa6TCZJZE15Ffd0a07SKiaT+EUSSY1luc9l8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080202214731.291950@xxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20080131211207.203260@xxxxxxx> <73699aa30802010523iee09bbax1fb1ff05825dfaa9@xxxxxxxxxxxxxx> <20080202214731.291950@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
try 1024, 2048, 4096, 8192, 16384, 32768.
 
You should (almost) always use the largest r/wsize that you can for optimal throughput.
 
--tmac

On Feb 2, 2008 4:47 PM, Mark Furner <mark.furner@xxxxxxx> wrote:
Thanks Tmac!

There is no cabling involved. The Xen guest and Xen host are the same machine. SO I think it might be No 2.  I'm wondering if there is a discrepancy in NFS blocksize, as the LTSP project site below suggested (see quote)? I'm using a Xen Dom0 host with Ubuntu 7.10 with mounted LVM drives that are also exported via NFS to allow simultaneous access by the Xen guests (usually Ubuntu 6.10 or Debian etch).

[quote]
The problem is caused by the 2.6 kernels using a large default blocksize for NFS packets. The 2.6 kernels use 32k blocks, where the older kernels used 8k blocks. What happens is the 32k byte blocks need to be broken down into 1500 byte datagrams. Simple math will tell you that you need a whole lot more 1500 byte datagrams to make up a full 32kbyte block. Sending those datagrams to a 10mbit card takes too long for all of the datagrams to get there, so the NFS client times out before getting all of the fragments.
[unquote]

Their suggested fix is
[quote]
You need to pass some options to the client to tell it to use smaller block sizes for NFS.
[unquote]

I don't know if this looks plausible to you, but am trying the following NFS mount options in my Xen guest:
rsize=2048,wsize=2048

Regards

M




-------- Original-Nachricht --------
> Datum: Fri, 1 Feb 2008 08:23:36 -0500
> Von: tmac <tmacmd@xxxxxxxxx>
> An: "Mark Furner" <mark.furner@xxxxxxx>
> CC: Xen-Users <xen-users@xxxxxxxxxxxxxxxxxxx>
> Betreff: Re: [Xen-users] Xen guest nfs client not responding

> it could be a few different things...
>
> 1. check the physical cables. use a good, comprehensive tester (not those
> cheap testers)
> -> make sure there is no physical damage to the cable
> -> make sure the ends are crimped properly (sheath is under the rj45
> pincher)
> 2. Verify the capability of your NFS server. Many NFS server based on
> general purpose OS's
> cannot do more than an 8K rsize/wsize. You must adjust your client to
> match.
> -> if you have a netapp, the default could be 8K or 32K. run "options nfs"
> to find out
> 3. Verify the connectivity at the switches.
> -> Make sure there are no duplex mismatches. (this should not happen at
> Gige, but happens all the time on 100BT)
> -> If using GigE, verify Flow Control and, if possible, set it to on in
> both
> directions.
> ---> some switches do not support flow control in both directions
>
> Hope this helps...
>
> --tmac
>
> On Jan 31, 2008 4:12 PM, Mark Furner <mark.furner@xxxxxxx> wrote:
>
> > Hello
> >
> > I'm trying to get my NFS Xen vm guest systems to their host via NFS
> > (within the same machine but keep getting performance-related errors):
> >
> > nfs: server [IP] not responding, still trying
> > nfs: server [IP] OK
> > [loops]
> >
> > Connectivity is flaky at best and applications running within the Xen
> > guests keep crashing or freezing as a result.
> >
> > There is a note at a LTSP site that says NFS has problems with the
> 2.6Kernel and discrepancies in NIC capacity between the host and client if the
> > NFS block sizes are too large:
> > http://wiki.ltsp.org/twiki/bin/view/Ltsp/NFS#NFS_Server_not_responding
> > Does this apply to Xen too?
> > Their fix: pass on kernel options to the NFS client. How could I try
> this
> > with Xen?
> >
> > Thanks for any help!
> >
> > M
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört?
> > Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
>
>
>
> --
> --tmac
>
> RedHat Certified Engineer #804006984323821 (RHEL4)
> RedHat Certified Engineer #805007643429572 (RHEL5)
>
> Principal Consultant, RABA Technologies

--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger



--
--tmac

RedHat Certified Engineer #804006984323821 (RHEL4)
RedHat Certified Engineer #805007643429572 (RHEL5)

Principal Consultant, RABA Technologies
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users