<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tracing with Xentrace and Xenalyze</title>
	<atom:link href="http://blog.xen.org/index.php/2012/09/27/tracing-with-xentrace-and-xenalyze/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xen.org/index.php/2012/09/27/tracing-with-xentrace-and-xenalyze/</link>
	<description>Community Blog</description>
	<lastBuildDate>Mon, 13 May 2013 10:17:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dariof</title>
		<link>http://blog.xen.org/index.php/2012/09/27/tracing-with-xentrace-and-xenalyze/comment-page-1/#comment-13183</link>
		<dc:creator>dariof</dc:creator>
		<pubDate>Thu, 10 Jan 2013 16:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xen.org/?p=5174#comment-13183</guid>
		<description>Ok, the blog killed the two TABs I was talking about... :-( Here&#039;s a link to an hopefully more &#039;ready-to-be-pasted-somewhere&#039; version of the gnuplot script:

http://pastebin.com/pCL3CBx2</description>
		<content:encoded><![CDATA[<p>Ok, the blog killed the two TABs I was talking about&#8230; <img src='http://blog.xen.org/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />  Here&#8217;s a link to an hopefully more &#8216;ready-to-be-pasted-somewhere&#8217; version of the gnuplot script:</p>
<p><a href="http://pastebin.com/pCL3CBx2" rel="nofollow">http://pastebin.com/pCL3CBx2</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dariof</title>
		<link>http://blog.xen.org/index.php/2012/09/27/tracing-with-xentrace-and-xenalyze/comment-page-1/#comment-13182</link>
		<dc:creator>dariof</dc:creator>
		<pubDate>Thu, 10 Jan 2013 16:38:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xen.org/?p=5174#comment-13182</guid>
		<description>As someone asked some more details about how to produce the graph at the bottom of the post, here they come.

First of all, you need to know (or be able to figure out somehow), the domain ID of the VM(s) you want to plot the vCPUs of. Let&#039;s say we know it, and it was domain 16. We then do:
$ xenalyze --scatterplot-pcpu trace_file.bin &#124; grep ^16v0 &gt; d16v0.txt
$ xenalyze --scatterplot-pcpu trace_file.bin &#124; grep ^16v1 &gt; d16v1.txt
Each file will contain something like this:
$ cat d16v0.txt
16v0 0.125842420 1
16v0 0.125983122 1
16v0 0.125983122 1
16v0 0.126210870 1
16v0 0.126210870 1
...
Now, to plot this, the following gnuplot script should do:
$ cat d16_vcpus.gp
set term png enhanced size 1024, 768 font &#039;Times-Roman&#039;
set output &#039;d16_vcpus.png&#039;
set title &#039;vCPU on pCPU execution&#039;
set grid
set key outside bottom center horizontal
set xrange [0:]
set yrange [0:16]
set xtics 100
set ytics 16
set xlabel &#039;pCPU&#039;
set ylabel &#039;Time&#039;
plot \
        &#039;&lt; paste d16v0.txt d16v1.txt&#039; u 2:3 ti &#039;d16v0&#039; w p lw 2, \
        &#039;&lt; paste d16v0.txt d16v1.txt&#039; u 5:6 ti &#039;d16v1&#039; w p lw 2
$ gnuplot d16_vcpus.gp &amp;&amp; eog ./d16_vcpus.png

Adding more VMs and/or vCPUs should be trivial at this poit... Just be careful that, the last two lines of the gnuplot script _must_ start with TABs, or gnuplot will complain about it (or so I recall :-D).</description>
		<content:encoded><![CDATA[<p>As someone asked some more details about how to produce the graph at the bottom of the post, here they come.</p>
<p>First of all, you need to know (or be able to figure out somehow), the domain ID of the VM(s) you want to plot the vCPUs of. Let&#8217;s say we know it, and it was domain 16. We then do:<br />
$ xenalyze &#8211;scatterplot-pcpu trace_file.bin | grep ^16v0 > d16v0.txt<br />
$ xenalyze &#8211;scatterplot-pcpu trace_file.bin | grep ^16v1 > d16v1.txt<br />
Each file will contain something like this:<br />
$ cat d16v0.txt<br />
16v0 0.125842420 1<br />
16v0 0.125983122 1<br />
16v0 0.125983122 1<br />
16v0 0.126210870 1<br />
16v0 0.126210870 1<br />
&#8230;<br />
Now, to plot this, the following gnuplot script should do:<br />
$ cat d16_vcpus.gp<br />
set term png enhanced size 1024, 768 font &#8216;Times-Roman&#8217;<br />
set output &#8216;d16_vcpus.png&#8217;<br />
set title &#8216;vCPU on pCPU execution&#8217;<br />
set grid<br />
set key outside bottom center horizontal<br />
set xrange [0:]<br />
set yrange [0:16]<br />
set xtics 100<br />
set ytics 16<br />
set xlabel &#8216;pCPU&#8217;<br />
set ylabel &#8216;Time&#8217;<br />
plot \<br />
        &#8216;< paste d16v0.txt d16v1.txt&#8217; u 2:3 ti &#8216;d16v0&#8242; w p lw 2, \<br />
        &#8216;< paste d16v0.txt d16v1.txt&#8217; u 5:6 ti &#8216;d16v1&#8242; w p lw 2<br />
$ gnuplot d16_vcpus.gp &#038;&#038; eog ./d16_vcpus.png</p>
<p>Adding more VMs and/or vCPUs should be trivial at this poit&#8230; Just be careful that, the last two lines of the gnuplot script _must_ start with TABs, or gnuplot will complain about it (or so I recall <img src='http://blog.xen.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> ).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced (Requested URI is rejected)
Object Caching 261/263 objects using disk: basic

Served from: blog.xen.org @ 2013-05-25 03:19:21 -->