In the Windows Server 2008 R2 Enterprise, are there any restrictions for the CPU usage of the process ?
-
28 Februari 2012 3:42
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 ?
Semua Balasan
-
01 Maret 2012 19:39Pemilik
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
- Disarankan sebagai Jawaban oleh DanielMothMicrosoft Employee, Owner 02 Maret 2012 7:20
- Ditandai sebagai Jawaban oleh Rahul V. PatilModerator 23 Mei 2012 20:14