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] Re: [XEN] using shmfs for swapspace

To: Rik van Riel <riel@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [XEN] using shmfs for swapspace
From: Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>
Date: Wed, 26 Jan 2005 20:56:50 +0000
Cc: Arnd Bergmann <arnd@xxxxxxxx>, Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>, Luke Kenneth Casson Leighton <lkcl@xxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 27 Jan 2005 15:55:36 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.61.0501211634380.15744@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <20050102162652.GA12268@xxxxxxxx> <200501050111.59072.arnd@xxxxxxxx> <Pine.LNX.4.61.0501211634380.15744@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> > - Pseudo faults:
>
> These are a problem, because they turn what would be a single
> pageout into a pageout, a pagein, and another pageout, in
> effect tripling the amount of IO that needs to be done.

The Disco VMM tackled this by detecting attempts to double-page using a 
special virtual swap disk.  Perhaps it would be possible to find some cleaner 
way to avoid wasteful double-paging by adding some more hooks for virtualised 
architectures...

In any case, for now Xen guests are not swapped onto disk storage at runtime - 
they retain their physical memory reservation unless they alter it using the 
balloon driver.

> Xen already has this.  I wonder if it makes sense to
> consolidate the various balloon approaches into a single
> driver, and keep the amount of ballooned memory into
> account when reporting statistics in /proc/meminfo.

If multiple platforms want to do this, we could refactor the code so that the 
core of the balloon driver can be used in multiple archs.  We could have an 
arch_release/request_memory() that the core balloon driver can call into to 
actually return memory to the VMM.

> > When you want to introduce some interface in Xen, you probably want
> > something more powerful than these,
>
> Xen has a nice balloon driver, that can also be
> controlled from outside the guest domain.

The Xen control interface made this fairly trivial to implement.  Again, the 
balloon driver core could be plumbed into whatever the preferred virtual 
machine control interface for the platform is (I don't know if / how other 
platforms tackle this).

Cheers,
Mark


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

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