[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Optimizing NFS to Xen


  • To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.