Freigeben über


SharePoint under Hyper-V versus Virtual Server 2005 R2

I have done a fair amount of SharePoint demos and developement over the past few years, and have always done this on my laptop using Microsoft Virtual Server 2005 or Microsoft Virtual PC, to host and run a SharePoint environment. Last year at Tech-Ed, while I was doing a demo, I had a comment from someone in the audience "Why is SharePoint so slow?" To some degree it makes sense, the specific SharePoint virtual environment which I was using at the time had almost every product known to man installed (the virtual hard drive size was 40GB), as well as being a domain controller and running on a laptop which only had 1GB ram assigned to the virtual machine. However, with the RTM release of Hyper-V (on Windows Server 2008), I wanted to see if performance was better now.

In other words, if I take the exact same virtual machine running on the exact same hardware, but running under Hyper-V as apposed to Virtual Server 2005, would I have a bettter experience? I have therefore taken some time to execute some simple (but in most cases scientific) tests to determine the difference.

the environment:

  1. Dell D620 laptop with 4GB of RAM and virtual machine on external hard drive (connected via USB)
  2. Dual boot; Windows Vista 32bit with SP1 and Virtual Server 2005 R2 on one partition, and Windows Server 2008 64bit with RTM version of Hyper-V on other partition
  3. Exact same virtual machine and exact same SharePoint application was used in both tests. Obviously in each scenario I had to make sure the appropriate VM additions were installed and running correctly
  4. In each case I assigned the virtual machine 2GB of RAM
  5. The VM disk is 43GB in size, runs Windows Server 2003, SQL Server 2005, MOSS 2007, Visual Studio 2005 Team Edition for Software Testers, is a domain controller and has various other products installed (which are not relevant for now)
  6. Used Visual Studio 2005 Team Edition for Software Testers to perform web load tests, the exact same script was run in each scenario

Important: before digesting the results, it is very important to understand that these results are not intended to give you any idea of what you will expect from a production environment! You would probably never have this configuration in production i.e. so many products on one VM, and running on a laptop. Rather use these figures to give an indication as to the difference between Virtual Server 2005 R2 and Hyper-V, especially in development and demonstration scenarios.

Okay, now for some results. The web test results are based on the standard collaboration portal with a custom master page (just branding changes). The site consists of a wiki, blog, document center, records center (populated with some Excel services based reports), a search center and some team sites. These were populated with about 50mb of data (documents and list items) across the sites. The results are also based on integrated NTLM authentication with no output caching enabled.

Average requests per second

image

Wow, in most case around 100% improved performance when using Hyper-V. This result is a summary of all page / document requests across the test script, which was executed for 5, 10 and 20 concurrent users with no think time.

Average page (and document get) response time

image

Yeah baby, once again around 100% faster, and even better than that, 100% faster while serving double the amount of requests!

Specific task response times

image

Better than 100% improvement in performance when downloading a PowerPoint document (the document is around 1mb in size). And once again, while serving double the amount of requests.

image

Yikes, executing a search (in search center) is generally around 200% faster under Hyper-V. And once again, while serving double the amount of requests.

Boot-up, save state, restore from saved state response times

image

Here I just wanted to measure some of my time wasting activities i.e. booting up the virtual machine (boot up time from switching it on until logon screen shows), saving state and restoring from saved state. In each of these scenarios, you can see that Hyper-V will save you time, a couple of minutes in each of my cases.

In summary

When I do demonstrations or development in SharePoint, I will now use Hyper-V. It's one thing having a gut feel that it is faster, but actually getting statistics is really helpful. I could possibly get more performance out of the Hyper-V scenario by assigning the Hyper-V virtual machine more than 2GB of RAM. If I compare each of the scenarios, I can assign more of my laptops 4GB of RAM to the virtual machine using Hyper-V on Windows 2008 over Virtual Server on Vista i.e. Hyper-V on Windows 2008 just gives me more available memory because it doesn't have as many services started by default.

I guess the next step, is to see what the difference is between running MOSS 2007 on Windows Server 2003 and Windows Server 2008...perhaps a future post.

Hope you enjoyed this,

Michael

Comments

  • Anonymous
    July 08, 2008
    PingBack from http://blog.a-foton.ru/2008/07/sharepoint-under-hyper-v-versus-virtual-server-2005-r2/

  • Anonymous
    July 11, 2008
    Spent this morning rebuilding my laptop with Windows Server 2008 so I can run Hyper-V Michael O'Donovan

  • Anonymous
    July 11, 2008
    The comment has been removed

  • Anonymous
    July 12, 2008
    Thanks for taking the time to benchmark this Michael, it's really helpful. The only fault that I can see is that it would have better to use Windows Server 2008 x64 for the Virtual Server 2005 R2 install as well; that way you were only changing one variant.

  • Anonymous
    July 14, 2008
    I recently read this post from Michael and I think I am ready to plunge into Hyper V on my laptop.. good

  • Anonymous
    October 02, 2008
    I'm curious if the test laptop (Dell D620) is utilizing a VT-enabled processor. I ask because it indicates whether this performance difference is comparing the overhead of virtual server versus Hyper-V, or whether it's comparing virtual server w/o VT to Hyper-V with VT.

  • Anonymous
    October 02, 2008
    Yes, it is using Vt-Processor.

  • Anonymous
    July 30, 2009
    Thank you for the excellent analysis Michael!  Well done! You should look at this Wordpress blog on how to build Windows Server 2008 on laptops.   I also suspect Hyper-V to be faster and erased my Dell XPS 1340 drive to make that happen. http://www.win2008workstation.com/wordpress/ At this point I don't even run VPC 07 or VS 05 because Hyper-V is my only place for virtual demos.