VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
11 Replies Last post: Dec 8, 2007 11:40 AM by magi  

Fusion SMP (2 CPU) support performs poorly (Solaris) posted: Dec 5, 2007 7:03 PM

Click to view mauroj's profile Novice 43 posts since
Dec 22, 2006
Running Solaris as a guest OS, I noticed performance is worse when I have 2 CPUs configured, versus 1.

I ran a dummy workload that spawns some number of CPU bound threads, and compared wall clock runtime
with 1 and 2 CPUs configured, 32-bit kernel and 64-bit kernel.

I apologize for the "ascii draw" table below, but as you can see, with 1 CPU configured, the runtime
scales very linearly with an increasing number of threads. With 2 CPUs configured, run time increasing
at a non-linear rate, with significantly worse performance (e.g. at 4, 8, and 16 threads, run time is
more than 2X for 2 CPUs versus 1 CPU).

I don't have a support contract, so I don't think I can file a bug on this...

Thanks,
/jim

32-bit 64-bit
CPUs 1 2 1 2


Threads
1 .83 .87 .83 .83

2 1.6 3.4 1.6 3.4

4 3.3 8.5 3.2 7.2

8 6.6 17.5 6.6 16.6

16 13.2 36.3 13.2 32.3

Click to view etung's profile Guru VMware Employees 11,255 posts since
Oct 15, 2006
Can't make out the table (try using the forum's tables instead of drawing your own), but what sort of host are you running on? What results are you expecting? Without the VM running, how much CPU is free?
Click to view scottishwildcat's profile Enthusiast 66 posts since
Aug 7, 2007
Here's the table, nicely-formatted...

Threads 32-bit 1xCPU 32-bit 2xCPU 64-bit 1xCPU 64-bit 2xCPU
1 .83 .87 .83 .83
2 1.6 3.4 1.6 3.4
4 3.3 8.5 3.2 7.2
8 6.6 17.5 6.6 16.6
16 13.2 36.3 13.2 32.3

Click to view etung's profile Guru VMware Employees 11,255 posts since
Oct 15, 2006
Thanks for the reformatted table. Not sure about this exact case, but 2 vCPUs are not always better - I think we've seen cases where performance is much worse, which is what you're seeing. It might be useful to try this on a Mac Pro (so you're not fighting for CPU time with OS X). Is this test case something you can make as simple as possible and make available to us?
Click to view Pat Lee's profile Master VMware Employees 1,199 posts since
Jan 3, 2007

Thanks for the report.

Virtual SMP provides benefit when you have enough cores to take best advantage of it.

In the case where you have only a two core machine, I would only use Virtual SMP if you have an applications that requires that they be present. The Mac still requires CPU usage on a two core machine, so you don't have the benefit of two fully available cores to leverage. Some users have seen benefits with some operating systems and others have reported some slowdowns with Virtual SMP a two core machine, it really depends on the test case. So, I would test to see if it works well for you on a dual core machine.

If you have a quad core or an octo core Mac Pro, I would DEFINITELY use Virtual SMP, there is where you see greater speed ups since the Mac has many cores and multiple can be used by the VM and the Mac at the same time with great performance with available cores as has been seen in CNET and other testing.

Pat


Click to view Pat Lee's profile Master VMware Employees 1,199 posts since
Jan 3, 2007

Jim,

I was pointing out the behavior and how it really depends on the case.

Please post the source code and details and it can be reported, though since we are dependant on the host scheduler there are some limits to what we can do in some cases.

I am glad you are happy with VMware Fusion overall.

Pat


Click to view magi's profile Master VMware Employees User Moderators 2,096 posts since
Aug 8, 2003
What's the cpu usage on the host, by the vmware-vmx process, when running your test (with 2 virtual CPUs, and 2 load-generating threads)? Is it a consistent ~200%, a consistent lower number, or choppy/varying?

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities