官术网_书友最值得收藏!

Configuring power settings

When you install Windows Server operating system, you need to check for power settings, which are configured on such systems. There are several options for how you can verify which power setting plan is currently in use. If you open a command prompt or PowerShell, you can use the powercfg utility to see what plan is used on your server:

powercfg.exe -list

By default, you will see a Balanced plan selected, which is great for most servers and offers a lot of power-saving features, but usually this plan is not optimal for SQL Servers. SQL Server can put quite some load on the CPU and switching between CPU speeds may cost you precious time and performance. If you open the Task Manager tool, you can see that your CPU is not running on the maximum speed and may be running with a much lower value.

As an example, you can see the following screenshot from one of the physical servers with 2.4 GHz CPU, which is running on 1.25 GHz due to a power-saving plan:

You can verify this with tools like CPU-Z or similar, and the best option we have here is to update the power plan to high performance, which is common for SQL Server workloads. To update the power plan setting, you can either use a control panel where you can find settings for power options or use a command line again. When we listed the plans on the server with the previous command, you have seen in the output that they come with name and GUID. To update the plan via the command line, we need to use the GUID with the powercfg tool:

powercfg.exe -SETACTIVE <GUIDofThePlan>

The following screenshot gives an illustration of updating the plan via the command line:

Once the power plan is updated, the CPU is no longer using any power-saving mode and runs with full speed and possibly even turbo boot for extreme loads while performing complex queries on your server.

主站蜘蛛池模板: 德江县| 如皋市| 房产| 泸定县| 十堰市| 保定市| 咸宁市| 洛扎县| 郸城县| 曲靖市| 体育| 文成县| 始兴县| 伊宁县| 佛学| 高密市| 吉首市| 祁阳县| 吉木萨尔县| 定西市| 海兴县| 黎城县| 阜新市| 舒兰市| 开原市| 游戏| 千阳县| 四川省| 喜德县| 卫辉市| 西乌珠穆沁旗| 凤凰县| 青阳县| 贵港市| 多伦县| 澄城县| 蚌埠市| 中卫市| 长沙县| 张家川| 綦江县|