473,722 Members | 2,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Large page faults issue in .net application

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 monitoring
time of 35 mins, there is never any sustained occurence of hard page
faults -as a matter of fact, almost on avg 98+ % of the entire time the
app is experiencing soft page faults. The processor rarely ever gets
over 70-80% for a sustained period of 30 sec during the entire 35 mins.
% Time in GC averages 3%.

Besides stats, we also notices that our Working Set gets consistently
trimmed every couple of minutes in the order of 20-30 MB and sometimes
even more. I also see this is directly correlated to the managed
object heap bytes being trimmed as well - exactly the same graph line
behavior. When WS gooes down, available memory goes up. I also see
that the largest number of gc collections are Gen 0s, followed by Gen
1s and the smallest Gen 2s.

We monitored a slew of other Perf counters - so if u need any other
info to help, I can supply the perf counter values readily.

QUESTION - How do I make sense of the page faults being so
excessive...? Can you supply some info and or documentation to help me
determine if this is a good, bad or expected behavior for .NET apps...?
I tried researching in lot of places but no luck to help me. Almost
every doc I find outlines that if you have hard page faults, that is a
bad thing, while soft page faults are ok.

(Sustained period = we selected 30 secs - example -> so if the
%Processor Time is over 80% for 30 secs or more we would get concerned).

Nov 17 '05 #1
1 6554

<tb*********@ho tmail.com> wrote in message
news:11******** *************@g 43g2000cwa.goog legroups.com...
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 monitoring
time of 35 mins, there is never any sustained occurence of hard page
faults -as a matter of fact, almost on avg 98+ % of the entire time the
app is experiencing soft page faults. The processor rarely ever gets
over 70-80% for a sustained period of 30 sec during the entire 35 mins.
% Time in GC averages 3%.

Besides stats, we also notices that our Working Set gets consistently
trimmed every couple of minutes in the order of 20-30 MB and sometimes
even more. I also see this is directly correlated to the managed
object heap bytes being trimmed as well - exactly the same graph line
behavior. When WS gooes down, available memory goes up. I also see
that the largest number of gc collections are Gen 0s, followed by Gen
1s and the smallest Gen 2s.

We monitored a slew of other Perf counters - so if u need any other
info to help, I can supply the perf counter values readily.

QUESTION - How do I make sense of the page faults being so
excessive...? Can you supply some info and or documentation to help me
determine if this is a good, bad or expected behavior for .NET apps...?
I tried researching in lot of places but no luck to help me. Almost
every doc I find outlines that if you have hard page faults, that is a
bad thing, while soft page faults are ok.

(Sustained period = we selected 30 secs - example -> so if the
%Processor Time is over 80% for 30 secs or more we would get concerned).


It largely depends on what the application is doing, but to me it looks like
you are instantiating/releasing a lot of (large) objects during this period.
The result is quite a lot of soft page faults, which is normal behavior when
reserving and committing memory from the VAS.

Willy.


Nov 17 '05 #2

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

Similar topics

3
2742
by: benben | last post by:
Is there a standard guidline to avoid or minimize page faults when manipulating data collections in C++? ben
2
2640
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 runs fine for a while, but eventually slows down to a crawl. Running sar shows that when it is running slowly there is an exceptionally large number of minor page faults - there are continuously 14000 faults/sec, with a variation of about...
27
5679
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 1K bytes of data. 3) These structs are to be used by all of the other 500K lines in various places.
4
3803
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, 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...
0
1040
by: Crirus | last post by:
Hello! I cant understand why my application generate lots of page faults as task manager shows... Something related to MouseMove, I guess...I scroll a large bitmap with MouseMove and seems that if I intensily do htat the page faults increase Any thoughts? -- Ceers,
2
4904
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.. what is that? -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you
2
4157
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. Why so many page faults. System uptime ~500 hours. The ASP-based site does interface with a SQL Server instance on a completely
3
1828
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 record also has a hidden input named "questions", whose value is an id that is used in the name of inputs to be disabled. The number of page faults increases dramatically as records increase. I know it is the for loop that is taking the extra time,...
4
2169
by: none | last post by:
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...
0
8860
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8739
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9382
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5995
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4502
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2147
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.