linux中tuned是否启动命令,Linux系统调优-tuned

1.  yum install tuned                yum info tuned   查看tuned说明

2tuned-adm active        查看当前的

Current active profile: default

Service tuned: disabled, running    服务启动

Service ktune: disabled, stopped     开机不自起

3.tuned-adm list    列出tuned目录,查看系统中对于不同应用场景的调优方案

Available profiles:

- virtual-guest

- throughput-performance

- latency-performance

- desktop-powersave

- enterprise-storage

- spindown-disk

- server-powersave

- laptop-ac-powersave

- virtual-host

- default

- laptop-battery-powersave

4.tuned-adm profile server-powersave  切换调优方案

5.-default (Email Server)

the dafault power-saving profile.It has the lowest impact on power saving.best for small simultaneous reads/writes

默认节电配置。这是最基本的节点配置。它只启用磁盘和 CPU 插件。注:这与关闭 tuned-adm 不同,关闭该程序会同时禁用 tuned 和 ktune。网络配置不改便。

-latency-performance(database server数据库)

典型延迟性能调试的服务器配置。它禁用 tuned 和 ktune 节能机制。cpuspeed 模式改为 performance。每个设备的 I/O 提升程序改为 deadline。对于服务的电源管理质量,将 cpu_dma_latency 设定为 0。

-throughput-performance(适用于虚拟机的物理载机,廉价存储)

用于典型吞吐性能调整的服务器侧写。如果系统没有企业级存储则建议使用这个侧写。它与 latency-performance 相同,只是:

将 kernel.sched_min_granularity_ns(调度程序最小优先占用时间间隔)设定为 10 毫秒,

将kernel.sched_wakeup_granularity_ns(调度程序唤醒间隔时间)设定为 15 毫秒。

将 vm.dirty_ratio(虚拟机脏数据比例)设定为 40%,并启用透明超大页面。

-enterprise-storage(企业级存储)

建议最企业级服务器配置中使用这个侧写,其中包括电池备份控制程序缓存保护以及管理磁盘缓存。它与 throughput-performance 配置类似,只是文件系统要使用 barrier=0 重新挂载。

-virtual-guest

建议最企业级服务器配置中使用这个侧写,其中包括电池备份控制程序缓存保护以及管理磁盘缓存。它与 throughput-performance 类似,只是:

将 readahead 值设定为 4x,同时不使用 barrier=0 重新挂载的 root/boot 文件系统。

-virtual-host

根据 enterprise-storage 配置,virtual-host 还可减少可置换的虚拟内存,并启用更多集合脏页写回。您可以在红帽企业版 Linux 6.3 以及之后的版本中找到这个配置,同时推荐在虚拟化主机中使用这个配置,包括 KVM 和红帽企业版 Linux 虚拟化主机。

-desktop-powersave

面向桌面服务器的省电模式,

-server-powersave

关闭光驱检查,进行sata降级检查

-laptop-ac-powersave

笔记本带电模式

-laptop-battery-powersave

笔记本电池模式

-spindown-disk(ssh服务 )

磁盘尽量不转,

6./etc/tune-profiles/ 不同的profile以目录形式存在

7.建立自己的tuned服务

cp -a /etc/tuned-profiles/server-powersave/ 复制文件进行更改

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值