VMware Cloud Community
LM_Chris
Contributor
Contributor

Reducing Processor Count

I have been having a performance problem with a few of our Linux systems (CentOS 5.5). I think I may have figured out the cause but would like confirmation from someone else. I think it is possible that I built my template with two processors. When I deployed from these templates I may have reduced the processor count down to one. Would this cause some noticable performance problems?

0 Kudos
6 Replies
AWo
Immortal
Immortal

Yes, that is possible. If the template has a multiprocessor kernel you might need to switch to a uniprocessor one.


AWo

VCP 3 & 4

\[:o]===\[o:]

=Would you like to have this posting as a ringtone on your cell phone?=

=Send "Posting" to 911 for only $999999,99!=

vExpert 2009/10/11 [:o]===[o:] [: ]o=o[ :] = Save forests! rent firewood! =
0 Kudos
jamesbowling
VMware Employee
VMware Employee

It is completely possible. When you installed the original template VM you were installing CentOS with the SMP kernel. Changing that from 2 vCPU to 1vCPU would mean that you are now running a single proc on a SMP kernel. This could possibly cause some issues.

If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!

James B. | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
0 Kudos
thakala
Hot Shot
Hot Shot

Which OS type are you running 32-bit or 64-bit?

If you are running 64-bit Linux there is no uniprocessor kernel for that, but you can configure x64 kernel for uniprocessor system by passing "nosmp" kernel parameter at grub.conf. To get absolutely maximum performance with uniprocessor Linux VM pass all these parameters "divider=10 nosmp noapic nolapic"

- divider=10 will slow Linux interrupt timer from 1000 Hz to 100 Hz, this will reduce idle time CPU consumption.

- nosmp will configure kernel to uniprocessor mode

- noapic will turn off APIC support which isn't needed on uniprocessor system

- nolapic will turn off local APIC support which also isn't needed on uniprocessor system

Tomi

http://v-reality.info

Tomi http://v-reality.info
0 Kudos
mcowger
Immortal
Immortal

No - unlike in windows, Linux has no penalty for running SMP kernel on a UP system.






--Matt
VCP, VCDX #52, Unix Geek, Storage Nerd

9773_9773.gif

--Matt VCDX #52 blog.cowger.us
0 Kudos
jamesbowling
VMware Employee
VMware Employee

Ah, I wasn't aware! Learn something new everyday! I always thought that the kernel was tuned specifically for SMP if that is used as opposed to uniproc.

If you found this at all helpful please award points by using the correct or helpful buttons! Thanks!

James B. | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
0 Kudos
LM_Chris
Contributor
Contributor

I made the changes. I'll wait and see what my end-users report.

0 Kudos