All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about HLT VMExit reason
@ 2015-02-12  9:24 zhangtrump
  2015-02-12 10:06 ` Andrew Cooper
  0 siblings, 1 reply; 3+ messages in thread
From: zhangtrump @ 2015-02-12  9:24 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 483 bytes --]

Hi, all:
     I was testing networking performance from DomU to DomU running on different hosts. I used xentrace and xenalyze tools to get the trace info of receive side, and found that there was a time when vcpus (which handle the receive work) were in "Blocked" state.     From the information of "VMExit" reason gotten by xenalyze tool, the "HLT" is the main exit reason. I am wondering when DomU will be exited because of "HLT"?      Thanks.
------Best RegardsJames 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 843 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about HLT VMExit reason
  2015-02-12  9:24 Question about HLT VMExit reason zhangtrump
@ 2015-02-12 10:06 ` Andrew Cooper
  2015-02-12 10:24   ` Paul Durrant
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cooper @ 2015-02-12 10:06 UTC (permalink / raw)
  To: zhangtrump, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 665 bytes --]

On 12/02/15 09:24, zhangtrump wrote:
> Hi, all:
>
>      I was testing networking performance from DomU to DomU running on
> different hosts. I used xentrace and xenalyze tools to get the trace
> info of receive side, and found that there was a time when vcpus
> (which handle the receive work) were in "Blocked" state.
>      From the information of "VMExit" reason gotten by xenalyze tool,
> the "HLT" is the main exit reason. I am wondering when DomU will be
> exited because of "HLT"? 
>      Thanks.

Yes.

When one vcpu halts, Xen will schedule another vcpu in its place.  There
is nothing to be gained at all by letting a pcpu stay halted in guest.

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 1462 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Question about HLT VMExit reason
  2015-02-12 10:06 ` Andrew Cooper
@ 2015-02-12 10:24   ` Paul Durrant
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Durrant @ 2015-02-12 10:24 UTC (permalink / raw)
  To: Andrew Cooper, zhangtrump, xen-devel@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 1270 bytes --]

I think that’s an answer to why hlt is a vmexit as opposed to when it is likely to occur…

This simple answer, of course, is the OS idle process will most likely the issuer of a hlt instruction and this is why you are seeing them so frequently. Give your guest some compute-bound task and you’ll  mostly likely see a big fall-off in the number of hlts.

  Paul

From: xen-devel-bounces@lists.xen.org [mailto:xen-devel-bounces@lists.xen.org] On Behalf Of Andrew Cooper
Sent: 12 February 2015 10:07
To: zhangtrump; xen-devel@lists.xen.org
Subject: Re: [Xen-devel] Question about HLT VMExit reason

On 12/02/15 09:24, zhangtrump wrote:
Hi, all:

     I was testing networking performance from DomU to DomU running on different hosts. I used xentrace and xenalyze tools to get the trace info of receive side, and found that there was a time when vcpus (which handle the receive work) were in "Blocked" state.
     From the information of "VMExit" reason gotten by xenalyze tool, the "HLT" is the main exit reason. I am wondering when DomU will be exited because of "HLT"?
     Thanks.

Yes.

When one vcpu halts, Xen will schedule another vcpu in its place.  There is nothing to be gained at all by letting a pcpu stay halted in guest.

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 25788 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-12 10:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12  9:24 Question about HLT VMExit reason zhangtrump
2015-02-12 10:06 ` Andrew Cooper
2015-02-12 10:24   ` Paul Durrant

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.