Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
Greg Williams
Posts: 3
Joined: 13. Dec 2013, 19:18

Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by Greg Williams »

I've been running VirtualBox on a Mac Mini running OS X 10.9 for about a month, and performance has generally been quite good. I have one guest running Ubuntu Server 13.10 in headless mode. I became aware of performance issues when I started running WordPress on the guest. Sometimes performance is very good, with complex pages loading in a second or two. Other times, pages take take 30 seconds or more to load.

It seems as though if I'm logged into the Mac, either via VNC or at the physical console, performance of the Ubuntu guest is good. If I'm not logged-in, performance is bad. Logging in via SSH seems to have no effect.

I'm launching the guest with the following command from within an SSH session:

VBoxManage startvm "UBS01" --type headless

Note that I'm not using sudo, or otherwise running it as root.

Neither CPU load as reported by top on the guest nor the host ever seem to show any signs of significant load, nor any obvious differences between good performance and bad performance states.

Any suggestions on how to get this guest to run well consistently?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by socratis »

Although not en expert on this (not even advanced user), here are a couple of things that you can try out:
- Check out the metrics option in the 8.33 section of the manual.
- You don't have to sudo. In fact, you should not.
- Have you checked the WordPress and/or Ubuntu forums for similar issues?
- Have you tried running it non-headless? What does it look like?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Greg Williams
Posts: 3
Joined: 13. Dec 2013, 19:18

Re: Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by Greg Williams »

Socratis,

Thanks for your help.
  • I've reviewed the 8.33 section of the manual covering metrics. This doesn't seem to offer any information I haven't already analyzed via tools such as top running on the host and guest.
  • I didn't think I had to (or wanted to) sudo, so I'm glad you agree.
  • I haven't spent much time looking at the Ubuntu or WordPress forums on this subject because the performance problem seems to apply to the guest as a whole, not just WordPress. For example, whenever performance is bad, it takes a long time to get output from basic commands such as ls and top. This is so even if there are no ongoing queries to Apache/WordPress.
  • I get good performance in non-headless mode, which is expected: I have to be logged into the Mac's console in order to run in non-headless mode, and I already know I get good performance whenever I'm logged in at the Mac's console.
Thanks again.

Greg
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by Perryg »

Share the guests log file ( as an attachment )
As well as VBoxManage showvminfo <name> --details
Greg Williams
Posts: 3
Joined: 13. Dec 2013, 19:18

Re: Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by Greg Williams »

Here you go.
Attachments
VBox.log
Guest log
(54.53 KiB) Downloaded 11 times
UBS01.showvminfo.txt
Output of VBoxManager showvminfo command
(3.55 KiB) Downloaded 8 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 13.10 Server Intermittently Slow on OS X 10.9

Post by Perryg »

VirtualBox VM 4.3.2 r90405 darwin.amd64 (Nov 1 2013 15:42:35) release log
00:00:08.542130 AIOMgr: Host limits number of active IO requests to 16. Expect a performance impact.

Only warning I can find and it can be a big one as far as performance goes. Is there anyway to increase the number of requests on a Mac?

I also see you are running 4.3.2 and 4.3.4 is out that has fixed a few regression issues. Not sure if it affects your issue but worth trying.

Another thing that would be great to see is a snag of the log file while you are seeing the slow down, as well as the IO report from the guest when this is happening.

I use iotop
Post Reply