Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2006

Tip: Looking for answers? Try searching our database.

!sos.DumpHeap -stat -cache -gen 2 ==> high CPU and PageFaults

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Loy - 06 Nov 2006 13:31 GMT
I have dump file
I got the output of !dh -stat -cache (took few minutes)
 Summary: Total 6,011,900 objects, Total size: 581,098,460
    About 1400 types

The problem is when I try to the same summary for Gen 2 only
Running "!dh -stat -cache  -gen 2"
Takes verrrry long time with ~50% cpu usage and thousands of pagefaults
per second all that time

I expected it to be much faster - as the first run should have cached
the needed data...
but actually - it seems like a way more expensive operation - why?

1. Is it a known issue?
2. Is there something I can do about it (beside letting it run through
the night)?

More information:
- filever:
--a-- W32i   APP ENU         6.4.7.0 shp    374,272 01-10-2005
windbg.exe
--a-- W32i   APP ENU         6.4.7.0 shp     54,784 01-10-2005 cdb.exe
--a-- W32i   DLL ENU         6.4.7.0 shp    882,688 01-10-2005 sos.dll

I created the dump using AdPlus.vbs -hang

Loy
Loy - 06 Nov 2006 16:36 GMT
It is still running:
 CPU time: 1:48:11
 Page Faults: 84,976,960
 PfDelta (per second): more than 12,000

Any help will be appreciated

Loy

> I have dump file
> I got the output of !dh -stat -cache (took few minutes)
[quoted text clipped - 24 lines]
>
> Loy
Willy Denoyette [MVP] - 06 Nov 2006 16:50 GMT
|I have dump file
| I got the output of !dh -stat -cache (took few minutes)
[quoted text clipped - 24 lines]
|
| Loy

How much RAM do you have in your box? and how much memory is there
available. It looks like after the first run, you have paged-out the
debuggee's managed heap (or part of). With a GH heap size of +500 MB you
need two times this amount of memory.

Willy.
Loy - 12 Nov 2006 09:44 GMT
The question is still open - why, when adding the flag "-gen 2" it
takes hours with thousands of PF per second?
- while without this flag is takes upto 2 minutes? and why "-cache"
flag in the first time does not help reducing this time?

Willy

Thanks for your response.
Sorry I wasn't able to answer earlier (I wasn't feeling well)

Quote" "you have paged-out the  debuggee's managed heap (or part of).
With a GH heap size of +500 MB you need two times this amount of
memory."

I have 1GB pf ram
Before starting !dh - Available physical memory: 524,744[k] (repotrted
by taskmgr)

I can find PC with 2GB of memory - but I'm not sure even this would be
enough

Loy

> |I have dump file
> | I got the output of !dh -stat -cache (took few minutes)
[quoted text clipped - 31 lines]
>
> Willy.
Dekel.FunStaff@gmail.com - 13 Nov 2006 08:23 GMT
Still waiting for microsoft (MSFT) response

Additional information:
While TaskMgr.exe shows count of about 15,000 in the "PF delta" for
windbg.exe
Perfmon Pages / sec shows ~10 (for all processes together)

I assume this means that the high number means "soft page faults"

This still does not explain why does it takes two hours with the flag
"-gen 2" Vs. 2 minutes without it

Does anyone else tried this command on large scale application (memory
footprint of more than 500MB mainly for managed objects)?

Loy

> The question is still open - why, when adding the flag "-gen 2" it
> takes hours with thousands of PF per second?
[quoted text clipped - 54 lines]
> >
> > Willy.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.