Is Virtualization an interim parallelization technique?

Status
Not open for further replies.
With more cores available in todays' platforms, there is lot of opportunity to use multi-threading in applications... Let us admit it, a lot of folks wouldn't rewrite applications as a default option... So the question is how can you leverage these numerous cores in the procesors?

Can virtualization be a answer? Can you break down the applications and package them as VMs that execute in parallel with otimized Intel-VM communciation?

I would be very interested in hearing how folks are combining virtualization & parallelization
 
Instead of the application developer having to deal with the various threading and management issues, by breaking down the logical sections of the applications and packing them as seperate applets (if you will) in VMs, you can now let the VMM scheduler handle the scaling across multiple cores...Additionally,
THis is one of the inputs we are getting from some end-users who have lots of "legacy" code than cannot be multi-threaded...
 

Lee Chang [MSFT]

Wise, Aged Ars Veteran
194
I think I see what you mean - breaking down an application into its constituent parts. Exchange does it somewhat like that, but for different reasons. You can run various Exchange roles on separate boxes/VMs, but the roles run as separate apps, and can run on one box if you want.

Your app would have to be aware of the fact that some of its components can be multiple, and virtualized, and then you would need to be able to dynamically provision new VMs dependent on load. I am not personally aware of software that does this now, but I'm not deep into the VM field. It's a cool idea though.

As to scaling beyond cores, I'm not sure what you mean. Windows can scale to 32/64 cores, Linux more than that (I think).
 

Megalodon

Ars Legatus Legionis
36,693
Subscriptor
Originally posted by Raghu Yeluri:
Instead of the application developer having to deal with the various threading and management issues, by breaking down the logical sections of the applications and packing them as seperate applets (if you will) in VMs, you can now let the VMM scheduler handle the scaling across multiple cores...
That's definitely wrong.

The hard part about taking a single-threaded application and spreading it across more cores is doing so without incurring too much overhead for it to be worth it. Running different parts of your application in separate VMs adds a lot of overhead, but doesn't really make any of the programming challenges easier. The best way to cut down on overhead is to run the application as threads on the same OS.

If you're able to break the application down into logical sections such that they can usefully employ more cores from separate VMs, then you're in a position to do the same thing on a single OS with less overhead.
Originally posted by Raghu Yeluri:
Additionally, current OSs can not scale beyond certain number of cores anyway and the VMMs can.
Which OSes are those? How many cores are you working with? It's pretty tough to reach unsupported numbers of cores with commodity hardware.
Originally posted by Raghu Yeluri:
THis is one of the inputs we are getting from some end-users who have lots of "legacy" code than cannot be multi-threaded...
Virtualization can't multi-thread legacy code for you. What it can do is let you run a number of different legacy applications on the same machine. You won't get any more parallelism out of this than you already had running on multiple separate servers, but it will probably save you money by cutting back on rack space, if you can consolidate a number of different servers into a single machine.
 
Seems like processes are enough of an abstraction for this, and I'm skeptical that a single os scheduler for a large numbers of cores is going to be less efficient than the hypervisor and multiple os schedulers.

That said, Jason Hoffman at Joyent told me they see better overall performance from a variety of web applications by splitting sun x4100's into 4 servers using solaris zones, even for single customers. Granted, zones are a much more lightweight (and limited) mechanism.
 
Originally posted by Raghu Yeluri:
Instead of the application developer having to deal with the various threading and management issues, by breaking down the logical sections of the applications and packing them as seperate applets (if you will) in VMs
If you can do that, you have already defined the thread boundary. A process is nothing but a thread with a separate address space. If you have a definite boundary, then guarding against threading issue is no more work than doing IPC (well, a bit simplified, but the difference is not that big).
you can now let the VMM scheduler handle the scaling across multiple cores
Modern OS scheduler schedule threads across cores just fine. You can't win by running another scheduler
Additionally, this is one of the inputs we are getting from some end-users who have lots of "legacy" code than cannot be multi-threaded...
Unless the app itself is check for single instance, you can run multiple instances on the same machine just the same.

Threading solves a different issue; running multiple version of the same thing, VM or otherwise, is different from threading the app.
 

LordFrith

Ars Legatus Legionis
25,252
Subscriptor++
I would think the only time that a programmer's that is saved by using a VM instead of just a process is basically the non-cpu and non-memory resource requirements.

For example, you don't have to find new ports for the process to listen on, you don't have to worry about certain exclusive device access, etc. These tend to be pretty simple to change, however, and having some meta-scheduler for this seems pretty stupid.
 
Originally posted by jason_watkins:
That said, Jason Hoffman at Joyent told me they see better overall performance from a variety of web applications by splitting sun x4100's into 4 servers using solaris zones, even for single customers. Granted, zones are a much more lightweight (and limited) mechanism.
That doesn't surprise me, mainly because it's Sun. I'll refrain from naming names, but basically Sun at one point won a contract for a large mail cluster at a company where I worked (despite my protests). In the end they admitted their software wouldn't thread well, but the solution was to run lots of zones and separate resources that way.

I'll refrain from ranting, but I never got through to anyone trying to explain that this was not going to be manageable. A year later, the new cluster is still not operational.
 
quote:
Originally posted by jason_watkins:
That said, Jason Hoffman at Joyent told me they see better overall performance from a variety of web applications by splitting sun x4100's into 4 servers using solaris zones, even for single customers. Granted, zones are a much more lightweight (and limited) mechanism.
That doesn't surprise me, mainly because it's Sun. I'll refrain from naming names, but basically Sun at one point won a contract for a large mail cluster at a company where I worked (despite my protests). In the end they admitted their software wouldn't thread well, but the solution was to run lots of zones and separate resources that way

Recently talked to a customer with lots of Java code. Since they were not multi-threaded to begin with, the Java service constituted multiple applications across physical servers for parallel execution of he components.. THis gave them better transactional latency than running on one server. However, they had go through the network stack across the servers.. They are trying to get these applicatins on to a same physical host via virtualization, to improve the latency (like a tier-collapse model) and leverage the inter-vm communication..

Sounded like an interesting model... Your thoughts appreciated on this.
 
Status
Not open for further replies.