Sheep Guarding Llama
Scott Alan Miller :: A Life Online

High IOWait on VMWare Server on Linux

November 20th, 2008 by Scott Alan Miller

In using VMWare Server running on Red Hat Enterprise Linux 5 (CentOS 5) I discovered a rather difficult problem.  My setup includes Red Hat Linux 5.2, Solaris 10 and Windows Server 2003 guests running on a Red Hat 5.2 host server all 64bit except for Windows running on AMD Opteron multicore processors on an HP Proliant DL145 G3.

The issue that I found was that the Windows guest was exhibiting serious performance issues.  The box would freeze regularly, networking would stop although pings continued but remote desktop (RDP) would be interrupted.  In the logs I consistently found symmpi errors in the System Event Log:

The device, \Device\Scsi\symmpi1, did not respond within the timeout period.

Because the issues were only exhibiting on Windows and not on Linux or Solaris guests I was convinced that the issue was Windows related.  I could see that the Linux host operating system was showing massive IOWait states (you can see this in top or with the iostat command from the sysstat package.)  I assumed that this was being caused by the Windows guest; it was not.

I turned off all three guest operating systems and noticed almost no drop in the IOWait levels, however if I turned of the VMWare Server process (/etc/init.d/vmware stop) the IOWait would drop almost instantly and return again as soon as I restart the process even without starting any virtual machine images.  Clearly the issue was with VMWare Server itself.

My first thought was to make sure that VMWare Server was up to date.  I have been running VMWare Server 1.0.7 and so downloaded and updated the very recent 1.0.8 update just to be sure that this issue was not addressed in that package.  It was not.  I am aware that the 2.0 series is available now but as this box is used a bit I am not interested yet in moving to the new series unless absolutely necessary.

Once I narrowed down that the issue was a problem with VMWare Server on Linux I was able to track down a solution.  Special thanks to Mr. Pointy for publishing the solution to this for Gutsy Gibson.  Red Hat and Ubuntu are sharing a problem in this case.

The issue is with memory configuration defaults with VMWare Server on this platform.  Very likely this will apply to Novell SUSE Linux, OpenSUSE, Fedora and others, but I have not tested it.  In the main VMWare Server configuration file (/etc/vmware/config) the following changes should be added:

prefvmx.useRecommendedLockedMemSize = “TRUE”
prefvmx.minVmMemPct = “100″

Then, in each of the individual virtual machine configuration files (*.vmx) you need to add:

sched.mem.pshare.enable = “FALSE”
mainMem.useNamedFile = “FALSE”
MemTrimRate = “0″
MemAllowAutoScaleDown = “FALSE”

These changes are taken directly from Mr. Pointy’s blog.  Once the changes are made you can restart VMWare Server (/etc/init.d/vmware restart) and the difference should be immediately visible.  Mr. Pointy posted his own sar results and here are mine.  You can clearly see the change in the %iowait column at 10:10pm when I restarted VMWare with the new configuration.  The numbers are low around 7:00pm because I had VMWare off much of that hour.

