Showing category results for .NET

Jan 29, 2009
Post comments count0
Post likes count0

Understanding the Binder – Part 1

CLR Team

 This is an introductory post on the internals of CLR Binder.     What does the Binder do? CLR's Binder is a piece of code that, when given an assembly name, determines where the assembly is and binds to it. So how does the Binder locate assemblies? Let's assume that you are loading an assembly (let’s call it...

.NET
Jan 11, 2009
Post comments count0
Post likes count0

CLR Inside Out

CLR Team

The CLR team has a column in the MSDN magazine called 'CLR Inside Out' where we go in-depth into various aspects of the CLR. The magazine is published monthly, and you can find the list of 'CLR Inside Out' articles over here. If you have topics you'd like to see covered in the article, please let us know! This month, we have an article from Je...

.NET
Jan 2, 2009
Post comments count0
Post likes count0

Welcome to the CLR Team Blog!

CLR Team

 Hello from all of us in the Common Language Runtime (CLR) team. This year, we decided to start a blog to share and to hear from you. From the sharing perspective, we have quite a lot of things to cover - everything from best practices, tips and tricks, what we are working on and all the new features, conferences that we are attending/presenti...

.NET
Nov 19, 2008
Post comments count0
Post likes count0

So, what’s new in the CLR 4.0 GC?

maoni

PDC 2008 happened not long ago so I get to write another “what’s new in GC” blog entry. For quite a while now I’ve been working on a new concurrent GC that replaces the existing one. And this new concurrent GC is called “background GC”. First of all let me apologize for having not written anything for so long. It’s been quite busy working on the n...

.NET
May 15, 2007
Post comments count0
Post likes count0

64-bit vs 32-bit

maoni

As 64-bit machines become more common, the problems we need to solve also evolve. In this post I’d like to talk about what it means for the GC and the applications’ memory usage when we move from 32-bit to 64-bit.   One big limitation of 32-bit is the virtual memory address space - as a user mode process you get 2GB, and if you use large addre...

.NET
Mar 21, 2007
Post comments count0
Post likes count1

He’s live… he’s live not… he’s live…

maoni

I was making some code changes today and thought this was interesting to share. As you know, the WeakReference class has a getter and a setter method to get and set the Target which is what the weakref points to. See Using GC Efficiently – Part 3 for more details on WeakReference.   Note that the code below is only for illustration purposes – ...

.NET
Jan 12, 2007
Post comments count0
Post likes count0

Difference Between Perf Data Reported by Different Tools – 4

maoni

.NET CLR Memory\% Time in GC counter and !runaway on thread(s) doing GC. The 2 common ways people use to look at the time spent in GC are the % Time in GC performance counter under .NET CLR Memory, and the CPU time displayed by the !runaway debugger command in cdb/windbg. What do they mean exactly? % Time in GC is calculated like this: When the nth...

.NET
Dec 20, 2006
Post comments count0
Post likes count0

Difference Between Perf Data Reported by Different Tools – 3

maoni

Both the !SOS.gchandles command (added in CLR 2.0) and the .NET CLR Memory\# GC Handles counter show you the number of GC handles you have in your process. The # GC Handles counter is one of the rare counters in the .NET CLR Memory category that doesn’t get updated at the end of each GC. Rather we update it in the handle table code, for example, w...

.NET
Dec 12, 2006
Post comments count0
Post likes count0

Difference Between Perf Data Reported by Different Tools – 2

maoni

Managed Heap Size We have both .NET CLR Memory perf counters and SoS extensions that report manged heap size related data. Difference 2 There are a few .NET CLR Memory counters that are related to the managed heap size: # Total Committed Bytes # Total Reserved Bytes I explained what these counters mean here. Now, how are they r...

.NET
Dec 12, 2006
Post comments count0
Post likes count0

Difference Between Perf Data Reported by Different Tools – 1

maoni

So, there are many perf tools and some of them report either the same or the same type of data. I want to talk about various differences between the ones related to managed heap investigation. This is not supposed to cover everything..just the ones I think people use frequently. Managed Heap Size We have both .NET CLR Memory perf counters and SoS e...

.NET