[Spice-devel] Announcing Spice 0.6.0

Bitman Zhou bitman.zhou at sinobot.com.cn
Wed Sep 1 18:55:30 PDT 2010


Ok, I installed libjpeg-turbo and did the test again - force it to use
jpeg wan compression although I am in 100Mbps LAN, the result is the
same. I remembered that qemu-spice.kvm.v11 has low CPU usage (around 50%
when playing movie).

sinobot at zgd-class-node:~$ ps -ef | grep kvm
root      2070 32332 99 09:05 pts/5    00:14:36 /usr/bin/kvm -M pc
-enable-kvm -m 512 -smp 2 -name vm-41430864 -uuid
22620cf5-9478-20cc-36b9-4af6bc63418d -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/i-41430864.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/var/lib/vms/i04/disk,if=ide,index=0,boot=on -net nic,macaddr=d0:0d:41:43:08:64,model=rtl8139,name=rtl8139.0 -net user -serial none -parallel none -usb -usbdevice tablet -soundhw ac97 -vga qxl -spice port=5900,password=13a6743fc4db4f759238706007e1cc6d,jpeg-wan-compression=always -device virtio-serial -device spicevmc
sinobot at zgd-class-node:/proc/2070$ sudo cat maps | grep jpeg
7fca003f8000-7fca00434000 r-xp 00000000 08:08
939743                     /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
7fca00434000-7fca00534000 ---p 0003c000 08:08
939743                     /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0
7fca00534000-7fca00535000 rw-p 0003c000 08:08
939743                     /opt/libjpeg-turbo/lib/libjpeg.so.62.0.0


By the way, a minor issue I found, qemu-options.hx:

 728 @item jpeg-wan-compression=[auto|never|allways]
 729 @item zlib-glz-wan-compression=[auto|never|allways]
 730 Configure wan image compression (lossy for slow links).
 731 Default is auto.

but, in the ui/spice-core.c, 

197 static const char *wan_compression_names[] = {
198     [ SPICE_WAN_COMPRESSION_AUTO   ] = "auto",
199     [ SPICE_WAN_COMPRESSION_NEVER  ] = "never",
200     [ SPICE_WAN_COMPRESSION_ALWAYS ] = "always",
201 };

So there is a typo:  "allways" vs "always".

BR
Bitman Zhou

在 2010-09-01三的 12:16 +0300,Yonit Halperin写道:
> On 09/01/2010 12:14 PM, Bitman Zhou wrote:
> > I am using Ubuntu 10.04, Lucid, x86_64:
> >
> > sinobot at zgd-class-node:~/build/spice-0.6/qemu-spice.kvm.v18$ gcc -v
> > Using built-in specs.
> > Target: x86_64-linux-gnu
> > Configured with: ../src/configure -v --with-pkgversion='Ubuntu
> > 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
> > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> > --enable-shared --enable-multiarch --enable-linker-build-id
> > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
> > --program-suffix=-4.4 --enable-nls --enable-clocale=gnu
> > --enable-libstdcxx-debug --enable-plugin --enable-objc-gc
> > --disable-werror --with-arch-32=i486 --with-tune=generic
> > --enable-checking=release --build=x86_64-linux-gnu
> > --host=x86_64-linux-gnu --target=x86_64-linux-gnu
> > Thread model: posix
> > gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
> >
> >
> > error message:
> >
> > /home/pcbot/build/spice-0.6/qemu-spice.kvm.v18/hw/spice-vmc.c: In
> > function ‘vmc_print_optional_subtypes’:
> > /home/pcbot/build/spice-0.6/qemu-spice.kvm.v18/hw/spice-vmc.c:185:
> > error: format not a string literal and no format arguments
> > make[1]: *** [spice-vmc.o] Error 1
> >
> >
> > I think it should be:
> >
> >      fprintf(stderr, "%s", *psubtype);
> >
> >
> > For the CPU usage. I am watching it with "top -d 0.200", previous
> > version it reads about 50~70% when playing a movie (100Mbps LAN), now
> > it's about 60~156%, mostly around 100%. I am configuring qemu-spice.kvm
> > as:
> >
> Do you have libjpeg-turbo installed or libjpeg? If libjpeg, can you try 
> libjpeg-turbo?
> 
> >
> > ./configure --enable-spice --disable-linux-user --disable-darwin-user
> > --disable-bsd-user --enable-kvm --enable-kvm-device-assignment
> > --disable-bluez --disable-xen  --audio-drv-list="oss alsa"
> >
> >
> > BR
> > Bitman Zhou
> >
> > 在 2010-09-01三的 05:06 -0400,Alon Levy写道:
> >> ----- "Bitman Zhou"<bitman.zhou at sinobot.com.cn>  wrote:
> >>
> >>> First thank you for your great job!
> >>>
> >>> I tried spice.kvm.v18 with spice-0.6.0. One build issue at
> >>> hw/spice-vmc.c, line 185
> >>>
> >>>             fprintf(stderr, *psubtype);
> >>>
> >>
> >> What error message do you get exactly? what compiler do you use? distribution?
> >>
> >>> And I found the CPU usage is higher than 0.4.2. I don't know if the
> >>> reason was that I still use the old Windows XP guest image. I did
> >>> upgrade the QXL driver.
> >>>
> >>> BR
> >>> Bitman Zhou
> >>>
> >>> 在 2010-08-31二的 17:00 +0200,Alexander Larsson写道:
> >>>> After some delays due to holidays we today proudly released Spice
> >>> 0.6.0.
> >>>> This is the beginning of a new stable series based on the new spice
> >>>> network protocol major version. It has some new exciting features
> >>> like
> >>>> offscreen surfaces and WAN mode, as well as a more solid codebase
> >>> and a
> >>>> saner qemu integration API.
> >>>>
> >>>> Updated sources and windows binaries are availible at:
> >>>> http://spice-space.org/download.html
> >>>>
> >>>> I'm currently working on updating the packages in Fedora 14.
> >>>>
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Spice-devel mailing list
> >>> Spice-devel at lists.freedesktop.org
> >>> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> >
> >
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 




More information about the Spice-devel mailing list