Thank you Derek!
I didn't know before that you can manipulate how the linker places functions
in the exe or dll.
Our application will definately benifit from this.
Now I just have to convince my boss :)
Best regards
Erik Rydgren
-----Original Message-----
From: Derek Harmon [mailto:[EMAIL PROTECTED]]
Sent: den 20 augusti 2001 11:03
To: [EMAIL PROTECTED]
Subject: Re: HELP! Page faults, when running DOMParser on windows NT
"Shlomi Afia" wrote:
> I got about 500 page faults per second(!) on this simple example code.
> Although it looks like "soft" page faults (there is no disk activity
> involved), it's still too high.
You can try optimizing the Working Set of the DLL
to your client application's behavior, to reduce the
number of soft page faults.
What this entails is rebuilding the Xerces DLL, but
changing the order in which the object modules are
linked so that: for instance, all object modules that
contain the code involved in constructing the DOM
Parser are within N kilobytes of each other.
This way, the operating system doesn't have to go
reaching out in ten different directions to find all
of the code necessary to construct a DOMParser.
That's one explanation for (at least some of) those
page faults.
Now, I caution you that the optimal order of object
modules for _one_ example application, may not be
the optimal order of object modules for other appli-
cations. Ideally, you know with sufficient certainty
what the run-time behavior of your application is in
the way that it calls Xerces to process XML. The
Working Set tuner essentially profiles you client
and spits out what it thinks is the optimal order that
should minimize page faults for the client's control
flow by roughly 30%. It's only based on the frequency
of a function being called, rather than an 'intelligent'
analysis of function coupling.
There are tools out there to help with this reorganization
of a DLL. There was a WST that was included with the
NT Platform SDK. For Microsoft Windows 2000, the
columnist for MSDN Magazine's "Bugslayer" column,
John Robbins, wrote a SWS utility for tuning the work-
ing set along the same lines as WST.
I refer you to his two-part article on the topic on MSDN,
http://msdn.microsoft.com/msdnmag/issues/1000/Bugslayer/bugslayer1000.asp
http://msdn.microsoft.com/msdnmag/issues/1200/bugslayer/bugslayer1200.asp
- - -
Derek Harmon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]