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-devel

Re: [Xen-devel] Optimizing NFS to Xen

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Optimizing NFS to Xen
From: Grabber <grabber@xxxxxxxxx>
Date: Sun, 2 Dec 2007 14:56:51 -0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 02 Dec 2007 08:57:52 -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=KstL4T7pKk42dQe1F9XhDvZUxH2H/6GxuouLC8vA5P0=; b=omPmjrth8SxbDPGOzvri4tvGQGzx6aFaJ8LDDWAR1JzARHvyoSTXa5HFpzeXtprom4zQErrHlTjKl0Gb6GFHPtW8FWhbjGyg6d3lyQuicye/ncJUNo8jwPHv+i4XLD5FJaPJNT1vjeUfX8NwG4YZRIgPL+JXwbC4sqszAPsFGHY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=CZg6WsK/L9a4s8zvN4q0qdfWdDDFLxXUL2+n9AtpLUUYxOe0c3CTsMHGqqOFuxNZMqy/5GmUGGtHU2UdKOiBVjMxW6YN5C3aVar1Evcr+OK6Xyc+ooJdPVOsoGjtbPZ6n5ZDqvJDoZfnDrHSmHw56sKUl2kJiX6Qiz2iCdk72DE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200712020530.22801.mark.williamson@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <c8a494f40711031305o2a28361bj32ac5077a0a551cf@xxxxxxxxxxxxxx> <20071103200857.684d14aa@xxxxxxxxxxxxxxxxx> <c8a494f40711031342y5b7305dfre9831e8001615015@xxxxxxxxxxxxxx> <200712020530.22801.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thanks for reply!
 
I'm thinking... is really necessary use SWAP over ethernet (using NFS)? The RAM memory have highest transfers rates and access time, why we need migrate information (pages from ram) accross a network? It is stupid and decrease a lot o performance???
 
Can anyone justify it?
 
 
Regards,
Luiz Vitor Martinez Cardoso aka Grabber.

 
On 12/2/07, Mark Williamson <mark.williamson@xxxxxxxxxxxx> wrote:
> I read about NFS in this mail (at kernel-list): [PATCH 00/33] Swap over NFS
> -v14
>
> This is outdated information? I trying to understand why i can`t use SWAP
> with NFS.

Swap with NFS has not been allowed for technical reasons.  I think that 2.6.24
might have patches to allow swapping over NFS, but I'm not really sure.
There's certainly an effort in progress to get swap-over-NFS into mainline
Linux in the not-too-distant future.

Patches to allow it have been floating around for a while, so you could
probably find one and apply it to your kernel.  Actually, I thought that
debian were including a patch for this in their kernel at one stage but I'm
not sure...

Anyhow, the basic problem with swapping over NFS is: you want to swap when
you're low on memory; you need to allocate memory in order to do network IO;
how do you swap over the network if you've got no memory to allocate for
network buffers?

I'm not sure how previous patches address this (or how good they were!), but I
understand the latest round of patches for current kernels keep some memory
in reserve in order to prevent a lack of memory freezing up the system and
preventing forward progress.

The problems (and solutions) here are basically the same whether you're
running on a real machine or under Xen, so there's not really anything
Xen-specific going on.

Cheers,
Mark

> Regards,
> Luiz Vitor Martinez Cardoso aka Grabber.
>
> On Nov 3, 2007 6:08 PM, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> > > fast network help. If you use IDE disks, use hdparam to tune them for
> > > optimal transfer rates. If you
> > > support multiple, simultaneous users, consider paying for SCSI disks;
> >
> > SCSI
> >
> > > can schedule multiple,
> > > interleaved requests much more intelligently than IDE can.
> >
> > Thats rather outdated documentation



--
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!



--
Regards,
Luiz Vitor Martinez Cardoso [Grabber].
(11) 8187-8662

Eletrical Engineer at maua.br
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>