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] Offline state in scheduling

To: "duyuyang@xxxxxxxxx" <duyuyang@xxxxxxxxx>
Subject: Re: [Xen-devel] Offline state in scheduling
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Tue, 29 Jun 2010 13:50:12 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 29 Jun 2010 05:51:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <201006291942243126656@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <201006281159133905493@xxxxxxxxx> <201006291942243126656@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4
On 29/06/10 12:42, Yuyang Du wrote:
Is it right to say the time HVM waits for I/O equals the offline time (given no 
administrator pauses)?

There are some I/O events that are handled inside of Xen (such as APIC accesses); these don't cause a vcpu to be paused. I think in the normal course of operation, an HVM vcpu is only paused when doing I/O. Other reasons might be administrator pause, migration, save/restore, domain creation, memory sharing / page swapping, and so on. But if you aren't doing any of those, I think I/O done in QEMU would be the only reason.

I am testing apache web server in a HVM, and I find that vcpu blocking state 
makes up a large portion. Since the HVM can not issue SCHED_block hypercalls, 
so the blocking state means the VM is not cpu intensive and often executes HLT 
to halt itself?

Yes. If you take a trace to include VMX / SVM events, and use xenalyze, you should be able to see the HLT vmexit before blocking.

 -George

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

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