473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Acceptable level of page faults

I have an ASP.NET application, hosted on two web servers. I am looking
for advice on what should be an acceptable level of page faults on
these production servers. If the acceptable level is zero, then where
should I begin reducing page faults in code? What should I look for in
code to reduce page faults?

Having to reduce page faults is something I have not had been tasked
with before, so I am not sure what is acceptable and where to begin.

Thanks,

Alex

Nov 9 '07 #1
4 2145

The acceptable level is zero.

There may be specific things that are environmental and out of your
control (such as dependence on outside web services, network, etc) but
those faults should be handled internally by your app and therefore do
not bleed through to your users as faults.

The place to start is your logs, and if you don't have any then start
logging. There's generally an accepted thought in you should only
catch exceptions if you can do something about that. This is wrong
(IMO). You should catch and rethrow exceptions with additional
information whenever you have additional information to provide (which
is pretty much always--your method parameters, values in relevant
variables, etc). Then once you have logging in place look at the
stack traces and track errors down one by one.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Fri, 09 Nov 2007 23:31:17 -0000, none <ba*******@gmail.comwrote:
>I have an ASP.NET application, hosted on two web servers. I am looking
for advice on what should be an acceptable level of page faults on
these production servers. If the acceptable level is zero, then where
should I begin reducing page faults in code? What should I look for in
code to reduce page faults?

Having to reduce page faults is something I have not had been tasked
with before, so I am not sure what is acceptable and where to begin.

Thanks,

Alex
Nov 9 '07 #2
Sam,

I appreciate your thoughts. I do have logging in place, using Log4Net,
as well as my own HttpModules I have created to monitor exceptions and
unhandled exceptions. What I am seeing is that I do not have many
errors being logged, but it sounds like it is more than that. Perhaps
Log4Net warnings and any situation where a "catch" is reached in a try/
catch need to be evaluated. If having 1 page fault is too many, than I
need to increase details about any error.

The next question is, how practical is it to reach a level or zero
page faults? I guess there must be a balance between how many
resources I dedicate to reducing page faults, since having page faults
does not appear to impair the application from a user's perspective
that I can tell at this point. I was under the impression that page
faults are a necessary. Even with a basic ASP.NET application with
just one Default.aspx page and no functionality added to the project,
I still get some page faults. I cannot get zero. Just by running
aspnet_wp.exe or w3wp.exe I am averaging 180 page faults/sec,
according to perfmon.

Thanks again,

Alex

Nov 10 '07 #3
You need to be more clear.
What page faults are you talking about.....
Errors on your ASPX pages????? Here acceptable is 0. There should never be
unexplained error. There are a lot of bots going around that look for
emails, faxes, .... they submit form and very often they generate an errors
simply by supplying incorrect data cause they mess with hidden fields as
well (like viewstate for example).

Or system page faults in Task Manager? I would not worry about it and let
OS to manage that. Just add more memory to reduce it if it really slows down
your server.
George

"none" <ba*******@gmail.comwrote in message
news:11**********************@z24g2000prh.googlegr oups.com...
>I have an ASP.NET application, hosted on two web servers. I am looking
for advice on what should be an acceptable level of page faults on
these production servers. If the acceptable level is zero, then where
should I begin reducing page faults in code? What should I look for in
code to reduce page faults?

Having to reduce page faults is something I have not had been tasked
with before, so I am not sure what is acceptable and where to begin.

Thanks,

Alex

Nov 12 '07 #4
Thanks George. The page faults that are being monitored really are
system page faults, or those caused by the application. The app is not
throwing any errors, like unhandled exceptions, and the app pool is
not being recycled as a result of any of these errors. I guess it is
difficult for me to say how these pages faults are being caused by the
web application, if they are or not. Do you recommend any tools to
help me determine if these page faults are because of my ASP.NET
application (code) or if they are being caused by something other than
my code?

Thanks,

Alex

Nov 12 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: benben | last post by:
Is there a standard guidline to avoid or minimize page faults when manipulating data collections in C++? ben
2
by: Dave Kirby | last post by:
I am working on a network management program written in python that has multiple threads (typically 20+) spawning subprocesses which are used to communicate with other systems on the network. This...
27
by: Sune | last post by:
Hi! Pre-requisites: ------------------- 1) Consider I'm about to write a quite large program. Say 500 K lines. 2) Part of this code will consist of 50 structs with, say, no more than at most...
1
by: tbatwork828 | last post by:
I've PerfMon-ed our application for several days now and it consistently averages 2000 Page Faults/sec, and accumulates on average about 4 mill page faults during 35 mins. During the same...
4
by: tbatwork828 | last post by:
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,...
2
by: Crirus | last post by:
I made a simple test... loaded an image from file and draw it on a form In mouse move, I just refresh the form.... that cause 1 000 000 page faults (as task manager shows) in less than a minute.....
2
by: David Morgan | last post by:
Hi Have 4Gb of RAM and plenty of free disk. Those page faults are for DLLHOST.EXE using ~370Mb RAM. inetinfo.exe has 403,106,036 page faults at the time of writing and is using ~145Mb RAM. ...
1
by: cablitoEscobar | last post by:
The problem lies in the fact that whenever I call CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0) a page fault occurs. The fact is I have a timer set to take a snap-shot per second and the...
3
by: scotp | last post by:
Does anyone know what would cause excessive page faults running the js function below? The most common browser used is IE 6. The page has records that include text & checkbox inputs. Each...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.