about xenalyze
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi, George
I deploy a Discuz application in a VM and use jmeter to stress the application. Meanwhile I use xentrace to trace. #xentrace -D -e 0x0008f000 -T 30 trace_file_discuz.bin
Then I use xenalyze to analyze
#xenalyze --summary trace_file_discuz.bin It tells me as follows:
--- Log volume summary ---
- cpu 0 -
hvm : 1784
+-vmentry: 448 +-vmexit : 784 +-handler: 552
[...]
It seems different from what you show in your presentation 《Xenalyze Finding meaning in the chaos》。 What's wrong with it ?
I would like to see the reason, counts and cpu time for handler of each VMEXIT. I would also like to see the wait time, blocked time , cpu usage of a domain. What should I do?
I am looking forward to receiving reply from you.
Best Regards
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 15 lines · 蒋雄伟(蒋冲)
Hi, George
I deploy a Discuz application in a VM and use jmeter to stress the application. Meanwhile I use xentrace to trace. #xentrace -D -e
0x0008f000-T 30 trace_file_discuz.binThen I use xenalyze to analyze
#xenalyze --summary trace_file_discuz.bin It tells me as follows:--- Log volume summary ---
- cpu 0 -
hvm : 1784+-vmentry: 448 +-vmexit : 784 +-handler: 552
Quoted 5 lines
[...]
It seems different from what you show in your presentation 《Xenalyze Finding meaning in the chaos》。 What's wrong with it ?
I would like to see the reason, counts and cpu time for handler of each VMEXIT. I would also like to see the wait time, blocked time , cpu usage of a domain. What should I do?
The log volume summary is just the first part of the output; normally the summary of stuff by domain is below that.
Can you please include the full output?
Thanks,
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
$xenalyze --summary trace_file_discuz.bin
Using VMX hardware-assisted virtualization.scan_for_new_pcpu: Activating pcpu 10 at offset 0
Creating vcpu 10 for dom 32768scan_for_new_pcpu: Activating pcpu 21 at offset 42196 Creating vcpu 21 for dom 32768scan_for_new_pcpu: Activating pcpu 22 at offset 43516 Creating vcpu 22 for dom 32768scan_for_new_pcpu: Activating pcpu 24 at offset 44664 Creating vcpu 24 for dom 32768init_pcpus: through first trace write, done for now.
Detected off-by-one bug; relaxing expectationshvm_generic_postprocess: Strange, exit 2c(APIC_ACCESS) missing a handlerscan_for_new_pcpu: Activating pcpu 7 at offset 3360952 Creating vcpu 7 for dom 32768process_cpu_change: Activating pcpu 11 at offset 3396528 Creating vcpu 11 for dom 32768process_cpu_change: Activating pcpu 16 at offset 4685392 Creating vcpu 16 for dom 32768process_cpu_change: Activating pcpu 25 at offset 4767196 Creating vcpu 25 for dom 32768process_cpu_change: Activating pcpu 23 at offset 8820852 Creating vcpu 23 for dom 32768process_cpu_change: Activating pcpu 26 at offset 10467560 Creating vcpu 26 for dom 32768process_cpu_change: Activating pcpu 27 at offset 13377152 Creating vcpu 27 for dom 32768process_cpu_change: Activating pcpu 0 at offset 14202228 Creating vcpu 0 for dom 32768process_cpu_change: Activating pcpu 12 at offset 14204024 Creating vcpu 12 for dom 32768process_cpu_change: Activating pcpu 17 at offset 14762404 Creating vcpu 17 for dom 32768process_cpu_change: Activating pcpu 28 at offset 14771148 Creating vcpu 28 for dom 32768scan_for_new_pcpu: Activating pcpu 1 at offset 14776680 Creating vcpu 1 for dom 32768process_cpu_change: Activating pcpu 4 at offset 14779148 Creating vcpu 4 for dom 32768process_cpu_change: Activating pcpu 13 at offset 14825668 Creating vcpu 13 for dom 32768process_cpu_change: Activating pcpu 18 at offset 14938016 Creating vcpu 18 for dom 32768process_cpu_change: Activating pcpu 20 at offset 14941080 Creating vcpu 20 for dom 32768process_cpu_change: Activating pcpu 29 at offset 14954728 Creating vcpu 29 for dom 32768read_record: read returned zero, deactivating pcpu 10deactivate_pcpu: setting d32768v10 to state LOSThvm_generic_postprocess: Strange, exit 0(EXCEPTION_NMI) missing a handlerhvm_generic_postprocess: HVM evt 0 in 2c and 0!read_record: read returned zero, deactivating pcpu 7deactivate_pcpu: setting d32768v7 to state LOSTread_record: read returned zero, deactivating pcpu 11deactivate_pcpu: setting d32768v11 to state LOSTread_record: read returned zero, deactivating pcpu 16deactivate_pcpu: setting d32768v16 to state LOSTread_record: read returned zero, deactivating pcpu 21deactivate_pcpu: setting d32768v21 to state LOSTread_record: read returned zero, deactivating pcpu 22deactivate_pcpu: setting d32768v22 to state LOSTread_record: read returned zero, deactivating pcpu 26deactivate_pcpu: setting d32768v26 to state LOSTread_record: read returned zero, deactivating pcpu 27deactivate_pcpu: setting d32768v27 to state LOSTread_record: read returned zero, deactivating pcpu 0deactivate_pcpu: setting d32768v0 to state LOSTread_record: read returned zero, deactivating pcpu 12deactivate_pcpu: setting d32768v12 to state LOSTread_record: read returned zero, deactivating pcpu 17deactivate_pcpu: setting d32768v17 to state LOSTread_record: read returned zero, deactivating pcpu 28deactivate_pcpu: setting d32768v28 to state LOSTread_record: read returned zero, deactivating pcpu 1deactivate_pcpu: setting d32768v1 to state LOSTread_record: read returned zero, deactivating pcpu 4deactivate_pcpu: setting d32768v4 to state LOSTread_record: read returned zero, deactivating pcpu 13deactivate_pcpu: setting d32768v13 to state LOSTread_record: read returned zero, deactivating pcpu 18deactivate_pcpu: setting d32768v18 to state LOSTread_record: read returned zero, deactivating pcpu 20deactivate_pcpu: setting d32768v20 to state LOSTread_record: read returned zero, deactivating pcpu 25deactivate_pcpu: setting d32768v25 to state LOSTread_record: read returned zero, deactivating pcpu 23deactivate_pcpu: setting d32768v23 to state LOSTread_record: read returned zero, deactivating pcpu 24deactivate_pcpu: setting d32768v24 to state LOSTread_record: read returned zero, deactivating pcpu 29deactivate_pcpu: setting d32768v29 to state LOSTdeactivate_pcpu: Setting max_active_pcpu to -1
Total time: 32.49 seconds (using cpu speed 2.40 GHz)
--- Log volume summary ---
- cpu 0 -
hvm : 1784
+-vmentry: 448 +-vmexit : 784 +-handler: 552 - cpu 1 - hvm : 2456 +-vmentry: 688 +-vmexit : 1204 +-handler: 564 - cpu 4 - hvm : 31220 +-vmentry: 8544 +-vmexit : 14952 +-handler: 7724 - cpu 7 - hvm : 22708 +-vmentry: 6240 +-vmexit : 10920 +-handler: 5548 - cpu 10 - gen : 336 hvm : 2925480 +-vmentry: 746048 +-vmexit : 1305612 +-handler: 873820 - cpu 11 - gen : 104 hvm : 1159676 +-vmentry: 297584 +-vmexit : 520772 +-handler: 341320 - cpu 12 - gen : 48 hvm : 453336 +-vmentry: 116240 +-vmexit : 203420 +-handler: 133676 - cpu 13 - gen : 4 hvm : 99404 +-vmentry: 24784 +-vmexit : 43372 +-handler: 31248 - cpu 16 - hvm : 7092 +-vmentry: 1728 +-vmexit : 3024 +-handler: 2340 - cpu 17 - hvm : 1536 +-vmentry: 432 +-vmexit : 756 +-handler: 348 - cpu 18 - hvm : 3052 +-vmentry: 752 +-vmexit : 1316 +-handler: 984 - cpu 20 - hvm : 5652 +-vmentry: 1344 +-vmexit : 2352 +-handler: 1956 - cpu 21 - gen : 44 hvm : 439156 +-vmentry: 122656 +-vmexit : 214648 +-handler: 101852 - cpu 22 - gen : 108 hvm : 634364 +-vmentry: 178096 +-vmexit : 311668 +-handler: 144600 - cpu 23 - gen : 56 hvm : 489208 +-vmentry: 136288 +-vmexit : 238504 +-handler: 114416 - cpu 24 - gen : 396 hvm : 3937836 +-vmentry: 1010016 +-vmexit : 1767528 +-handler: 1160292 - cpu 25 - gen : 148 hvm : 1747160 +-vmentry: 453488 +-vmexit : 793604 +-handler: 500068 - cpu 26 - gen : 220 hvm : 2588608 +-vmentry: 661024 +-vmexit : 1156792 +-handler: 770792 - cpu 27 - gen : 112 hvm : 745320 +-vmentry: 189632 +-vmexit : 331856 +-handler: 223832 - cpu 28 - hvm : 13316 +-vmentry: 3712 +-vmexit : 6496 +-handler: 3108 - cpu 29 - gen : 348 hvm : 3038412 +-vmentry: 771680 +-vmexit : 1350412 +-handler: 916320
This is the full output.
-----邮件原件-----
发件人: George Dunlap [mailto:[email protected]] 发送时间: 2015年5月8日 1:58
收件人: 蒋雄伟(蒋冲)
抄送: [email protected]; [email protected] 主题: Re: 答复: about xenalyze
Quoted 15 lines · 蒋雄伟(蒋冲)
Hi, George
I deploy a Discuz application in a VM and use jmeter to stress the application. Meanwhile I use xentrace to trace. #xentrace -D -e
0x0008f000-T 30 trace_file_discuz.binThen I use xenalyze to analyze
#xenalyze --summary trace_file_discuz.bin It tells me as follows:--- Log volume summary ---
- cpu 0 -
hvm : 1784+-vmentry: 448 +-vmexit : 784 +-handler: 552
Quoted 5 lines
[...]
It seems different from what you show in your presentation 《Xenalyze Finding meaning in the chaos》。 What's wrong with it ?
I would like to see the reason, counts and cpu time for handler of each VMEXIT. I would also like to see the wait time, blocked time , cpu usage of a domain. What should I do?
The log volume summary is just the first part of the output; normally the summary of stuff by domain is below that.
Can you please include the full output?
Thanks,
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · 蒋雄伟(蒋冲)
$xenalyze --summary trace_file_discuz.bin
[snip]
Quoted 1 line
This is the full output.
Don't top-post please.
I probably should have said "attach the full output", rather than including it inline.
So actually -- it looks like you've set the trace to only collect HVM-related tracing information ("-e 0x8f000" from your command-line below); but to get the output that you want (with the per-domain and per-vcpu summaries), it also needs the scheduling traces, so that it knows which vcpu is running where.
Can you try this again with "-e 0xaf000" and see what you get?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
I try again with "-e 0xaf000", and run xenalyze --summary. The attached is the output.
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 George Dunlap 发送时间: 2015年5月11日 18:05
收件人: 蒋雄伟(蒋冲)
抄送: [email protected]; [email protected] 主题: Re: [Xen-devel] 答复: 答复: about xenalyze
Quoted 1 line · 蒋雄伟(蒋冲)
$xenalyze --summary trace_file_discuz.bin
[snip]
Quoted 1 line
This is the full output.
Don't top-post please.
I probably should have said "attach the full output", rather than including it inline.
So actually -- it looks like you've set the trace to only collect HVM-related tracing information ("-e 0x8f000" from your command-line below); but to get the output that you want (with the per-domain and per-vcpu summaries), it also needs the scheduling traces, so that it knows which vcpu is running where.
Can you try this again with "-e 0xaf000" and see what you get?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · 蒋雄伟(蒋冲)
I try again with "-e
0xaf000", and run xenalyze --summary. The attached is the output.
Again, please don't top-post: configure your mailer to quote properly, and reply in-line (as I am doing now).
So it looks like now it works. :-)
You can find a bit about what the output is from the xenalyze.html wiki inside the repo. In particular, look for "Quickstart - Generate a summary".
-George
Quoted 21 lines
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 George Dunlap 发送时间: 2015年5月11日 18:05
收件人: 蒋雄伟(蒋冲)
抄送: [email protected]; [email protected] 主题: Re: [Xen-devel] 答复: 答复: about xenalyzeQuoted 1 line · 蒋雄伟(蒋冲)
$xenalyze --summary trace_file_discuz.bin
[snip]
Quoted 1 line
This is the full output.
Don't top-post please.
I probably should have said "attach the full output", rather than including it inline.
So actually -- it looks like you've set the trace to only collect HVM-related tracing information ("-e
0x8f000" from your command-line below); but to get the output that you want (with the per-domain and per-vcpu summaries), it also needs the scheduling traces, so that it knows which vcpu is running where.
Quoted 9 lines
Can you try this again with "-e
0xaf000" and see what you get?-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
George,
given that this question is coming up occasionally, I was going to create a wiki page. I can't find xenalyze.html and xenalyse on xenbuts though
I can find
* https://github.com/nikmis/xentrace-analysis - but that does not contain the html file and is probably a different tool
* https://blog.xenproject.org/2012/09/27/tracing-with-xentrace-and-xenalyze/ - but the link to the repos - aka http://xenbits.xensource.com/ext/xenalyze.hg - are broken
* https://github.com/PennPanda/xen-analyze - not sure whether this is the master repo
Could you send me a few pointers?
I you could point me to the right locations, I will put together a wiki page
Lars
Quoted 8 lines · George Dunlap
Quoted 1 line · 蒋雄伟(蒋冲)
I try again with "-e
0xaf000", and run xenalyze --summary. The attached is the output.Again, please don't top-post: configure your mailer to quote properly, and reply in-line (as I am doing now).
Quoted 7 lines
So it looks like now it works. :-)
You can find a bit about what the output is from the xenalyze.html wiki inside the repo. In particular, look for "Quickstart - Generate a summary".
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 11 lines · Lars Kurth
George,
given that this question is coming up occasionally, I was going to create a wiki page. I can't find xenalyze.html and xenalyse on xenbuts though
I can find
* https://github.com/nikmis/xentrace-analysis - but that does not contain the html file and is probably a different tool
* https://blog.xenproject.org/2012/09/27/tracing-with-xentrace-and-xenalyze/ - but the link to the repos - aka http://xenbits.xensource.com/ext/xenalyze.hg - are broken
* https://github.com/PennPanda/xen-analyze - not sure whether this is the master repoCould you send me a few pointers?
It's this file:
http://xenbits.xensource.com/ext/xenalyze/file/24308507be1d/xenalyze.html
You have to download the repo and open the said file in a browser. It's some kind of self-contained javascript wiki.
Regards,
Dario
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Sorry, it seems that my mailer doesn't have this function.
My question is :
1、how is the blocked time of a domain computed? And how is the blocked time of a vcpu computed ?
2、In Runstates, there are many terms , such as partial run, full run, partial contention, concurrency_hazard, full contention, wake, preempt,lost。 What do they mean?
3、in log volume summary, why are there so many hvms ? in fact there are only three hvm guest and one domain0 in this machine. Also, the terms such as gen, sched, verbose, hvm, handler means what ?
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 George Dunlap 发送时间: 2015年5月12日 17:31
收件人: 蒋雄伟(蒋冲)
抄送: [email protected]; [email protected] 主题: Re: [Xen-devel] 答复: 答复: 答复: about xenalyze
Quoted 1 line · On Tue, May 12, 2015 at 3:18 AM, 蒋雄伟(蒋冲) <…
I try again with "-e
0xaf000", and run xenalyze --summary. The attached is the output.
Again, please don't top-post: configure your mailer to quote properly, and reply in-line (as I am doing now).
So it looks like now it works. :-)
You can find a bit about what the output is from the xenalyze.html wiki inside the repo. In particular, look for "Quickstart - Generate a summary".
-George
Quoted 50 lines
-----邮件原件-----
发件人: <mailto:[email protected]> [email protected] [ <mailto:[email protected]> mailto:[email protected]] 代表 George Dunlap
发送时间: 2015年5月11日 18:05
收件人: 蒋雄伟(蒋冲)
抄送: <mailto:[email protected]> [email protected]; <mailto:[email protected]> [email protected]
主题: Re: [Xen-devel] 答复: 答复: about xenalyze
Quoted 1 line · On Fri, May 8, 2015 at 3:41 AM, 蒋雄伟(蒋冲) <…
$xenalyze --summary trace_file_discuz.bin
[snip]
Quoted 1 line
This is the full output.
Don't top-post please.
I probably should have said "attach the full output", rather than including it inline.
So actually -- it looks like you've set the trace to only collect HVM-related tracing information ("-e
0x8f000" from your command-line below); but to get the output that you want (with the per-domain and per-vcpu summaries), it also needs the scheduling traces, so that it knows which vcpu is running where.Can you try this again with "-e
0xaf000" and see what you get?-George
Quoted 9 lines
_______________________________________________
Xen-devel mailing list
<mailto:[email protected]> [email protected]
<http://lists.xen.org/xen-devel> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Each number means what ?
Each number means what ?
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 George Dunlap 发送时间: 2015年5月11日 18:05
收件人: 蒋雄伟(蒋冲)
抄送: [email protected]; [email protected] 主题: Re: [Xen-devel] 答复: 答复: about xenalyze
Quoted 1 line · On Fri, May 8, 2015 at 3:41 AM, 蒋雄伟(蒋冲) <…
$xenalyze --summary trace_file_discuz.bin
[snip]
Quoted 1 line
This is the full output.
Don't top-post please.
I probably should have said "attach the full output", rather than including it inline.
So actually -- it looks like you've set the trace to only collect HVM-related tracing information ("-e 0x8f000" from your command-line below); but to get the output that you want (with the per-domain and per-vcpu summaries), it also needs the scheduling traces, so that it knows which vcpu is running where.
Can you try this again with "-e 0xaf000" and see what you get?
-George
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 2 lines · 蒋雄伟(蒋冲)
Again, don't top-post, reply inline, don't use HTML emails and (and that's new) avoid posting images on the mailing list, please.
Quoted 2 lines
Each number means what ?
Have you looked at the xenalyze.html file, as George said in his last email (and as I said myself at least 3 times?)
Look for the section "Quickstart - Generate a summary".
Regards,
Dario
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel