在VirtualBox中安装CentOS,CPU占用过高,几乎100%的解决办法

本文介绍了如何解决CentOS在VirtualBox虚拟机中CPU占用率过高的问题,通过修改grub配置文件加入divider=10参数来减少计时器中断频率,从而降低CPU负载。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

近日在VirtualBox上安装了CentOS,突然发现CPU风扇狂转,一查,原来VirtualBox上的CentOS几乎在100%使用VirtualBox分配给它的CPU核心。 在网上找了半天,终于找到一条方法,即:修改/etc/grub.conf文件,在kernel一行后加上参数“divider=10” ,经试验,果然CPU正常了。

 

关于 divider=10 的解释:

For RHEL 5.4 and CentOS 5.4 and later, divider=10 is a supported kernel configuration option, but is no longer necessary for accurate timekeeping. Using it reduces the frequency of timer interrupts by 10x, which reduces the  CPU overhead of processing timer interrupts. This overhead is especially noticeable for idle virtual machines. The only drawback of using divider=10 is that the granularity of wakeups provided by the kernel changes from 1ms to 10ms. The vast majority of applications are not affected by this, but using divider=10 may not be the right tradeoff for some time sensitive applications. For RHEL 5.3 and earlier, divider=10 greatly improves timekeeping accuracy and is strongly recommended.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值