Expected performance degradation when accessing ORDBMS within VM as opposed to natively?

0

1

Is there a significant increase in latency when accessing an ORDBMS (namely Oracle 11g) residing in the guest VM (from the host), as opposed to natively?

  • The development environment will be used to develop both web applications, and J2EE solutions.

System:

  • Laptop
  • Core i3 CPU
  • 6GB RAM

I intend on:

  • Using Oracle Virtualbox as the type II hypervisor
  • Having all data-tier functionality within the VM (PL/SQL)
  • Having all Oracle middleware residing on the host system (i.e. Glassfish, JRockit)
  • Having control-tier functionality residing on the host system (Java servlets)

Note: This configuration is only intended for the development system, not the production system.


Surely there will be an increase in latency, but what degree of increase is expected? 15-30ms?

  • The development system has 6GB RAM, and a 5400RPM drive

Since I'm working on a variety of projects which require Debian packages, I cannot migrate completely to a RHEL-based VM for development.


To take this to a higher level of abstraction:

  • Is there a traditionally adopted means for piping output from a given VM (within VirtualBox (as opposed to Xen/KVM)) to the host system?

  • Is a socket connection between the host, and guest required when you're accessing a VM locally?

Tyler

Posted 2013-01-04T05:25:59.550

Reputation: 209

Answers

1

I can't answer all of your questions, as I have not done exactly what you are doing. But I have used VirtualBox VMs on a dev machine to separate out different functions. In my case it was having a server service, lets say an SVN server, be hosted in a VM. Then I used the host presenting an iSCSI volume to the VM which had all of the SVN repo information. The VM would mount the iSCSI volume automatically and begin its service.

I achieved this by adding host-only network adapters to the VM and explicitly telling the VMs to look for iSCSI targets at that ipAddress, and then having the SVN service presented out through a public-facing ipAddress.

I accessed and managed the VMs by SSHing into them individually, since they were started automatically from a startup script and ran headless in CLI mode only.

If you have additional questions as to how I did certain things, let me know, I'll see what I can do.

CenterOrbit

Posted 2013-01-04T05:25:59.550

Reputation: 1 759

Had you experienced any significant increase in latency when dealing with the virtual appliance? What my question is asking is: will the increase in latency be prohibitive? – Tyler – 2013-01-10T13:37:44.860

You also give a guess of 15-30 ms, which makes me think that you are looking for exact numbers. If latency is that important, you would most likely need to run benchmarks and measure the differences on specific hardware. A VM will always have slower than native performance, but non time critical situations I was using it for, this delay was negligible. – CenterOrbit – 2013-01-10T16:49:42.100

I've run NFS servers, SAMBA servers, SVN servers, apache+php servers, 3Ds Max render nodes, and probably more things all from VMs using oracle virtualbox without noticing any sort of noticeable performance degradation. – CenterOrbit – 2013-01-10T16:52:08.757