Results 1 to 5 of 5

Thread: VirtualBox Ubuntu guest faster than Ubuntu host

  1. #1
    Join Date
    Dec 2010
    Beans
    4

    VirtualBox Ubuntu guest faster than Ubuntu host

    Hi all,

    I've recently installed Ubuntu 10.10 64 bit (say host H). I also installed Ubuntu inside VirtualBox on H using the same image (say Guest G).

    I'm working on a fairly large java project. I've installed the same version of jdk (sun-java-6) on both H & G.

    To compile my project - it takes ~3 mins 10 secs (consistently) on H, whereas it only takes ~1 min 5 seconds on G . The full build (compile + tests) takes ~29 mins on H, whereas it takes only ~7 mins on G. Tests do a lot of writes to mongodb.

    This is very puzzling. I think it has something to do with fsync disk io etc. But I'm not proficient enough to dig further. Maybe it has something to do with partition sizes of H, G?

    Please help me understand this behavior.

    Thanks!

  2. #2
    Join Date
    Dec 2010
    Beans
    4

    Re: VirtualBox Ubuntu guest faster than Ubuntu host

    Ok I ran a few more tests and I guess that the culprit is indeed fsync. Is there a mechanism to tell Ubuntu to fysnc less often?

  3. #3
    Join Date
    Dec 2010
    Beans
    4

    Re: VirtualBox Ubuntu guest faster than Ubuntu host

    Hello guys, any suggestions / insights regarding this?

  4. #4
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: VirtualBox Ubuntu guest faster than Ubuntu host

    Me too feel the same..VirtualBox Ubuntu guest is faster than Ubuntu host,i feel this when i try to browse a web page..When i try to browse a web page in ubuntu host i feel it is little slower than the ubuntu guest..

  5. #5
    Join Date
    Dec 2009
    Beans
    184
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: VirtualBox Ubuntu guest faster than Ubuntu host

    Reminds me of this article I just read, a KVM vs. Virtualbox benchmarking analysis. Noticing that Virtualbox's performance exceeds its host's on some tests, it criticizes Virtualbox for not obeying fsync requests -- says it risks database integrity problems. Not that I'd be one to know if that's true.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •