From: "Tim Wood" Subject: detecting paging inside of VMs Date: Wed, 21 Jun 2006 11:10:26 -0400 Message-ID: <9c92ada10606210810j3dae4b5h3adc19d67168aad8@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0874484792==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Devel List-Id: xen-devel@lists.xenproject.org --===============0874484792== Content-Type: multipart/alternative; boundary="----=_Part_112617_25380057.1150902626559" ------=_Part_112617_25380057.1150902626559 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'd like to be able to detect when a VM is pressed for memory without doing anything inside of the VM. My idea is to add some code in the hypervisor that would try to detect paging in each domU, or maybe just monitor the rate at which memory pages are being requested and released. I know that the guest OSes are responsible for managing their own page tables, but I suspect that some of this still goes through the VMM. I'm willing to do some hacking, but I'm not yet sure if the information I'd need can be obtained in the hypervisor. I'd rather not modify the user level xen kernels if possible. Does any of this seem plausible? Thanks for any info! -Tim p.s. of course if you have any other ideas (that are transparent to the domU) I'd be interested to hear ------=_Part_112617_25380057.1150902626559 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'd like to be able to detect when a VM is pressed for memory without doing anything inside of the VM. 

My idea is to add some code in the hypervisor that would try to detect paging in each domU, or maybe just monitor the rate at which memory pages are being requested and released.

I know that the guest OSes are responsible for managing their own page tables, but I suspect that some of this still goes through the VMM.

I'm willing to do some hacking, but I'm not yet sure if the information I'd need can be obtained in the hypervisor.  I'd rather not modify the user level xen kernels if possible.

Does any of this seem plausible?  Thanks for any info!

-Tim

p.s. of course if you have any other ideas (that are transparent to the domU) I'd be interested to hear
------=_Part_112617_25380057.1150902626559-- --===============0874484792== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0874484792==--