<?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: Process memory usage</title>
	<atom:link href="http://w-shadow.com/blog/2006/09/04/process-memory-usage/feed/" rel="self" type="application/rss+xml" />
	<link>http://w-shadow.com/blog/2006/09/04/process-memory-usage/</link>
	<description>A blog about web development, software business, and WordPress</description>
	<lastBuildDate>Wed, 16 May 2012 17:59:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Ivan</title>
		<link>http://w-shadow.com/blog/2006/09/04/process-memory-usage/comment-page-1/#comment-85099</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Fri, 03 Sep 2010 20:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/09/04/process-memory-usage/#comment-85099</guid>
		<description>Humm... Interesting but this doesn&#039;t corresponds to the PrivateWorkingSet of the TaskManager on Windows 7 (and I assume Windows Vista too). It seems that further calculations needs to be done in order to obtain the PrivateWorkingSet as detailed in here http://msdn.microsoft.com/en-us/library/aa965225(v=VS.85).aspx at the bottom: 


Private working set 

To calculate this quantity, not present in PROCESS_MEMORY_COUNTERS_EX, call QueryWorkingSet() to read all the page entries into a buffer. Then count the number of entries where PSAPI_WORKING_SET_INFORMATION::WorkingSetInfo[nI].Shared is false. Multiply that by the bytes-per-page size (SYSTEM_INFO::dwPageSize) using GetSystemInfo() to get the total private working set (which is not the same as the committed private bytes PrivateUsage. 

What would be the code implementation?</description>
		<content:encoded><![CDATA[<p>Humm&#8230; Interesting but this doesn&#8217;t corresponds to the PrivateWorkingSet of the TaskManager on Windows 7 (and I assume Windows Vista too). It seems that further calculations needs to be done in order to obtain the PrivateWorkingSet as detailed in here <a href="http://msdn.microsoft.com/en-us/library/aa965225(v=VS.85)" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa965225(v=VS.85)</a>.aspx at the bottom: </p>
<p>Private working set </p>
<p>To calculate this quantity, not present in PROCESS_MEMORY_COUNTERS_EX, call QueryWorkingSet() to read all the page entries into a buffer. Then count the number of entries where PSAPI_WORKING_SET_INFORMATION::WorkingSetInfo[nI].Shared is false. Multiply that by the bytes-per-page size (SYSTEM_INFO::dwPageSize) using GetSystemInfo() to get the total private working set (which is not the same as the committed private bytes PrivateUsage. </p>
<p>What would be the code implementation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://w-shadow.com/blog/2006/09/04/process-memory-usage/comment-page-1/#comment-219</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Fri, 26 Jan 2007 22:04:09 +0000</pubDate>
		<guid isPermaLink="false">http://w-shadow.com/blog/2006/09/04/process-memory-usage/#comment-219</guid>
		<description>Thanks for this article. Very helpful!</description>
		<content:encoded><![CDATA[<p>Thanks for this article. Very helpful!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

