Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Virtualbox performance Opensuse 12.1

  1. #1

    Default Virtualbox performance Opensuse 12.1

    Greetings.

    I recently bought a 32 core monster-server intended to be used for virtualization. The machine is equipped with 2 x 16 core AMD bulldozer processors.

    I have been using Virtualbox for several years and it's always been a very pleasant experience, up till now that is. I have installed two guest in this machine and experiencing terrible performance, frankly it performs like *****.

    Both VMs have been given 2 cores and 4 GB memory and can easily sink them both. An easy task such as scp to one of the guests on a Gbit network makes the machine consume more or less both cores given. The throughput seldom goes beyond 3Mb/sec. Repeating the same operation but to the host gives me a more expected throughput of about 30Mb/sec. I have used several different sources when performing these scp-tests.

    Host, 32 cores, 64 GB Ram, Opensuse (x64) 12.1
    Guest#1, 2 cores, 4 GB Ram, Opensuse (x64) 11.4
    Guest#2, 2 cores, 4 GB Ram, Opensuse (x64) 12.1

    I must have tested to change more or less every parameter available on those guest and nothing seem to help. I have tested both the OSE and the closed source versions as well as at least two different releases of the closed source version.

    I'm starting to believe there is some sort of compability issue and therefore very interested to hear if someone with a similar setup either share my experience or managed to get this working.

    Tia and Happy new year everyone!
    Jonas

  2. #2

    Default Re: Virtualbox performance Opensuse 12.1

    What happens if you give the vms a single core and/or less RAM?

  3. #3

    Default Re: Virtualbox performance Opensuse 12.1

    Quote Originally Posted by please_try_again View Post
    What happens if you give the vms a single core and/or less RAM?
    Now that is a setup I actually have not tried.

    Manjula, physical server, used as "copy source".
    Edna, VM (11.4)

    # One CPU
    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    100mb.file 100% 98MB 2.3MB/s 00:42

    # 1 CPU & 1GB RAM
    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    100mb.file 100% 98MB 2.3MB/s 00:42

    # 2 CPUs & 1GB RAM
    ## Test 1
    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    100mb.file 100% 98MB 3.4MB/s 00:29

    # 2 CPUs & 1GB RAM
    ## Test 2
    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    100mb.file 100% 100% 98MB 5.4MB/s 00:18

    # 2 CPUs & 1GB RAM
    ## Test 3
    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    100mb.file 100% 100% 98MB 5.4MB/s 00:18

  4. #4

    Default Re: Virtualbox performance Opensuse 12.1

    Look at there two tests. Same config but I waited about 10 min between the two tests, somethings fishy...

    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    isrjo@edna.wehay.com's password:
    100mb.file 100% 98MB 14.0MB/s 00:07

    isrjo@manjula:~> scp ./100mb.file edna.wehay.com:/tmp
    isrjo@edna.wehay.com's password:
    100mb.file 100% 98MB 2.0MB/s 00:49

  5. #5
    Kevin Boyle NNTP User

    Default Re: Virtualbox performance Opensuse 12.1

    On Fri, 30 Dec 2011 17:06:03 +0000, swejis wrote:

    > Look at there two tests. Same config but I waited about 10 min between
    > the two tests, somethings fishy...


    This is just a guess and I'm sorry I can't be more specific...

    I seem to remember reading somewhere that VM's can take a severe
    performance hit if TCP checksums and other functions are offloaded to the
    network adapter. If that is your problem and you can disable those
    functions on the adapter, it may help.




    --
    Kevin Boyle - Knowledge Partner

  6. #6

    Default Re: Virtualbox performance Opensuse 12.1

    Maybe you should monitor CPU(s) and memory usage, among other things, on the guests (and maybe host as well). I'll recommend conky.
    See this post: http://forums.opensuse.org/english/g...conkyconf.html

  7. #7

    Default Re: Virtualbox performance Opensuse 12.1

    Quote Originally Posted by Kevin Boyle View Post
    I seem to remember reading somewhere that VM's can take a severe
    performance hit if TCP checksums and other functions are offloaded to the
    network adapter. If that is your problem and you can disable those
    functions on the adapter, it may help.
    It's worth a try:

    Code:
    /sbin/ethtool -K eth0 tso off
    * eth0 or whatever your nic is.

    Kevin,
    Is that what you mean?

  8. #8
    Kevin Boyle NNTP User

    Default Re: Virtualbox performance Opensuse 12.1

    On Fri, 30 Dec 2011 18:16:02 +0000, please try again wrote:

    >
    > Code:
    > --------------------
    > /sbin/ethtool -K eth0 tso off
    > --------------------
    >
    > Kevin,
    > Is that what you mean?


    Yes, I think that is it. It would have taken me quite a while to dig it
    up. I haven't had to use it myself. If I remember correctly, it needs to
    be done for each VM.


    --
    Kevin Boyle - Knowledge Partner

  9. #9

    Default Re: Virtualbox performance Opensuse 12.1

    Hi guys, thanks a lot for your efforts, I really appreciate it.

    The Nics in the host are Broadcom Netextream II adapters (bnx2) with (at least) iscsi offload. So that might definitely be something worth trying.

    However, now then concentrating some of my tests against the host I also found abnormal differences between same tests. And the throughput between other, much older physical machines on the same net have much higher throughput. I think I have some issue in this new machine either with a broken driver or bad cable or something. I guess that needs to resolved first, maybe that is "the" issue..

    # Copy between two other hosts
    isrjo@moleman:~> scp ./100mb.file manjula.wehay.com:/tmp 100% 98MB 48.8MB/s 00:02

    # Copy to the "vm-host"
    isrjo@moleman:~> scp ./100mb.file ft.wehay.com:/tmp 100mb.file 100% 98MB 32.6MB/s 00:03
    isrjo@moleman:~> scp ./100mb.file ft.wehay.com:/tmp 100mb.file 100% 98MB 10.9MB/s 00:09

  10. #10

    Default Re: Virtualbox performance Opensuse 12.1

    Quote Originally Posted by swejis View Post
    I think I have some issue in this new machine either with a broken driver or bad cable or something. I guess that needs to resolved first, maybe that is "the" issue..
    Yes, it can be everywhere then.

    On the other hand, kvm is not very complicated to set up and would probably be happy with 32 cores (although I don't have such a monster, so I don't know). You can easily create a vm with one of the scripts I wrote (vm-create) in a package called vmscripts available in my repo. Btw, the package also includes vboxlive, that lets you create and run most Linux distros live systems on the fly in diskless vms (maybe it would help exclude disk I/O problems in your tests).

    Check here:


    If you run both, VirtualBox an kvm on your 32 cores server, you could certainly tell use which one performs better on this monster (it will be a great info in this subforum, I guess), and you would also find out if the issue you're having is related to VirtualBox (I doubt it though).

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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