<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hi Peter, in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818513#M2180</link>
    <description>&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I am also interested in this measure. I have tried a Nehalem general exploration. On the screen where you push the "Start" button it lists "DTLB_MISSES.ANY" in the event table. However, after having performed the analysis, I don't find a DTLB measure anywhere in the results table. Can you help me how to access that information?&lt;/P&gt;

&lt;P&gt;Regards, Hagen&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2014 07:56:54 GMT</pubDate>
    <dc:creator>Hagen_G_</dc:creator>
    <dc:date>2014-03-19T07:56:54Z</dc:date>
    <item>
      <title>Context Switch</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818511#M2178</link>
      <description>&lt;P&gt;Is it possible to observe how many context switches were performed per run/per thread/per core with &lt;EM&gt;Intel VTune Amplifier XE for Windows&lt;/EM&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Ami&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jan 2011 21:37:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818511#M2178</guid>
      <dc:creator>Ami_Marowka</dc:creator>
      <dc:date>2011-01-23T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Context Switch</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818512#M2179</link>
      <description>I suggest you to use L1 DTLB misses event to measure small page fault, and L2DTLB misses event to measure large page fault.&lt;BR /&gt;&lt;BR /&gt;Regards, Peter</description>
      <pubDate>Mon, 24 Jan 2011 08:06:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818512#M2179</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2011-01-24T08:06:33Z</dc:date>
    </item>
    <item>
      <title>Hi Peter,</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818513#M2180</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I am also interested in this measure. I have tried a Nehalem general exploration. On the screen where you push the "Start" button it lists "DTLB_MISSES.ANY" in the event table. However, after having performed the analysis, I don't find a DTLB measure anywhere in the results table. Can you help me how to access that information?&lt;/P&gt;

&lt;P&gt;Regards, Hagen&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:56:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818513#M2180</guid>
      <dc:creator>Hagen_G_</dc:creator>
      <dc:date>2014-03-19T07:56:54Z</dc:date>
    </item>
    <item>
      <title>I think that number of</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818514#M2181</link>
      <description>&lt;P&gt;I think that number of context switches is not measured by any hardware counter.You can include in profiling OS system files(ntoskrnl.exe) and look for NtSwapContext function on the top every thread's stack.Of course it will give a very crude estimation of exact number of context switches.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 08:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818514#M2181</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-19T08:10:00Z</dc:date>
    </item>
    <item>
      <title>@Ami</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818515#M2182</link>
      <description>&lt;P&gt;@Ami&lt;/P&gt;

&lt;P&gt;Xperf tool will give an exact number of context switches.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 09:40:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818515#M2182</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-19T09:40:52Z</dc:date>
    </item>
    <item>
      <title>Hey, guys!</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818516#M2183</link>
      <description>&lt;P&gt;Hey, guys!&lt;/P&gt;

&lt;P&gt;Just check out the documentation,&amp;nbsp;&lt;A href="http://software.intel.com/en-us/node/496877"&gt;here&lt;/A&gt; and &lt;A href="http://software.intel.com/en-us/node/496867"&gt;here&lt;/A&gt;! ;)&lt;/P&gt;

&lt;HEADER style="margin-left: 10px; margin-right: 40px;"&gt;
	&lt;H1 id="page-title"&gt;Synchronization Context Switches&lt;/H1&gt;
&lt;/HEADER&gt;

