Skip to contentSkip to conversation

xorg running very slow problem

DISCUSSION John Wong 2 participants 6 messages Jan 10, 2010 KVM

lore
Share & tools
lore

John Wong

author
#0 lore raw

When i use qemu-kvm-87 or qemu-kvm-0.12.1.2 or snapshot (download from
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=summary),
xorg will running very slow (the screen refresh line by line), and i noticed the program "Xorg" will running very high cpu(>99% in top).

If i use qemu-kvm-86, xorg does not have this problem, and run just fine.

The modules is come from debian-2.6.32 kvm-intel.

The host is debian/x64/2.6.32.

I use this command to start kvm:

${KVM} -drive
file=${IMG},index=0,if=virtio,boot=on,cache=none,format=qcow2 \
-net nic,vlan=${NUM},model=virtio,macaddr=00:AA:BB:CC:DD:0${NUM} \
-net tap,vlan=${NUM},ifname="${iface}",script=/etc/kvm/kvm-ifup,downscript=/etc/kvm/kvm-ifdown \
-localtime -smp 2 \
-soundhw all \
-usb -usbdevice tablet \
-k en-us -monitor stdio \
-mem-path /hugepages \
-vga std -sdl \
-m 2048 -boot c

Anyone know how to solve this problem?

Please help, thank you.

#1 lore raw
Quoted 27 lines · John Wong

When i use qemu-kvm-87 or qemu-kvm-0.12.1.2 or snapshot (download from
http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=summary),
xorg will running very slow (the screen refresh line by line), and i noticed the program "Xorg" will running very high cpu(>99% in top).

If i use qemu-kvm-86, xorg does not have this problem, and run just fine.

The modules is come from debian-2.6.32 kvm-intel.

The host is debian/x64/2.6.32.

I use this command to start kvm:

${KVM} -drive file=${IMG},index=0,if=virtio,boot=on,cache=none,format=qcow2 \

(quoted diff) +0 -2
-net nic,vlan=${NUM},model=virtio,macaddr=00:AA:BB:CC:DD:0${NUM} \
-net

tap,vlan=${NUM},ifname="${iface}",script=/etc/kvm/kvm-ifup,downscript=/et c/kvm/kvm-ifdown \

(quoted diff) +0 -7
-localtime -smp 2 \
-soundhw all \
-usb -usbdevice tablet \
-k en-us -monitor stdio \
-mem-path /hugepages \
-vga std -sdl \
-m 2048 -boot c
Quoted 3 lines

Anyone know how to solve this problem?

Please help, thank you.

What happens if you try the vmvga video adapter instead? I used to have issues with even the console being horrendously slow, and switching to vmvga improved performance.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thomas Fjellstrom
[email protected]
author
#2 lore raw

Thomas Fjellstrom 提到:

Quoted 4 lines

What happens if you try the vmvga video adapter instead? I used to have issues with even the console being horrendously slow, and switching to vmvga improved performance.

Sorry, what is vmvga adapter?

How to switch it?
in guest OS/xorg or on host kvm command?

#3 lore raw
Quoted 9 lines · John Wong

Thomas Fjellstrom 提到:

Quoted 3 lines

What happens if you try the vmvga video adapter instead? I used to have issues with even the console being horrendously slow, and switching to vmvga improved performance.

Sorry, what is vmvga adapter?

How to switch it?
in guest OS/xorg or on host kvm command?

both, if you have an existing xorg.conf file in the guest.

in qemu you'd change '-vga std' to '-vga vmware' and change the xorg.conf in your guest (only if there is one with a driver specified) to use the vmware driver.

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thomas Fjellstrom
[email protected]
author
#4 lore raw

Thomas Fjellstrom 提到:

Quoted 5 lines

both, if you have an existing xorg.conf file in the guest.

in qemu you'd change '-vga std' to '-vga vmware' and change the xorg.conf in your guest (only if there is one with a driver specified) to use the vmware driver.

Yeah, after switch to use vmware, (both kvm command and xorg.conf), the problem is gone.
(use qemu-kvm.git snapshot)

Thank you, Thomas.

author
#5 lore raw

John Wong 提到:

Quoted 8 lines

Thomas Fjellstrom 提到:

Quoted 6 lines

both, if you have an existing xorg.conf file in the guest.

in qemu you'd change '-vga std' to '-vga vmware' and change the xorg.conf in your guest (only if there is one with a driver specified) to use the vmware driver.

Quoted 5 lines

Yeah, after switch to use vmware, (both kvm command and xorg.conf), the problem is gone.
(use qemu-kvm.git snapshot)

Thank you, Thomas.

After switch to use vmware video adapter, i have another problem. the keyboard did not work, unless i need put "Ctrl+Alt" first, and i can not use "Ctrl+Alt+f" hotkey switch to fullscreen.

Please help, thank you.