From: Chintamani Siddeshwar Subject: Re: Getting the page fault count for domU Date: Thu, 29 Sep 2011 09:13:52 -0700 (PDT) Message-ID: <1317312832330-4853794.post@n5.nabble.com> References: <1317172992048-4847541.post@n5.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1317172992048-4847541.post@n5.nabble.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I am thinking of doing something like 1) Add a field "unsigned long page_fault_count" to struct domain defined in in xen/sched.h 2) Increment this counter mem_paging_domctl(...) defined in arch/x_86/mm/mem_paging.c for case XEN_DOMCTL_MEM_EVENT_OP_PAGING_EVICT I will then access this information is available from within struct vcpu->domain->page_fault_count. Please correct me if my chain of thought is wrong or if it is too simplistic. Looking forward to your valuable comments thanks Chintamani -- View this message in context: http://xen.1045712.n5.nabble.com/Getting-the-page-fault-count-for-domU-tp4847541p4853794.html Sent from the Xen - Dev mailing list archive at Nabble.com.