[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4452
  • Last Modified:

slow performance in guest Redhat Linux on VMware ESX

While running this script,
i=0
while [[ i -le $1 ]]
do
i=$((i+1))
done
on a few RedHat 4 virtual guest machines, we noticed several different response times.  The worst case was on a guest OS which took over 40 seconds, whilst several other guest machines averaged around 4 or 5 seconds.  Would anyone be able to suggest the reason for such a wide discrepancy?

The slow machine runs on an ESX host with 4x3GHz Xeon cpu's, 30 GB of memory.  This physical host also runs 2 other guest systems, but all were relatively idle at the time of the test.  

On the slow machine, vmstat every 10 secs shows high cpu consumption (for such a simple script) and no memory shortfall (no swapping):

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 2  0      0 1444928 100896 402204    0    0     0     2 1011   104 51 21 28  0
 4  0      0 1443488 100896 402204    0    0     0    59 1017   217 75 25  0  0
 0  0      0 1446960 100896 402204    0    0     0    38 1014     93 34  9 57  0
 1  0      0 1447104 100896 402204    0    0     0    12 1012     89   7  2 91  0 <- end of test.

Any ideas much appreciated.

0
jainesteer
Asked:
jainesteer
  • 5
  • 2
1 Solution
 
jainesteerAuthor Commented:
Update: I should have mentioned that the timings were for counting up to 100,000 with the script.
0
 
nabeelmoiduCommented:
does the guest have vmware-tools installed ?
0
 
jainesteerAuthor Commented:
On the vmware infrastructure client for this guest OS, it says VMWare Tools: OK.  
But "VMwareTools" is not in the guest OS rpm list.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jainesteerAuthor Commented:
Ran vmware-tools on the guest (sorry, not used to vmware) and got version 3.5.0 build-110268.  
0
 
nabeelmoiduCommented:
just right clicked on the guest on the virtual center or did an rpm -ivh of the vmware-tools rpm ?
follow this document to make sure you've done the whole thing...

and repeat the tests with the vmware tools service on
0
 
jainesteerAuthor Commented:
On the guest OS, the vmware service is already running ...

# service vmware-tools status
vmware-guestd is running
# ps -ef | grep -i vm
root      2625     1  1 Nov01 ?        00:53:02 /usr/sbin/vmware-guestd --background /var/run/vmware-guestd.pid
# cat /var/run/vmware-guestd.pid
2625

So the performance test was run with the vmware tools service on.  I tried turning it off and back on again, but there is no difference in performance.
0
 
jainesteerAuthor Commented:
Problem resolved: the guest system was booting up with the ELhugemem Linux kernel instead of ELsmp. Set ELsmp as default in /etc/grub.conf and reboot.   Performance now normal!

Thks for your replies.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now