public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* xorg running very slow problem
@ 2010-01-10  5:54 John Wong
  2010-01-10  6:25 ` Thomas Fjellstrom
  0 siblings, 1 reply; 6+ messages in thread
From: John Wong @ 2010-01-10  5:54 UTC (permalink / raw)
  To: kvm

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: xorg running very slow problem
  2010-01-10  5:54 xorg running very slow problem John Wong
@ 2010-01-10  6:25 ` Thomas Fjellstrom
  2010-01-10  6:46   ` John Wong
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Fjellstrom @ 2010-01-10  6:25 UTC (permalink / raw)
  To: kvm; +Cc: John Wong

On Sat January 9 2010, John Wong wrote:
> 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=/et
> c/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.

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.

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


-- 
Thomas Fjellstrom
tfjellstrom@shaw.ca

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: xorg running very slow problem
  2010-01-10  6:25 ` Thomas Fjellstrom
@ 2010-01-10  6:46   ` John Wong
  2010-01-10  6:56     ` Thomas Fjellstrom
  0 siblings, 1 reply; 6+ messages in thread
From: John Wong @ 2010-01-10  6:46 UTC (permalink / raw)
  To: tfjellstrom, KVM list

Thomas Fjellstrom 提到:
> 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?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: xorg running very slow problem
  2010-01-10  6:46   ` John Wong
@ 2010-01-10  6:56     ` Thomas Fjellstrom
  2010-01-10  7:40       ` John Wong
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Fjellstrom @ 2010-01-10  6:56 UTC (permalink / raw)
  To: kvm; +Cc: John Wong

On Sat January 9 2010, John Wong wrote:
> Thomas Fjellstrom 提到:
> > 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.

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


-- 
Thomas Fjellstrom
tfjellstrom@shaw.ca

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: xorg running very slow problem
  2010-01-10  6:56     ` Thomas Fjellstrom
@ 2010-01-10  7:40       ` John Wong
  2010-01-10  7:50         ` John Wong
  0 siblings, 1 reply; 6+ messages in thread
From: John Wong @ 2010-01-10  7:40 UTC (permalink / raw)
  To: tfjellstrom, KVM list

Thomas Fjellstrom 提到:
> 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: xorg running very slow problem
  2010-01-10  7:40       ` John Wong
@ 2010-01-10  7:50         ` John Wong
  0 siblings, 0 replies; 6+ messages in thread
From: John Wong @ 2010-01-10  7:50 UTC (permalink / raw)
  To: tfjellstrom, KVM list

John Wong 提到:
> Thomas Fjellstrom 提到:
>   
>> 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.
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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-10  7:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-10  5:54 xorg running very slow problem John Wong
2010-01-10  6:25 ` Thomas Fjellstrom
2010-01-10  6:46   ` John Wong
2010-01-10  6:56     ` Thomas Fjellstrom
2010-01-10  7:40       ` John Wong
2010-01-10  7:50         ` John Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox