In the Windows Server 2008 R2 Enterprise, are there any restrictions for the CPU usage of the process ?
-
Tuesday, February 28, 2012 3:42 AM
Hello! I have the follow question to ask.
In the operate system ,I write a multithread program, in order to test the highest CPU usage when the certain number of the thread are concurrent.
The experimental data is as follow:
the thread number the highest usage of CPU
5 16
25 32
50 28
55 32
60 28
61 30
62 32
63 30
64 31
100 30
500 29
1000 29
Conclusion:The number of thread is from 25 to 1000, the highest usage of CPU fluctuates between 28 and 32.
Qusetion:1、 Why not the usage of CPU is higher than 32%?
2、 In the Windows Server 2008 R2 Enterprise, are there any restrictions for the CPU usage of the process ?
All Replies
-
Thursday, March 01, 2012 7:39 PMOwner
Hi Berry,
It sounds like there are some blocking calls (sleep, mutex, critical sections, events, i/o etc) that maybe in your application. That can explain why you arent seeing your CPU pegged.
Take a look at the concurrency visualizer that our team has created. (available in Visual Studio 2010 as well as Visual Studio 11 Beta). The visualizer lets you identify excactly why each thread is blocked, and what was scheduled on each CPU.
http://msdn.microsoft.com/en-us/magazine/ee336027.aspx
Rahul V. Patil
- Proposed As Answer by DanielMothMicrosoft Employee, Owner Friday, March 02, 2012 7:20 AM
- Marked As Answer by Rahul V. PatilModerator Wednesday, May 23, 2012 8:14 PM

