Support more than 64 cores from .NET code?

Fri, July 24, 2009, 05:26 PM under Windows
As you know by now, Windows 7 supports up to 256 logical processors (a 4-fold increase from previous versions). A few months ago I posted my screenshot of a system with 128 cores and reader kotsoft asked why the CPU utilization was at 50%.

The reason is that I was running a straightforward .NET 4 app that used TPL and the CLR 4 ThreadPool does not take advantage of more than 64 cores. Digging deeper reveals that there are certain new (native obviously) APIs that an application must use to go beyond the 64-core support and specifically the ones described here about processor groups – the CLR is not utilizing them in this release.

I wonder who will be the first to wrap these functions from managed code and show an example of their usage…

RegistryOptions.Volatile in .NET 4

Fri, July 17, 2009, 12:54 PM under dotNET
About 18 months ago I wrote a blog post offering an unsupported solution for working with volatile registry keys from .NET code.

FYI, support for volatile keys is introduced in the Microsoft.Win32 namespace of .NET 4 Beta1 (for the desktop only, so far). The API is simple enough that no sample is needed, start at the new overload for RegistryKey.CreateSubKey that accepts the new enumeration RegistryOptions.

Updated Beta1 slides for parallelism

Thu, July 2, 2009, 06:56 PM under ParallelComputing
For those of you interested in my session on parallelism with VS2010, I gave an extended/longer version of it recently and included a bunch of new slides and updated the existing ones to match the recent release of VS2010 Beta1. Get the updated pptx here (checkout the annotated slides 16 and 17 on Parallel Tasks and Parallel Stacks).

Debug .NET dumps with VS2010

Thu, July 2, 2009, 06:45 PM under dotNET
Tess has written a great post on debugging .NET dumps in Visual Studio 2010 (which also briefly touches on the Parallel Stacks window ;-)

yearsOnThisPlanet++

Thu, July 2, 2009, 06:39 PM under Personal
Today I am one year older (but not wiser ;-). This time last year I got an SSN and had almost no friends in the USA, while this year I've booked a bar to host the many cool people I've met here. If you are in Seattle and coming to my party, it's gonna be messy so come prepared ;-)