Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a client who has multiple machines accesing a database on a guest OS on Virtualbox (XP). They call me all the time to complain about how their apps on their systems freeze randomly when accessing the database.

This didn't happen before I migrated the old server to a VM.

Are there any tweaks I can setup to speed up VB?

I have hardware virtualization turned on within VB AND the BIOS. (Not sure if this would have adverse effects.)

I have also allocated a solid 4 gigs of memory to the guest OS with the other 4 for the host.

share|improve this question
    
How many CPU cores do you have assigned to their box? Also, what is the underlying HDD/SDD that the VM is hosted on? Any reason why you're using VirtualBox instead of a bare-metal hypervisor like Proxmox? –  kobaltz Jul 5 '13 at 20:17
    
You could have the VM on a platter and have a secondary VM HDD on a SSD that is used for the Database. This would increase the IOPS which is typically the biggest slowdowns on VMs. –  kobaltz Jul 5 '13 at 20:20
    
The host system has a Quad core CPU. I don't remember assigning more than one core. Maybe this could be the problem? Would assigning 3 cores to the guest and one to the host be a healthy ratio? The host is Ubuntu 12.04 Server running only virtualbox, a basic gui and ssh. –  Scandalist Jul 6 '13 at 1:23
    
Probably I/O related. Put VM on separate disk. Turn off disk caching. You can put the database on dedicated disk too. Next step might be to check into your database tuning options. And there is no reason to hold back cores if the VM is more important than the host. Give it at as many cores as the DB can utilize; 3 of 4, or even 4 of 4 with a 90-95% cap would not be a problem. Virtualbox doesn't allocate cores like RAM. If the VM is idle, the processing power will be available to the host. Your RAM should be fine if your not maxing it's usage out that is your not using 3.9GB of 4GB. –  Damon Aug 2 '13 at 6:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.