Hyper-V VM slow on windows server 2008 R2
I recently notice upgrade my virtual machines hosting machine from window server 2008 to windows server 2008 R2. There are some noticeable performance drop, especially on virtual machines that handles big log files, the script execution time can be 200% than it was before upgrade.
I did some testing and it turns out power management in windows server 2008 R2 causes this performance degrading. Windows Server 2008 R2 has 3 power plan
- Balanced (recommended)
- High Performance
- Power Saver
By default, Windows Server 2008 R2 sets the power plan to Balanced (recommended) power plan. This might prevent applications from fully utilizing available hardware resources.
Change Power Plan to High Performance and the performance degrade issue does no occur any more.
You can also checkout this post for Set the power configuration to High Performance in scripts.