Article View: borland.public.cppbuilder.nativeapi
Article #12359Re: Page Fault?
From: Bob Gonder
Date: Fri, 12 Dec 2003 21:03
Date: Fri, 12 Dec 2003 21:03
14 lines
1745 bytes
1745 bytes
Michael Wade wrote: >I have an application that needs to run for a very long time (say a week at a crack). It >communicates with some specialized hardware. I have noticed that after quite some time, the number >of page faults grows dramatically, to the tune of about 400/s. Does anyone have any suggestions on >how to find out where this might be happening? I don't think a page fault is necessarily an error, >but it doesn't bode well. Any advice would be sincerely appreciated. Perhaps you want to look into using VirtualAlloc() and VirualLock() instead of GlobalAlloc or malloc or "new" I would think as long as you don't need more than a meg or so, you could allocate and lock the pages for the duration of the app, then just do your own suballocating of chunks of it.
Technical Details
Message-ID:
<71bktvs2kidakpkfvl950idjvjgbla7s0o@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<ghvjtvc5sqjgkkr3d0fda69tnr6kgv62dc@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,45bf3b5ae3e395cc X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-12 13:09:59 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Page Fault? Date: Fri, 12 Dec 2003 13:03:12 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <71bktvs2kidakpkfvl950idjvjgbla7s0o@4ax.com> References: <ghvjtvc5sqjgkkr3d0fda69tnr6kgv62dc@4ax.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.56.152.164 X-Trace: newsgroups.borland.com 1071262997 65.56.152.164 (12 Dec 2003 13:03:17 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail