<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: too many page faults</title>
      <link>http://ask.metafilter.com/73705/too-many-page-faults/</link>
      <description>Comments on Ask MetaFilter post too many page faults</description>
	  	  <pubDate>Fri, 12 Oct 2007 15:55:43 -0800</pubDate>
      <lastBuildDate>Fri, 12 Oct 2007 15:55:43 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: too many page faults</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults</link>	
  	<description>Too many XP page faults? I have a 4G quad core extreme XP pro running a program that the performance monitor tells me needs about 100-200M RAM. This is the only thing I am running on the machine. For some reason it page faults like mad (200,000/second). I&apos;ve run the same program on other (weaker) machines and it hardly pages. Why is this happening? What can I do?</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.73705</guid>
  	<pubDate>Fri, 12 Oct 2007 15:47:16 -0800</pubDate>
  	<dc:creator>blueyellow</dc:creator>
	
	<category>virtualmemory</category>
	
	<category>pagefault</category>
	
	<category>paging</category>
	
	<category>xp</category>
	
</item>
<item>
  	<title>By: aubilenon</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1096436</link>	
  	<description>See what happens if you set the affinity, limiting the program to use just one core.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1096436</guid>
  	<pubDate>Fri, 12 Oct 2007 15:55:43 -0800</pubDate>
  	<dc:creator>aubilenon</dc:creator>
</item>
<item>
  	<title>By: Malor</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1096523</link>	
  	<description>Make sure you have a page file that&apos;s bigger than RAM.  8g probably wouldn&apos;t hurt any, if you&apos;ve got the space.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1096523</guid>
  	<pubDate>Fri, 12 Oct 2007 18:23:45 -0800</pubDate>
  	<dc:creator>Malor</dc:creator>
</item>
<item>
  	<title>By: blueyellow</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1096575</link>	
  	<description>Thanks, I played with the affinity and it didn&apos;t seem to make a difference.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1096575</guid>
  	<pubDate>Fri, 12 Oct 2007 19:40:58 -0800</pubDate>
  	<dc:creator>blueyellow</dc:creator>
</item>
<item>
  	<title>By: Freaky</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1096831</link>	
  	<description>What is the application doing?  Heavy IO to files which otherwise fit in cache, or what?  It&apos;s clearly not doing much in the way of swapping; 200,000 pages is a shade under 800MB, an unlikely figure to be hitting the disk, but might be related to memory mapping cached files in and out of the process.  Less beefy systems might just not have the data cached and thus are just copying the pages instead of playing about with page tables.&lt;br&gt;
&lt;br&gt;
Is this actually impacting performance, or are you just worried about the big numbers in task manager?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1096831</guid>
  	<pubDate>Sat, 13 Oct 2007 09:12:27 -0800</pubDate>
  	<dc:creator>Freaky</dc:creator>
</item>
<item>
  	<title>By: blueyellow</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1096890</link>	
  	<description>There is a clear performance hit. I agree that its mostly soft page faults. The application is doing some I/O but not much on the order of reading 1G/20 minutes and writing 10M/20 minutes.  Following is what the memory footprint looks like on the machine for this process:&lt;br&gt;
&lt;br&gt;
MemMon - 0:31:00&lt;br&gt;
    PageFaults       : 188485878&lt;br&gt;
    PeakWSSize       : 84308K     WorkingSetSize: 73592K&lt;br&gt;
    PeakPagedPool    :    63K     PagedPool     :    61K&lt;br&gt;
    PeakNonPagedPool :    25K     NonPagedPool  :     7K&lt;br&gt;
    PeakPagefile     : 87520K     Pagefile      : 77208K&lt;br&gt;
MemMon - 0:32:00&lt;br&gt;
    PageFaults       : 193073963&lt;br&gt;
    PeakWSSize       : 84308K     WorkingSetSize: 80976K&lt;br&gt;
    PeakPagedPool    :    63K     PagedPool     :    61K&lt;br&gt;
    PeakNonPagedPool :    26K     NonPagedPool  :     7K&lt;br&gt;
    PeakPagefile     : 87520K     Pagefile      : 83184K&lt;br&gt;
&lt;br&gt;
Running the same process on a different machine looks like this (notice the difference in faults):&lt;br&gt;
&lt;br&gt;
MemMon - 0:02:00&lt;br&gt;
    PageFaults       :  36164&lt;br&gt;
    PeakWSSize       :  94120K     WorkingSetSize:  65256K&lt;br&gt;
    PeakPagedPool    :    226K     PagedPool     :    225K&lt;br&gt;
    PeakNonPagedPool :     31K     NonPagedPool  :      7K&lt;br&gt;
    PeakPagefile     : 403328K     Pagefile      : 135032K&lt;br&gt;
MemMon - 0:03:00&lt;br&gt;
    PageFaults       :  41231&lt;br&gt;
    PeakWSSize       :  94120K     WorkingSetSize:  68752K&lt;br&gt;
    PeakPagedPool    :    226K     PagedPool     :    225K&lt;br&gt;
    PeakNonPagedPool :     31K     NonPagedPool  :      7K&lt;br&gt;
    PeakPagefile     : 403328K     Pagefile      : 138284K</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1096890</guid>
  	<pubDate>Sat, 13 Oct 2007 10:37:50 -0800</pubDate>
  	<dc:creator>blueyellow</dc:creator>
</item>
<item>
  	<title>By: Freaky</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1097093</link>	
  	<description>What happens if you disable half your memory?  /MAXMEM=2048 in boot.ini (configurable from msconfig.exe).&lt;br&gt;
&lt;br&gt;
How much swap do you have configured?&lt;br&gt;
&lt;br&gt;
What&apos;s System Properties -&amp;gt; Advanced -&amp;gt; Performance -&amp;gt; Advanced -&amp;gt; Memory usage set to?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1097093</guid>
  	<pubDate>Sat, 13 Oct 2007 18:08:46 -0800</pubDate>
  	<dc:creator>Freaky</dc:creator>
</item>
<item>
  	<title>By: Lanark</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1097286</link>	
  	<description>This sounds like a corrupt pagefile, try deleting and re-creating it</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1097286</guid>
  	<pubDate>Sun, 14 Oct 2007 04:00:39 -0800</pubDate>
  	<dc:creator>Lanark</dc:creator>
</item>
<item>
  	<title>By: Malor</title>
  	<link>http://ask.metafilter.com/73705/too-many-page-faults#1097313</link>	
  	<description>This could be your problem:&lt;br&gt;
&lt;br&gt;
First machine:&lt;br&gt;
&lt;i&gt;PeakPagefile : 87520K Pagefile : 77208K&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Second machine:&lt;br&gt;
&lt;i&gt;PeakPagefile : 403328K Pagefile : 135032K&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
You only have an 87MB pagefile on a 4gb machine.  NT-derivative machines, for proper function, need a little more swap than you have main RAM.  They think of RAM as a buffer against the page file, which is the &apos;real&apos; memory.   They can run with less, but you get suboptimal results.  They won&apos;t hit the swap unless they need it, but it&apos;s best if it&apos;s present. &lt;br&gt;
&lt;br&gt;
As I said in my first post, delete that page file, and create an 8gb one, and your problem has a pretty good chance of instantly disappearing.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.73705-1097313</guid>
  	<pubDate>Sun, 14 Oct 2007 07:29:18 -0800</pubDate>
  	<dc:creator>Malor</dc:creator>
</item>

    </channel>
</rss>
