GreatSQL社区

搜索

reddey

关于Greatsql数据库CPU最大性能的介绍

reddey 已有 309 次阅读2024-6-3 09:35 |系统分类:运维实战

Greatsql数据库的技术文档中提到,CPU最好用最大性能模式,文章中有如下描述。

确认CPU性能模式设置

先检查当前的设置模式

$ cpupower frequency-info --policy

analyzing CPU 0:

 current policy: frequency should be within 800 MHz and 4.80 GHz.

                 The governor "performance" may decide which speed to use

注意 如果输出内容不是 The governor "performance" 而是 The governor "powersave" 的话,则要注意了。 The governor "powersave" 表示 cpufreq 的节能策略使用 powersave,需要调整为 performance 策略。 如果是虚拟机或者云主机,则不需要调整,命令输出通常为 Unable to determine current policy。

由于我的实验机为虚拟机,显示无法调整CPU策略。

百度上查询了一下,需要安装 yum install kernel-tools -y。

如果当前运行在powersave模式下,可以将其修改为performance,提升CPU频率,cpupower frequency-set -g performance。


评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2024-7-27 11:28 , Processed in 0.012278 second(s), 7 queries , Redis On.
返回顶部