使用 VirtualBox 安裝一台 CentOS5 的子機,當子機是空閒、它的 loading 也還好,母機 top 時卻顯示這台子機一直在吃 CPU 高達 80~100%,那是因為 CentOS 的 kernel 的 CONFIG_HZ_1000=y 與 CONFIG_HZ=1000,這讓一般硬體下是正常的,但 VM 的環境 下就不正常,所以
在子機的 grub.conf 裡加入 divider=10
kernel /boot/vmlinuz-2.6.18-308.16.1.el5 ro root=LABEL=/ divider=10
就不會那麼忙碌了
http://riverhippo.blogspot.tw/2009/10/virtualbox-3-vs-centos-5-high-cpu.html
留言