Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows 64 Bit > Re: Many page faults in a 32-bit program running under WOW64

Reply
Thread Tools Display Modes

Re: Many page faults in a 32-bit program running under WOW64

 
 
Lorne
Guest
Posts: n/a

 
      08-05-2010
"mterrisse" <> wrote in message
news:2b11c987-030a-4f96-9269-...
> Hello,
>
> I am using Windows 7 64-bit but I develop a 32-bit application. When
> It is running, the Windows task manager reports millions of page
> faults and I am trying to track them to improve performance.
> The number of page faults reported for the same program using a 32-bit
> version of Windows is not so big, so it has to do with WOW64.
>
> I try to focus on faults directly linked to my code but most of the
> page faults come from Windows Api like ReadFile or SysAllocStringLen,
> and I cannot change anything to that.
> Is it well known that Win32 APIs can generate a lot of page faults, or
> is there anything I can do to limit that ?
>
> Note that I have 16 GB RAM installed on the machine, that is large,
> and a test program I wrote can generate thousands of pages faults
> immediately while it comsumes less than 1 MB.
>
> Regards,
>
> Michel


Are you sure these are real faults? Every time your program asks windows to
look for some data and it is not already in RAM it will load it and the
failure to find it first time is recorded as a fault. The first time you
program executes anything or during its startup my guess is that it will
throw many page faults which are just related to data being loaded into RAM.
I just looked on my machine and even Microsoft software like Outlook is
showing over 50,000 "page faults".

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ANS: "What's the deal with UAC (Windows Needs Your Permission screens)" and "...But I thought I was an administrator" Jimmy Brush Windows Vista Security 207 12-31-2009 07:58 AM
ANS: "What's the deal with UAC (Windows Needs Your Permission screens)" and "...But I thought I was an administrator" Jimmy Brush Windows Vista Administration 199 12-31-2009 07:58 AM
ANS: "What's the deal with UAC (Windows Needs Your Permission screens)" and "...But I thought I was an administrator" Jimmy Brush Windows Vista General Discussion 205 12-31-2009 07:58 AM
Running DOS Games under Vista Wogerwabby Windows Vista Games 45 11-10-2009 03:33 AM
Corrupt Files juerg Windows Vista Installation 10 07-12-2007 04:38 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59