|Sent on:||Friday, January 4, 2008 1:39 PM|
For those who asked about ParallelFx and how it might work with ASP.NET. Not sure if I captured your question correctly but here is the exchange I had. Hope this helps.
Keith forwarded me your question below.
It sounds like you’re referring to an ASP.NET app set up as a web garden. This is a special mode in which ASP.NET will use a separate affinitized process per-CPU, rather than the default of a single process that runs the website with many threads on all CPUs. See "Web Gardens" here for more info: http://msdn2.microsoft.com/en-us/library/ms998549.aspx. The member who asked the question may have configured the web garden incorrectly if only 50% utilization is seen: for example, if he has set the CPU affinity mask incorrectly (to something other than 0xffffffff) then some CPUs may not be used at all. Unless he's sure he needs to use a web garden configuration, I would recommend sticking with the default.
In any case, Parallel Extensions will respect affinitization and cannot scale beyond a single-CPU when run in such processes. It will behave as though the code is being run on a single-CPU machine, and will not increase the maximum possible utilization.
I hope this helps. Let me know if there are any additional questions, and feel free to put the member directly in touch with me if he is still having problems.
As you may know I run the New York .NET Meetup group. Today at our December meetup I presented briefly on ParallelFX and one of our members raised a question I did not know the answer to. Was wondering if you could shed some light & I could pass it along to our group?
The question was, since ASP.NET applications display processor affinity, (how) does TPL allow for multi-proc programming from within an ASP.NET application. His experience is that he cannot get more than 50% utilization on a dual-proc machine without running 2 instances of his ASP.NET app and wondered if TPL would get past that.
NOTE: I am not an ASP.NET expert, this was just how it was described to me by our group member.
Thanks in advance for any guidance you guys can offer.