&lt;DIV id="content"&gt;
	&lt;DIV class="region region-content" style="position: relative;"&gt;
		&lt;DIV class="block block-system" id="block-system-main" style="margin: 0px;"&gt;
			&lt;DIV class="block-inner clearfix" style="margin-right: 40px;"&gt;
				&lt;DIV class="block-content content"&gt;
					&lt;ARTICLE about="/en-us/node/496877" class="article article-type-book clearfix" id="article-496877" role="article" typeof="sioc:Item foaf:Document"&gt;
						&lt;DIV class="article-content"&gt;
							&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
								&lt;DIV class="field-items"&gt;
									&lt;DIV class="field-item even" property="content:encoded"&gt;
										&lt;DIV class="topic-wrapper" id="729C6670-B016-406D-9EF0-E0EED6F2D2C0"&gt;
											&lt;P style="margin-bottom: 1em;"&gt;&lt;EM&gt;Synchronization Context Switches&lt;/EM&gt;&amp;nbsp;metric measures the number of times a thread was switched off a processor because of making an explicit call to thread synchronization API. For example, in case of trying to wait on a synchronization object already occupied by another thread, the number of synchronization context switches will characterize the level of contention between threads.&lt;/P&gt;

											&lt;P style="margin-bottom: 1em;"&gt;This metric is available in the Hardware Event Counts&amp;nbsp;&lt;A href="http://software.intel.com/node/ca3b50c6-6c61-40f7-a622-44faa60d24e9"&gt;viewpoint&lt;/A&gt;&amp;nbsp;if you enabled the&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;Collect stacks&lt;/SPAN&gt;&amp;nbsp;option during the hardware event-based sampling analysis configuration.&lt;/P&gt;
										&lt;/DIV&gt;
									&lt;/DIV&gt;
								&lt;/DIV&gt;
							&lt;/DIV&gt;
						&lt;/DIV&gt;
					&lt;/ARTICLE&gt;
				&lt;/DIV&gt;
			&lt;/DIV&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;DIV&gt;
	&lt;HEADER style="margin-left: 10px; margin-right: 40px;"&gt;
		&lt;H1 id="page-title"&gt;Preemption Context Switches&lt;/H1&gt;
	&lt;/HEADER&gt;

	&lt;DIV id="content"&gt;
		&lt;DIV class="region region-content" style="position: relative;"&gt;
			&lt;DIV class="block block-system" id="block-system-main" style="margin: 0px;"&gt;
				&lt;DIV class="block-inner clearfix" style="margin-right: 40px;"&gt;
					&lt;DIV class="block-content content"&gt;
						&lt;ARTICLE about="/en-us/node/496867" class="article article-type-book clearfix" id="article-496867" role="article" typeof="sioc:Item foaf:Document"&gt;
							&lt;DIV class="article-content"&gt;
								&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
									&lt;DIV class="field-items"&gt;
										&lt;DIV class="field-item even" property="content:encoded"&gt;
											&lt;DIV class="topic-wrapper" id="0EC0A2D9-16ED-4E92-8E57-E0B758A83E57"&gt;
												&lt;P style="margin-bottom: 1em;"&gt;&lt;EM&gt;Preemption Context Switches&lt;/EM&gt;&amp;nbsp;metric measures a number of times the operating system task scheduler switched a thread off a processor to run another, higher-priority thread.&lt;/P&gt;

												&lt;P style="margin-bottom: 1em;"&gt;This metric is available in the Hardware Event Counts&amp;nbsp;&lt;A href="http://software.intel.com/node/ca3b50c6-6c61-40f7-a622-44faa60d24e9"&gt;viewpoint&lt;/A&gt;&amp;nbsp;if you enabled the&amp;nbsp;&lt;SPAN style="font-weight: 700;"&gt;Collect stacks&lt;/SPAN&gt;&amp;nbsp;option during the hardware event-based sampling analysis configuration.&lt;/P&gt;
											&lt;/DIV&gt;
										&lt;/DIV&gt;
									&lt;/DIV&gt;
								&lt;/DIV&gt;
							&lt;/DIV&gt;
						&lt;/ARTICLE&gt;
					&lt;/DIV&gt;
				&lt;/DIV&gt;
			&lt;/DIV&gt;
		&lt;/DIV&gt;
	&lt;/DIV&gt;
&lt;/DIV&gt;

&lt;P&gt;Then view the results and use the grouping control:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="contextswitches.PNG"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10201iE71480951C4A0512/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="contextswitches.PNG" alt="contextswitches.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 21:35:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818516#M2183</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2014-03-19T21:35:00Z</dc:date>
    </item>
    <item>
      <title>@MrAnderson</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818517#M2184</link>
      <description>&lt;P&gt;@MrAnderson&lt;/P&gt;

&lt;P&gt;Thank you for that valuable information.Now I can see&amp;nbsp;context switching count&amp;nbsp;from within VTune without the need to use additional tools.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 07:02:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818517#M2184</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-03-20T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Quote:Hagen G. wrote:</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818518#M2185</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hagen G. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi Peter,&lt;/P&gt;

&lt;P&gt;I am also interested in this measure. I have tried a Nehalem general exploration. On the screen where you push the "Start" button it lists "DTLB_MISSES.ANY" in the event table. However, after having performed the analysis, I don't find a DTLB measure anywhere in the results table. Can you help me how to access that information?&lt;/P&gt;

&lt;P&gt;Regards, Hagen&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;General exploration analysis cannot include all events...you can use command line directly like as below, then use amplxe-gui to open result.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;amplxe-cl -collect-with runsa -knob event-config=CPU_CLK_UNHALTED.CORE,&lt;/CODE&gt;DTLB_MISSES.ANY&amp;nbsp;&lt;CODE&gt;-- your-app&lt;/CODE&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:24:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818518#M2185</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2014-03-20T09:24:33Z</dc:date>
    </item>
    <item>
      <title>I think Hagen G. meant that</title>
      <link>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818519#M2186</link>
      <description>&lt;P&gt;I think Hagen G. meant that the event *is* collected by GE, but is not displayed in the table.&lt;/P&gt;

&lt;P&gt;@Hagen. B, this may be a viewpoint issue. &amp;nbsp;By default, the General Exploration analysis type uses the General Exploration viewpoint, attempting to highlight potential efficiency issues in your code. &amp;nbsp;If you want to look at the actual events, you can switch to either the Hardware Event Counts or Hardware Event Sample Counts viewpoint. &amp;nbsp;For example,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="hardwareeventcounts.PNG"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/10202iBAE5ED3AA5F6F7AE/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="hardwareeventcounts.PNG" alt="hardwareeventcounts.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 21:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Context-Switch/m-p/818519#M2186</guid>
      <dc:creator>David_A_Intel1</dc:creator>
      <dc:date>2014-03-20T21:34:00Z</dc:date>
    </item>
  </channel>
</rss>

