KVM Server CPU use 100%

Discussion in 'Server Operation' started by planet_fox, Jun 8, 2009.

  1. planet_fox

    planet_fox Member HowtoForge Supporter

    Hi

    I have install KVM install on Debian Lenny 64. The Server uses when it run two Lenny Clients 99-100 % CPU .Is it normal ? than my debian guests runs so slowly :( . My Server have 4GB Ram and the clients become 512 MB ram my CPU have

    here my system


    Code:
     lsmod
    Module                  Size  Used by
    tun                    14084  2
    kvm_amd                29580  0
    kvm                   127464  1 kvm_amd
    ipv6                  288328  24
    bridge                 53544  0
    ext2                   66448  1
    sbp2                   25356  0
    loop                   19468  0
    parport_pc             31016  0
    parport                41776  1 parport_pc
    k8temp                  9216  0
    pcspkr                  7040  0
    snd_usb_audio          91296  0
    snd_pcm                81672  1 snd_usb_audio
    snd_timer              25744  1 snd_pcm
    snd_page_alloc         13072  1 snd_pcm
    snd_usb_lib            20224  1 snd_usb_audio
    snd_rawmidi            26784  1 snd_usb_lib
    snd_seq_device         11668  1 snd_rawmidi
    snd_hwdep              12040  1 snd_usb_audio
    snd                    63688  6 snd_usb_audio,snd_pcm,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep
    soundcore              12064  1 snd
    button                 11680  0
    i2c_nforce2            10752  0
    i2c_core               27936  1 i2c_nforce2
    evdev                  14208  0
    ext3                  124944  2
    jbd                    51240  1 ext3
    mbcache                12804  2 ext2,ext3
    dm_mirror              20608  0
    dm_log                 13956  1 dm_mirror
    dm_snapshot            19400  0
    dm_mod                 58864  8 dm_mirror,dm_log,dm_snapshot
    sd_mod                 29376  5
    ata_generic            10116  0
    sata_nv                27528  3
    8139too                28288  0
    amd74xx                13448  0 [permanent]
    libata                165600  2 ata_generic,sata_nv
    scsi_mod              160760  3 sbp2,sd_mod,libata
    dock                   14112  1 libata
    8139cp                 23808  0
    mii                     9856  2 8139too,8139cp
    forcedeth              54032  0
    ohci1394               32692  0
    ieee1394               93816  2 sbp2,ohci1394
    ide_pci_generic         9220  0 [permanent]
    ide_core              128284  2 amd74xx,ide_pci_generic
    ehci_hcd               35980  0
    ohci_hcd               25092  0
    thermal                22816  0
    processor              42304  1 thermal
    fan                     9352  0
    thermal_sys            17728  3 thermal,processor,fan
    
    My create script for guests

    Is my Server to slow for runnning 2 Clients ?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Normally this should be no problem. Did you take a look at
    Code:
    top
    on the host to find out what's eating up your resources?
     
  3. EISGE

    EISGE New Member

    Hi all

    I have the same problem,
    The CPU is always at 100%
    and CPU is very slow ....

    Here is how I setup a VM :

    sudo dd if=/dev/zero of=nom_systeme.qcow2 bs=1024 count=5000000

    virt-install --connect qemu:///system -n wiki -r 512 --vcpus=2 -f VM01.qcow2 -s 12 -c /path_iso/mini.iso --vnc --noautoconsole --os-type linux --accelerate --network=bridge:br0 --hvm

    How can I have better CPU performance ?
    For information the CPU, is an AMD64 and allow virtualization.

    Thanks for your help

    Regards
     
  4. planet_fox

    planet_fox Member HowtoForge Supporter

    Whats Distribution, do you use
     
  5. EISGE

    EISGE New Member

    for the hypervisor : Ubuntu Server
    Linux 2.6.35-28-server #50-Ubuntu SMP Fri Mar 18 18:59:25 UTC 2011 x86_64 GNU/Linux

    for the guest : Ubuntu 10-10
    Linux 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux
     
  6. planet_fox

    planet_fox Member HowtoForge Supporter

    Can you testing on the same Maschine with an other Distribution likes Centos or Fedora. I have Yesterdays the Problem with Debian Etch and have see with an other Distribution I havent the Problem and I have solve the Problem with an Installation of Debian Squeeze. Check the Version of your livirt and Kvm Software.
     
  7. EISGE

    EISGE New Member

    Well

    I tryed CentOS for the guest
    But it doesn't change a lot of things ...


    If I have to re-install the hypervisor, I think, I will try with Proxmox..

    But if someone have an idea for this CPU performance, it will be great.
     
  8. planet_fox

    planet_fox Member HowtoForge Supporter

    Its not the Problem of the Guest System, The Host System I think .
     

Share This Page