3/11/09

vmware kernel for kernel clock issue, and preformance

#Issue is basically... " In 2.4 kernels the system timer was normally clocked at 100 Hz, while in 2.6 the default system timer is set to 1000 Hz (some other distros are not following these "rules", and USER_HZ is still 100). 1000 Hz is definitely a good thing for desktop computers requiring fast interactive responses, but there are environments where this causes bad side effects."
#This caused the time to drift on the guest, which would mean problems with files and timestamps. This will fix that, as well as preformance gains.


#Get the kernel repo

cd /etc/yum.repos.d/
sudo wget http://vmware.xaox.net/centos/5.2/VMware.repo

#Install yum-protect and yum-priorties
sudo yum install yum-protect-packages
sudo yum install yum-priorities

#Set up the priorties, you want the Vmware.repo to be 1 higher then all the others. an example:

name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
priority=2


#Then setup the VMware.repo to look similar to this: and enable protect so that it won't touch these packages from any other repos
[vmware]
name=VMware - Centos $releasever - $basearch
baseurl=http://vmware.xaox.net/centos/$releasever/$basearch/
gpgcheck=1
gpgkey=http://vmware.xaox.net/centos/$releasever/RPM-GPG-KEY
priority=1
protect=1

#wget the kernel packages.
wget http://vmware.xaox.net/centos/5.2/x86_64/kernel-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm
wget http://vmware.xaox.net/centos/5.2/x86_64/kernel-devel-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm
wget http://vmware.xaox.net/centos/5.2/x86_64/kernel-headers-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm

#install the kernel, devel, and header packages
sudo rpm -ivh kernel-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm kernel-devel-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm kernel-headers-2.6.18-92.1.10.el5.centos.plus.VMware.x86_64.rpm

reboot, and your done :-)

No comments:

Post a Comment