06:40:01 PM       CPU     %user     %nice   %system   %iowait    %steal     %idle
06:50:01 PM       all      0.16      0.00      1.77     43.15      0.00     54.92
07:00:01 PM       all      2.83      0.00      6.83      9.51      0.00     80.82
07:10:01 PM       all      0.10      0.00      1.38      4.93      0.00     93.59
07:20:01 PM       all      0.11      0.20      1.84     14.78      0.00     83.07
07:30:01 PM       all      0.10      0.00      2.08      8.84      0.00     88.98
07:40:02 PM       all      0.11      0.00      2.36     26.84      0.00     70.70
07:50:01 PM       all      0.11      0.00      2.32     28.54      0.00     69.04
08:00:01 PM       all      0.10      0.00      2.13     30.63      0.00     67.14
08:10:01 PM       all      0.10      0.00      2.06     22.74      0.00     75.10
08:20:01 PM       all      0.09      0.20      2.02     22.75      0.00     74.94
08:30:04 PM       all      0.09      0.00      2.21     23.22      0.00     74.48
08:40:01 PM       all      0.09      0.00      3.03     25.06      0.00     71.81
08:50:01 PM       all      0.09      0.00      3.09     27.21      0.00     69.61
09:00:01 PM       all      0.10      0.00      3.13     29.40      0.00     67.37
09:10:01 PM       all      0.09      0.00      3.11     25.56      0.00     71.23
09:20:01 PM       all      0.09      0.19      3.07     23.79      0.00     72.86
09:30:01 PM       all      0.09      0.00      2.98     21.50      0.00     75.43
09:40:01 PM       all      0.10      0.00      2.97     25.94      0.00     70.99
09:50:01 PM       all      0.10      0.00      3.28     32.70      0.00     63.93
10:00:01 PM       all      0.20      0.00      4.96     40.73      0.00     54.11
10:10:01 PM       all      0.69      0.00      8.57      1.23      0.00     89.50
10:20:01 PM       all      0.88      0.21      6.34      0.67      0.00     91.90
10:30:01 PM       all      0.81      0.00      6.04      0.26      0.00     92.89
10:40:01 PM       all      0.78      0.00      5.55      0.20      0.00     93.47
10:50:01 PM       all      0.77      0.00      5.47      0.07      0.00     93.69

After the change was complete I had no problem running i/o system intensive operations like disk compression, defragmentation, etc.

Original solution from: Mr. Pointy – Gutsy and VMWare Server – You’re In for Some Pain.

Posted in Daily

