From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuehai Xu Subject: Re: Question about the ability of credit scheduler to handle I/O and CPU intensive VMs Date: Thu, 7 Oct 2010 20:25:12 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: xen-devel@lists.xensource.com, yhxu@wayne.edu List-Id: xen-devel@lists.xenproject.org > I originally considered that when a Dom has an I/O event, its VCPU > would be waken up, in another word, csched_vcpu_wake(struct vcpu *vc) > should be invoked. However, I find I am definitely wrong. As long as > there is a CPU intensive program running in a Dom, this Dom should > never be in a state of "sleep"? In another word, it should never be > waken up? > The trace result from xenalyze confirms that when a VM has a running CPU intensive program, it never needs to be waken up. So, my question is, how can I schedule a VM that has I/O event immediately even this VM is CPU intensive? I think it is impossible to implement it in the function csched_vcpu_wake. Also, is it possible to trace the I/O procedure by xenalyze? I notice even the macro TRC_HVM_IO_READ is defined, I don't find it is used in anywhere. Thanks, Yuehai