VMware
1 2 3 Previous Next 43 Replies Last post: Apr 2, 2009 4:56 AM by AndreDrent  

CentOS 5 kernel compiled with HZ=100...Yum repository posted: Jun 12, 2007 9:19 AM

Click to view Xaox's profile Enthusiast 73 posts since
Mar 10, 2006
See these threads for background:

http://www.vmware.com/community/thread.jspa?threadID=58736
http://www.vmware.com/community/thread.jspa?threadID=60462

I have setup a Yum repository with a custom kernel compiled with HZ=100 for CentOS 5. This kernel improves performance when running multiple CentOS guests on a single VMware Server.

These kernels have only have minimal testing so be cautious using them. Due to build problems the kernel modules are _NOT_ signed.

You can find the repository here with CentOS 4 and 5 kernels:

http://vmware.xaox.net/centos/

Download VMware.repo into your /etc/yum.repos.d for easy access.
Click to view larstr's profile Virtuoso vExpert 2,410 posts since
Mar 11, 2004
Are you providing both smp and non-smp versions of this kernel?
Click to view larstr's profile Virtuoso vExpert 2,410 posts since
Mar 11, 2004
That makes sense.. The list don't specify which kernels are smp or not. Which one should I choose?

[code]
# yum list|grep kernel
kernel.i686 2.6.18-8.el5 installed
kernel.i686 2.6.18-8.1.6.el5 installed
kernel-headers.i386 2.6.18-8.1.6.el5 installed
fortune-kernelcookies.i386 1.0-37.2.el5.rf rpmforge
fortune-kernelnewbies.i386 1.0-37.2.el5.rf rpmforge
kernel-PAE.i686 2.6.18-8.1.6.el5 updates
kernel-PAE-debuginfo.i686 2.6.18-8.1.4.el5.cento vmware
kernel-PAE-devel.i686 2.6.18-8.1.6.el5 updates
kernel-debuginfo.i686 2.6.18-8.1.4.el5.cento vmware
kernel-debuginfo-common.i686 2.6.18-8.1.4.el5.cento vmware
kernel-devel.i686 2.6.18-8.1.6.el5 updates
kernel-doc.noarch 2.6.18-8.1.6.el5 updates
kernel-xen.i686 2.6.18-8.1.6.el5 updates
kernel-xen-devel.i686 2.6.18-8.1.6.el5 updates
yum-kernel-module.noarch 1.0.4-2.el5.centos extras
# uname -a
Linux centos5mal 2.6.18-8.1.6.el5 #1 SMP Thu Jun 14 17:46:09 EDT 2007 i686 athlon i386 GNU/Linux
#
[/code]

As you see I'm using both yours and the rpmforge repos.

Lars
Click to view utropicmedia-karl's profile Novice 12 posts since
Jun 11, 2007
to the OP -

We have been seeing issues with CentOS 5 (and 4.4) running as guests where every 30-40s the guest freezes for a few seconds. Do you think this setting would change this behavior?

The reason I ask is because I just noticed the clock is drifting badly on the guest, I suspect the total magnitude of the clock drift is the sum of all the freezes.


Thanks.

Click to view larstr's profile Virtuoso vExpert 2,410 posts since
Mar 11, 2004
It seems that there are issues with having an SMP kernel, even at 100Hz . Testing has shown that it's still not optimal for a VM, especially if you don't have a very recent cpu architecture.

Please look at this bug report I filed regarding this issue: http://bugs.centos.org/view.php?id=2189

Lars

Message was edited by:
larstr

update:
More testing revealed that there seems to be a failure atleast in the current xaox kernel-2.6.18-8.1.4.el5.centos.plus.VMware.i686 kernel, not making it's performance optimal. However, a properly built SMP kernel will have better results, and a uni processor kernel would be even better. See the link above for details.

Re: CentOS 5 kernel compiled with HZ=100...Yum repository

9. Jul 23, 2007 12:47 PM in response to: Xaox
Click to view robbedoes's profile Enthusiast 30 posts since
Jul 22, 2007
Hi !

Here's a centos noob.

If I'm not mistaken, steks involved are:
cd /tmp
wget http://vmware.xaox.net/centos/5.0/i386/kernel-devel-2.6.18-8.1.8.el5.centos.plus.VMware.i686.rpm
wget http://vmware.xaox.net/centos/5.0/RPM-GPG-KEY
wget http://vmware.xaox.net/centos/5.0/VMware.repo

mv VMware.repo /etc/yum.repos.d/
rpm -ivh kernel-devel-2.6.18-8.1.8.el5.centos.plus.VMware.i686.rpm
reboot

But It feels like missing something, how to choose THIS kernel ?

TIA !
Click to view boydd's profile Champion User Moderators 5,707 posts since
Jun 15, 2004
I finally got around to trying your recompiled kernels. Works great! Time is much better and seems that performance is too. :-)

100 Hz did the trick - now it would be nice if VMware would upgrade their vHardware to take advantage of the 1000Hz kernel.

DB
Click to view McLennan-Forrester's profile Lurker 1 posts since
May 18, 2007
:) :) :) :) :) :) :) :)

Love your work everyone.

Now here's a pretty picture...

http://screenshots.ipspace.com/9.13.633252712628125000.png

Do you think this is related to the "Asterisk won't run under VMWare" school of thought? Centos being the predominant platform, etc.

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities