Our ASP.NET app uses a component that is licensed by the number of processor cores. Unfortunately, our customer wants to deploy the app onto a multi-function server (IIS, SQL Server, file server, etc.) that exceeds the number of processor cores for which the customer is licensed: they are allowed four cores but have two processors with four cores each. Can I configure IIS 6 on a Windows Server 2003 machine to use only one processor?

link|improve this question
1  
Belongs on ServerFault: serverfault.com – OMG Ponies Feb 3 '10 at 15:44
feedback

migrated from stackoverflow.com Feb 3 '10 at 15:52

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 2 down vote accepted

You can set processor affinity (and thus limit to 1 processor) per application pool, which would effectively limit the app that runs in that pool to use one processor. This will limit the w3wp process to only use one processor, which is hopefully all you need to comply with this licence. The other IIS services (admin service etc) will still use both CPU's

You can find the details on how to do so here.

link|improve this answer
doh, you beat me to it – JamesRyan Feb 4 '10 at 11:15
feedback

Firstly you should put the app in it's own application pool, you can then set affinity for each app pool in the metabase. Allowing you to limit that one web app without limiting anything else.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/529588d3-71bc-45ea-a84b-267914674709.mspx?mfr=true

link|improve this answer
feedback

Set processor affinity. I think that may do what you're looking for.

link|improve this answer
feedback

You can configure Windows to use only a specified number of processors in the boot.ini file via the /numproc switch. Of course this disables those processors for the whole OS, not just IIS.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.