VMware ESX Guest Disk IO

Published April 6th, 2009 by Paul De Audney

Knowing the state of your disk IO latency in VMware ESX can help you pre-empt performance & capacity issues before the occur. There are a few guidelines you should keep in mind. These notes are directed towards people using directly attached storage.

  • Write latency should be 0, because you have that fancy battery backed controller caching writes, right?
  • Read latency should be under 8ms.
  • Use the smallest stripe size possible for your RAID array setting. This helps keep random IO performance acceptable at the cost of some sequential performance.
  • Do not virtualise very heavy random IO workloads on shared arrays, other guest VMs wont like you for it.
  • Unless you have a very compelling reason not too, use RAID 10.

Some other notes, specific to Linux guests are:

  • Mount file systems with noatime and nodiratime, this will help reduce random IO.
  • Allocate enough memory to have some buffers.
  • Do anything possible to stop your VM swapping heavily (see point above).

As with any system, having great monitoring and performance trending allows for you to have an excellent overview of your infrastructure. Even if you don’t have external systems for performance trending, the VMware Infrastructure client with a few tweaks will display the data you want to see.

  1. Login to the VI Client.
  2. Click on an object in the left navigation tree.
  3. Click on the performance tab at the top of the main display pane.
  4. Click the “Change Chart Options” button
  5. Select the Disk chart option from the left expanding menu.
  6. Now change the counters, pick the Latency counters and Number counters, un-ticking the KBps  counters.
  7. Save the chart settings as disk-latency.

Now you can view in real time what is happening with your disk IO on the VMware ESX server. If you are more familiar with using a command line and Linux, you can SSH in to the ESX COS and use the command esxtop to view disk performance information.

  1. Launch esxtop (as root)
  2. Press “v”
  3. Press “s” and then “1″

Now you can see the per VM disk usage counters, with a 1 second sample period.

These rules of thumb are also applicable to Xen and Hyper-V.

0
Comments

Sysadmin cooking adventures: 8 minute chocolate brownie

Published April 3rd, 2009 by Barney Desmond

Sysadmins, on the whole, like tasty food. Even more than that, sysadmins like things that are easy, efficient, and cheap in terms of time and effort. We found a recipe that fulfils all the criteria.

This requires nothing more than a sturdy mug (though I’ve used a Duralex glass here), a spoon, and some common ingredients.

  1. 1/4 tsp vanilla
  2. 2 Tb vegetable oil
  3. 2 Tb water
  4. 2 Tb cocoa
  5. 4 Tb sugar (certified compatible with brown and raw sugar)
  6. 4 Tb plain flour

Just add each ingredient to the mug in order, one by one, mixing well at each step. It’ll be quite thick by the time you’ve added all the flour. Once done, microwave it for about 90sec (dependent on the power output of your microwave, we assume 1200W here). You can expect a modest amount of rise, and the texture should be a bit like a firm sponge. Be careful as it’s entirely possible to overcook and burn.

Ingredients in their fully mixed state, ready for cooking. The glass being used is a modest 250ml

Ingredients in their fully mixed state, ready for cooking. The glass shown is rated at 250ml, though you could use a large mug for a flatter, wider brownie if desired. Duralex uses toughened glass, I'd be a little wary of using a regular drinking glass in this way and stick to ceramics instead.

A finished brownie, suitable for immediate consumption. The addition of ice cream is also recommended.

A finished brownie, suitable for immediate consumption. The addition of ice cream is also recommended.

As a sysadmin, it’s only responsible to discuss possible failure modes and the consequences.

  • I found mine a little dry, I believe the addition of extra oil or water would likely fix that.
  • The finished brownie will be evenly very hot throughout, so take extra care.
  • If you overcook it you’ll likely notice the smell first. “Mmm, brownie smoke. Don’t breath this in!“. I managed to do this by leaving the microwave running for about five minutes, and succeeded in creating a noxious smell that lingered in the kitchen for a good quarter-hour. Intent on dumping the evidence I put the glass in the sink to run water over it. I was promptly greeted by a violent hissing noise and a small plume of volcanic steam.

This recipe is released under the GCL (General Cooking License). It is published “as is”, without warranty of any kind, including, but not limited to, deliciousness, ease of cooking, and fitness for consumption. Should the recipe be defective, you assume the cost of all necessary ingredients, cooking apparatus or medical attention.

0
Comments

Adobe Reader 9 released, doomsayers now have bigger fish to fry than Large Hadron Collider

Published April 1st, 2009 by Barney Desmond

Adobe Reader 9 actually came out mid-last year, I don’t know how I missed it until now. Let’s just conveniently ignore that. If you’ve been living under a rock (or, like me, don’t give a damn) then it’ll be news to you that one of the great new features is the ability to embed flash video (flv/swf) in PDFs. Incidentally, you can also put PDFs in flash…

divided-by-zero

Read the rest of this entry »

0
Comments

CSS3, MOFO, DO YOU SPEAK IT!?!

Published April 1st, 2009 by Barney Desmond

A colleague found a rather cute pop culture spoof recently that’s worth sharing. If you develop web content on a regular basis then I think this’ll really touch a nerve:

http://www.elliottkember.com/ie.html (contains some contextually-appropriate coarse language)

Did you notice the little peel-away flap in the top-left corner? :)

0
Comments