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

[Xen-users] Re: Use hard drive as physical mem for xen vm

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: Use hard drive as physical mem for xen vm
From: Charles Duffy <cduffy@xxxxxxxxxxx>
Date: Fri, 11 Nov 2005 11:33:13 -0600
Delivery-date: Fri, 11 Nov 2005 17:38:39 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <0ML2Dk-1EaZKb1rHY-0001AI@xxxxxxxxxxxxxxxxxxxxxxxx>
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: <0ML2Dk-1EaZKb1rHY-0001AI@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)
If you want to force MySQL to use swap in place of physical memory, why not just find the place in the source where it checks for physical (vs virtual) memory and modify it to require only that adequate virtual memory be available?

Using virtual memory without the knowledge of the underlying OS is just a really, really, really bad idea. In-memory pages get rewritten *exceedingly* frequently in a great many cases -- unlike pages which the OS intelligently chooses to swap out, which are selected *because they're not frequently used*. If you're doing this behind the OS's back -- just mapping a big region of "physical memory" to disk -- then you no longer have any of those algorithms working in your favor, and the wait times will be *huge*.

As the other respondants have suggested -- don't do it this way. Modify MySQL instead.


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