[Spice-devel] spice-gtk on MAC OSX

Marc-André Lureau mlureau at redhat.com
Tue Oct 15 12:27:05 CEST 2013



----- Original Message -----
> Hi,
> 
> > 
> > It is really slow indeed.
> > 
> > One thing you could try to discard the non-gtk part, is to run
> > spicy-stats against the replay tool.
> > 
> > You should be able to compile the "replay" branch on
> > https://git.gitorious.org/spice/elmarco-spice.git. Extract
> > http://elmarco.fedorapeople.org/debian.xz. And run server/tests/replay
> > -w debian. Then you can time/profile spicy -p 5000, or spicy-stats -p
> > 5000 (for excluding gtk usage).
> > 
> I was not able to checkout. I noticed there is a wip/replay and
> continued with this branch. But then I got this error:
> 
> mario at moe:/usr/src/elmarco-spice$ ./autogen.sh
> Cloning into spice-common...
> fatal: https://git.gitorious.org/spice/spice-common/info/refs not found:
> did you run git update-server-info on the server?
> Clone of 'https://git.gitorious.org/spice/spice-common' into submodule
> path 'spice-common' failed
> 
> Is there another repository?

No, you should clone from upstream. http://anongit.freedesktop.org/git/spice/spice-common.git/
However, you'll need to change this in spice-protocol:

--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -277,6 +277,7 @@ typedef struct SPICE_ATTR_PACKED QXLRam {
 typedef union QXLReleaseInfo {
     uint64_t id;      // in
     uint64_t next;    // out
+    void *data;
 } QXLReleaseInfo;


> 
> > 
> > It could be some overhead on other part of the OS?
> > Is there a profiler for overall system on OSX? (like perf on Linux)
> > 
> Do you mean something like this?
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sysdiagnose.1.html#//apple_ref/doc/man/1/sysdiagnose

No idea, this page seems to have a lot of entry point for system profiling:
http://dtrace.org/blogs/brendan/2013/09/18/the-use-method-mac-os-x-performance-checklist/

then there are some specific macosx tools, like opengl profiler (I don't know if gtk/cairo uses opengl indirectly on mac) 

> 
> > 
> > Well, it's explained above: "spice-gtk only supports sw canvas atm",
> > "replace it at build time, or use a runtime selection".
> > 
> > Look at how spicec does it for inspiration, if it can help you.
> I will take a look into it. Thanks.
> 
> /Mario
> _______________________________________________
> 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