Skip to contentSkip to conversation

Questions on gdbsx

DISCUSSION Mukesh Rathor 5 participants 7 messages Feb 26, 2009 – Mar 4, 2009 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · yujiageng734 wrote:

Hi,

I am trying to use your gdbsx. But I don't know how to make a 32bit
dom0 running on 64bit hypervisor. Can you explain this for me? I'm extremely grateful to you.

Hmm.. good question. I don't know, it's always done for me here. One option would be to just download OVM from edelivery.oracle.com, it's free, and should ahve both binary and sources. You could look at spec file to see how they do it.

Quoted 2 lines

By the way, could you give me some tools to debug hypervisor and
monitor the process of hypervisor start. Any thought will be thankful.

To debug hypervisor, you'll need kdb. You could get that from OVM (xen 3.1.4) also, or http://xenbits.xensource.com/ext/debuggers.hg for unstable. See README-dbg. If you put earlykdb in xen kernel line in grub.conf, it would break into kdb during boot very early. Then you can single step, set breakpoints, etc...

Mukesh

Quoted 5 lines

Yu Jiageng,
China.

------------------------------------------------------------------------
网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>

#2 lore raw

How expensive is a VM EXIT?

Hi,

I've been trying to get a ballpark number on how expensive a VM EXIT is in terms of clock cycles. I'm also interested in how slow a TLB miss is. The only reference I was able to find was 13000 cycles for VM EXIT and around several hundred cycles for a TLB miss and a complete walk of page tables. Does anyone know from the top of their head or is there a reference you can share?

Thanks in advance.

John

#3 lore raw

Re: How expensive is a VM EXIT?

For just the VMEXIT itself, it's probably about 1000-1500 cycles on the latest processors. I haven't measured it very recently though.

-- Keir

Quoted 18 lines · Emre Can Sezer

Hi,

I've been trying to get a ballpark number on how expensive a VM EXIT is in terms of clock cycles. I'm also interested in how slow a TLB miss is. The only reference I was able to find was 13000 cycles for VM EXIT and around several hundred cycles for a TLB miss and a complete walk of page tables. Does anyone know from the top of their head or is there a reference you can share?

Thanks in advance.

John

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#4 lore raw

Re: How expensive is a VM EXIT?

Quoted 3 lines · Keir Fraser

For just the VMEXIT itself, it's probably about 1000-1500 cycles on the latest processors. I haven't measured it very recently though.

Could you explain how do you measure the cycles for VMEXIT?

Thanks,
H

Quoted 30 lines

 -- Keir
- Show quoted text -

Quoted 11 lines · Emre Can Sezer

Hi,

I've been trying to get a ballpark number on how expensive a VM EXIT is in terms of clock cycles. I'm also interested in how slow a TLB miss is. The only reference I was able to find was 13000 cycles for VM EXIT and around several hundred cycles for a TLB miss and a complete walk of page tables. Does anyone know from the top of their head or is there a reference you can share?

Thanks in advance.

Quoted 7 lines

John

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw

Re: How expensive is a VM EXIT?

Quoted 6 lines · NAHieu
Quoted 3 lines · Keir Fraser

For just the VMEXIT itself, it's probably about 1000-1500 cycles on the latest processors. I haven't measured it very recently though.

Could you explain how do you measure the cycles for VMEXIT?

RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the hypervisor on entry.

-- Keir

#6 lore raw

RE: How expensive is a VM EXIT?

Is there a good tool to look at for this -- xentrace, xenoprofile, other?

Thanks,
Ed

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Wednesday, March 04, 2009 1:46 AM
To: NAHieu
Cc: [email protected]
Subject: Re: [Xen-devel] How expensive is a VM EXIT?

Quoted 6 lines · NAHieu
Quoted 3 lines · Keir Fraser

For just the VMEXIT itself, it's probably about 1000-1500 cycles on the latest processors. I haven't measured it very recently though.

Could you explain how do you measure the cycles for VMEXIT?

RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the hypervisor on entry.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw

Re: How expensive is a VM EXIT?

Either of those can give you profiling info about common paths through the hypervisor, and time spent in the hypervisor. For the specific microbenchmark of time taken for a processor to execute a vmexit, I'd hack in custom tracing to get a precise measurement.

-- Keir

Quoted 34 lines · Ed

Is there a good tool to look at for this -- xentrace, xenoprofile, other?

Thanks,
Ed

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Keir Fraser
Sent: Wednesday, March 04, 2009 1:46 AM
To: NAHieu
Cc: [email protected]
Subject: Re: [Xen-devel] How expensive is a VM EXIT?

Quoted 7 lines · NAHieu
Quoted 3 lines · Keir Fraser

For just the VMEXIT itself, it's probably about 1000-1500 cycles on the latest processors. I haven't measured it very recently though.

Could you explain how do you measure the cycles for VMEXIT?

RDTSC in the guest immediately before triggering a VMEXIT and RDTSC in the hypervisor on entry.

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel