Not to be blunt, but you aren't exactly indicating that this is
impacting your performance in a bad way. You just have this statement that
you have a good number of soft page faults, and imply that it is a problem,
which you need to fix.
Is the application not performing correctly, or not performant as a
result?
It's not that I think you are wrong, but there are a good number of
people who post to the groups with questions regarding high numbers in
certain things (page faults, memory usage in task manager) and associate
that with something wrong with the program. This isn't always the case.
I'll admit that yes, you should understand what is going on in your program
(to what degree is debatable), but at the same time, if you don't have any
negative effects, or even postulate what negative effects you might have as
a result of what you are observing, then I question the reasons for wanting
to address the issue.
Can you clarify what you think might happen, or is happening as a
result?
--
- Nicholas Paldino [.NET/C# MVP]
-
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Related to my other post on Graphics.FillRectangle and a lot of page
> faults caused by this call...
>
> We determine that when Control.DoubleBuffer=true to avoid the flicker
> effect, Graphics.FillRectangle causes a lot of soft page faults - order
> of 700/sec and more... When Control.DoubleBuffer=false, we have no page
> faults at all - 0/sec.
>
> Has anyone seen this behavior and how did they resolve it...? What are
> our options...? Does "OptimizedDoubleBuffer" do anything in .NET
> 2.0...?
>
> Also - soft page faults are not an issue in a general sense, but if
> they average around 1500/sec like they do for our app and they never
> even get close to zero at all during the whole test, and they also
> relate to one method Graphics.FillRectangle and
> Control.DoubleBuffer=true, then this is definitely something to get
> concerned about. From the tool we used to monitor the page faults done
> by Graphics.FillRectangle, it appears it page faults every time the
> method is invoked - through our Control.Render calls with
> Control.DoubleBuffer=true.
>
> thx
>