One Response

  1. High iowait/ VMware | Global Hosting Talk

    [...] I have been having high iowait times and I think I found the solution at http://www.sheepguardingllama.com/?p=2995 [...]

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

 
  • Buy Cheap valium with no prescription Now Low Prices. Discount Online Pharmacy Shopping.
  • Buy Cheap cialis use Online Online Prices For cialis use! Best Prices.
  • Buy Cheapest buying medicine no prescription Now Cheap Pharmacy Online. Top Online Pharmacy.
  • Buy Cheap ambien 10mg ambien Now Discount Online Pharmacy. Guaranteed Shipping.
  • Buy Cheapest valium high Online Best Internet. Discount Online Pharmacy.
  • Buy Cheap drugs for muscle spasms Now The Largest Internet Pharmacy. Best Prices.
  • nexium canada Online Without Prescription Best Online. Pharmacy Store.
  • Buy Cheap norvasc 10mg Now 24/Online Pharmacy. Buy Medications Online.
  • Buy Cheap info ultram Now Pharmacy At The Best Price! Best Online.
  • Buy drugs without prescription foreign pharmacies Without Prescription Doctor. Pharmacy Store. Low Prices.
  • Buy Cheap tablet viagra Online Top Online Pharmacy. Cheap Online Pharmacy.
  • Buy Cheapest prescription for pain medication Online Low Prices. 24/Online Pharmacy.
  • Buying Cheap phentermine 37.5mg. Offshore Rx, Good Prices. Guaranteed Shipping.
  • Buy Cheap depression antidepressants Online Cheap Pharmacy Online. Guaranteed Shipping.
  • Buy fat burn appetite suppress Without Prescription Doctor. Best Prices. Best Internet.
  • Buy Cheapest pain products Now Best Prices. Buy Medications Online.
  • Buy Cheap phentermine capsules Now Bonus Pills And Reorder Discounts! Low Prices.
  • Buy Cheap fda approved joint pain medications Online Special Prices For fda approved joint pain medications! Best Online.
  • Buy Cheap how to buy prescription medications online Online The Largest Internet Pharmacy. Best Online.
  • Buy Cheap acetaminophen codeine Online Best Online. Internet Prices For acetaminophen codeine!
  • Buy Cheap levitra experience Now Cheap Online Pharmacy. Top Online Pharmacy.
  • Buy Cheap benicar generic Now Drugs, Health And Beauty. Guaranteed Shipping.
  • Buy Cheap diflucan over the counter Online Pharmacy Store. Discount Pharmacy Online.
  • Buy Cheap cheap 37 5 phentermine Now Top Online Pharmacy. Online Medical Shop.
  • Buy Cheap cheapest ambien Online 24/Online Pharmacy. Pharmacy Store.
  • Buy Cheap buy phentermine no prescription Online Internet Prices For buy phentermine no prescription! Low Prices.
  • Buy Cheap propecia sale Now Best Drugstore. Discount Pharmacy Online.
  • Buy Cheapest valium 5 mg Online 24/Online Pharmacy. Best Prices.
  • Buy Cheapest where can i buy viagra online? Now Best Drugstore. Cheap Online Pharmacy.
  • Buy Cheapest xanax from the us no prescription Online Best Internet. 24/Online Pharmacy.
  • Buy cheapest cialis index Online Without Prescription. Low Prices. Best Internet.
  • Buy Cheap phentermine online without a prescription Now Cheap Pharmacy Online. Guaranteed Shipping.
  • Buy Cheap online drug guides Online Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheapest what is augmentin used for Now 100% Satisfaction Guaranteed. Best Online.
  • Buy Cheap medications without a prescription Now Discount Pharmacy Online. Online Medical Shop.
  • Buy Cheap weight loss health health Now WorldWide Shipping. Cheap Prescription Drugs.
  • Buy Cheapest codeine without prescription Online Best Prices. Guaranteed Shipping.
  • Buy Cheap list all antidepressant meds Online Best Online. Cheap Prescription Drugs.
  • Buy Cheap prescription medicine for back pain Now Pharmacy Store. Order Cheap Meds Without Rx.
  • Buy Cheapest viagra online cheap Online Best Prices. Online Prices For viagra online cheap!
  • Buy Cheapest order levaquin Now Low Prices. Special Prices For order levaquin!
  • Buy Cheapest buy xanax valium online florida Online WorldWide Shipping. Top Online Pharmacy.
  • Buy Cheapest cheap cialis site Now Prescription Drugs And Generic Medications.
  • Buy Cheapest buy weight loss pill Now Discount Pharmacy Online. Pharmacy Store.
  • Buy Cheap female viagra cream Now Internet Prices For female viagra cream! Low Prices.
  • Buy ambien cost Without Prescription Doctor. Pharmacy Store. Low Prices.
  • Buy Cheap prescription drugs on internet Now Special Prices For prescription drugs on internet! Free Viagra Pills!
  • Buy Cheap facts about dietary supplements Online Low Prices. Cheap Prescription Drugs.
  • Buy Cheapest ingredients in tramadol Now Best Prices. Pharmacy At The Best Price!
  • Buy Cheap valtrex shingles Now Guaranteed Shipping. No Prescription Needed.
  • Buy Cheap levitra interaction Now Cheap Online Pharmacy. No Prescription Needed.
  • Buy Cheapest buy medicine without prescription Now Online Medical Shop. Pharmacy Store.
  • Buy Cheap femara infertility Now Discount Online Pharmacy. WorldWide Shipping.
  • Buy Cheapest aspirin with codeine canada Online Best Prices. Guaranteed Shipping.
  • Buy Cheapest buy cialis tadalafil Now Internet Prices For buy cialis tadalafil! Best Internet.
  • Buying Cheap buy pain killers no prescription. Worldwide Rx, Good Prices. WorldWide Shipping.
  • Buy Cheap vitamin sales Online Guaranteed Shipping. Cheap Pharmacy Online.
  • Buy Cheap buy codeine 60mg online Now Best Internet. Top Online Pharmacy Supplier.
  • Buy Cheapest where to order phentermine without prescription Online Best Internet. Online Medical Shop.
  • Buy Cheap vitamins cheap Online Pharmacy Store. Cheap Prescription Drugs.
  • Buy Cheap ultram addiction Now The Largest Internet Pharmacy. Best Prices.
  • Buy Cheapest non prescription anti anxiety drugs Now Discount Pharmacy Online. Best Prices.
  • Buy Cheap viagra coupons Now Special Prices For viagra coupons! Best Prices.
  • Buy Cheap viagra cost Now Online Medical Shop. Cheap Pharmacy Online.
  • Buy Cheap buy generic pain killers without prescription Now Cheap Pharmacy Online. WorldWide Shipping.
  • Buy Cheapest drug pharmacy Now Best Prices. Buy Medications Online.
  • Buy Cheapest cheapest sildenafil citrate Online Best Online. Cheap Prescription Drugs.
  • Buy Cheap viagra and blood pressure Now WorldWide Shipping. Cheap Pharmacy Online.
  • Buy Cheap buy codeine in victoria bc Now Top Online Pharmacy. Online Medical Shop.
  • Buy cialis online get cialis cheapest Online Without Prescription. Low Prices. Best Internet.
  • Buy Cheap cheap order prescription viagra Now Drugs, Health And Beauty. Guaranteed Shipping.
  • Buy Cheap rheumatoid arthritis treatments Online Pharmacy Store. Internet Prices For rheumatoid arthritis treatments!
  • Buy Cheap killing parasites Online Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheapest information on xanax Online Best Internet. WorldWide Shipping.
  • Buy Cheapest buy pain medication online Now No Prescription Needed. Best Drugstore.
  • Buy Cheap ultram withdrawl Online WorldWide Shipping. 24/Online Pharmacy.
  • Buy Cheapest buy vitamins online Now Online Prices For buy vitamins online! Best Prices.
  • Buy Cheap weight loss pill without a prescription Online Free Viagra Pills! Cheap Online Pharmacy.
  • Buy Cheap cheap fast valium Now Online Medical Shop. WorldWide Shipping.
  • Buy Cheapest list anti anxiety drugs Online Discount Online Pharmacy. Best Prices.
  • Buying Cheap dosing for levitra. Mexican Pharmacy, Good Prices. Pharmacy Store.
  • Buy Cheap side effects viagra Now Pharmacy Store. Internet Prices For side effects viagra!
  • Buy Cheap safe online pharmacies Now Best Internet. Discount Online Pharmacy.
  • Buy Cheapest cialis effects side Online Best Drugstore. No Prescription Needed.
  • pfizer viagra discount Online Without Prescription Low Prices. WorldWide Shipping.
  • Buy Cheap mail order prescription drugs Online Special Prices For mail order prescription drugs! Best Prices.
  • Buy Cheap online xanax Now Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheap clomid safe Now Best Prices. The Largest Internet Pharmacy.
  • Buy Cheapest atenolol 25mg Now Cheap Online Pharmacy. Best Drugstore.
  • Buy Cheapest generic nexium Now Cheap Prescription Drugs. Best Prices.
  • Buy Cheapest vitamin tablets Now Pharmacy Store. Online Prices For vitamin tablets!
  • Buy Cheap buy prescription weight loss medication online Now 24/Online Pharmacy. Free Viagra Pills!
  • Buy Cheapest tramadol drug interaction Now Top Online Pharmacy. WorldWide Shipping.
  • Buy Cheap indian viagra Now Cheap Prescription Drugs. Guaranteed Shipping.
  • Buy Cheap cialis medicine Now Best Online. Top Online Pharmacy Supplier.
  • Buy Cheapest pain meds for sale Now WorldWide Shipping. Free Viagra Pills!
  • Buy Cheapest sale levitra Now Best Prices. Special Prices For sale levitra!
  • Buy Cheapest recreational viagra use Online Best Internet. Cheap Online Pharmacy.
  • Buy Cheapest alprazolam cheap Online Best Online. No Prescription Needed.
  • Buy Cheapest buy accutane without a prescription Now Online Prices For buy accutane without a prescription! Best Internet.