[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
** Changed in: cairo Status: Confirmed => Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
** Changed in: onboard Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
marmuta, I've uploaded the virtkey package to the Nexus 7 PPA as well. ** Changed in: ubuntu-nexus7 Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Scott, thank you. it works here after update and fixes the issues. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Scott, could we get python3-virtkey updated to 0.62.0 in the Nexus 7 PPA too? This would allow Onboard to show proper key labels for the number block and fix the action of the NumLock key. Raring has it already (0.62.0-0ubuntu1), though I've only now updated Onboard's version requirements. Built from source, it works alright with Onboard 0.99-tr1071-0nexus7.1 and current trunk on my Nexus 7. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Francesco, I've verified that your package builds and works on the device, and I'm preparing to upload it to our PPA. Can you tell me what you expect the next release number to be? 0.98.3? 0.99? I wan to ensure a smooth transition between the PPA package and the eventual release. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Hi Scott, Thanks for making the package available in your PPA. The next release superseeding the 0.98.2+tr1071 package that you are going to upload to your PPA will be 0.99.0. Onboard 0.98 is our current stable branch. It is not excluded that some day a 0.98.3 version with bug fixes for the 0.98 branch will appear. But it will not contain the improvements for the Nexus 7 that are currently in trunk. These will be available from the 0.99 branch, which will be created from trunk, when the changes for the Nexus are going to be released. Cheers -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
The snapshot package is now available in the Nexus 7 PPA. Francesco, please feel free to ping me on IRC or by email with any updates. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Reply to comment 16 and 17: By default, the ARM builds in PPAs are only available for projects from Canonical, so I posted a question on launchpad to ask the to enable it also for our PPAs (the PPAs of the Onboard devel team https://launchpad.net/~onboard). I am waiting for my request to be accepted or declined (it usually does not take long to get an answer) and will then upload the Snapshots. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
We could upload this for you to the ubuntu-nexus7 PPA which is enabled for ARM. Is this something you'd like us to do? Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
My request has been declined, unfortunately: https://answers.launchpad.net/launchpad/+question/214251 I just uploaded revision 1071 to our Snapshots PPA: https://launchpad.net/~onboard/+archive/snapshots It should however not be to difficult to build the ARM, if you fetch the package from our PPA: - Enable the Snapshots PPA - Get the Onboard source from the PPA (I think that it gets the most recent version from all the available repositories; it is the version in the PPA at the moment): $ apt-get source onboard - Get the the packages needed to build Onboard (root privileges are required as it might install packages): $ sudo apt-get build-dep onboard - Change directory to the downloaded Onboard folder: - Call the command to build the debian package of Onboard (Unless you created a new debian/changelog entry with your own key, you should get signing errors at the end of the build of the package; you can ignore them.): $ debuild -tc - Double click on the created deb to install it. @marmuta As I don't have a table, could you please test of the steps indicated above are working on your tablet? Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Scott, can you please grab the package from the PPA and see about an upload to the ubuntu-nexus7 PPA (after ensuring it builds for us, etc.) thanks. ** Changed in: ubuntu-nexus7 Assignee: Chris Wayne (cwayne18) = Scott Sweeny (ssweeny) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
@ Chiang Many thanks for your offer. It will be great if you upload it to your PPA. But please, be aware that it is a Snapshot of revision 1071 of trunk; it is not a release. It should however already contain noticable improvements for the Nexus 7 compared to the release in the raring main repository. May I contact somebody of the ubuntu-nexus7 team when there is another version available for the PPA and if so, how to best contact you? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Launchpad has imported 10 comments from the remote bug at https://bugs.freedesktop.org/show_bug.cgi?id=56891. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2012-11-08T20:29:12+00:00 marmuta wrote: Created attachment 69773 cairo-perf results for Onboard starting up with Ambiance theme I'm investigating why Onboard with the default theme takes upwards of 30s to start up on a Nexus 7 with Ubuntu 12.10. It's barely usable even with the simplest themes, where just a plain filled and stroked rectangle is drawn per key. A cairo-perf-trace of Onboard starting up shows the Nexus 7 to be ~200x slower than a Sandy Bridge i3 laptop, but single-threaded CPU performance differs just by a factor of roughly 4.5 (see Attachment). Also the cairo image backends are vastly faster than the xcb/xlib one's, which is the reverse of the i3's results. The Nexus 7 has a quad-core Tegra 3, me thinks the hardware isn't necessarily the limiting factor. Is this a driver issue? Xorg takes close to 100% CPU during heavy cairo rendering with (python-based) Onboard. Here's the original bug report: https://bugs.launchpad.net/ubuntu-nexus7/+bug/1070760 gtkperf on the Nexus 7: GtkPerf 0.40 - Starting testing: Thu Nov 8 18:58:56 2012 GtkEntry - time: 0.77 GtkComboBox - time: 17.09 GtkComboBoxEntry - time: 6.95 GtkSpinButton - time: 2.42 GtkProgressBar - time: 2.91 GtkToggleButton - time: 7.59 GtkCheckButton - time: 2.12 GtkRadioButton - time: 3.66 GtkTextView - Add text - time: 6.94 GtkTextView - Scroll - time: 1.13 GtkDrawingArea - Lines - time: 12.66 GtkDrawingArea - Circles - time: 27.67 GtkDrawingArea - Text - time: 19.19 GtkDrawingArea - Pixbufs - time: 2.31 --- Total time: 113.47 libcairo2 1.12.2-1ubuntu2 nvidia-tegra3 binary Xorg driver 16.0-0ubuntu3 Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/14 On 2012-11-08T20:35:40+00:00 marmuta wrote: Created attachment 69774 cairo-trace --profile onboard Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/15 On 2012-11-08T22:37:41+00:00 Psychon-d wrote: Are you sure that you want to report this against cairo-xcb? Because I am pretty sure that next to nothing uses this and certainly ubuntu doesn't by default. So I'm tempted to reassign this to cairo-xlib. Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/17 On 2012-11-08T22:50:16+00:00 Psychon-d wrote: Oh and: It might be helpful to run your trace through cairo-analyze- trace (which is in the perf/ subdirectory). That should help identifying the slow operation. Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/18 On 2012-11-09T08:44:14+00:00 marmuta wrote: Thanks, I wasn't sure which one to pick. You're right, the main context has a cairo.XlibSurface as target. I'll attach the results of cairo-analyse-trace. That lookes very useful. If I understand the percentages right, I'd need to cut down on mask calls first and it was perhaps a good idea to cache gradient strokes and fills. This is with Onboard trunk, btw. Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/19 On 2012-11-09T08:59:00+00:00 marmuta wrote: Created attachment 69795 cairo-analyse-trace onboard.trace onboard_ambiance_nexus7_analyse_trace.txt Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/20 On 2012-11-09T09:12:55+00:00 Chris Wilson wrote: The really interesting aspect of the trace is the where the drawing is nested 10s of levels deep (50) with all the results being kept around in a stack until they get masked onto the output. It's certainly the first time I've seen that pattern in a trace, and it may indeed be the right approach for you, but it looks inefficient. Also you have to be aware that you will be limited by driver quality when using cairo-xlib, which is likely to be a contributing factor as well as the hw differences for comparing SNB to the Nexus7. Reply at: https://bugs.launchpad.net/ubuntu- nexus7/+bug/1070760/comments/21 On 2012-11-09T09:54:50+00:00 marmuta wrote: Hmm, there shouldn't actually be more than five or so nesting levels, the first probably being GTK's double buffering. How can I read the levels from the trace? I
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
marmuta, Is there a ppa where I can try out these fixes? Thanks! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Sure, I'll ask Francesco to make a snapshot of trunk, he'll post here when it's ready. Feedback is very welcome. There's some new stuff too, multi-touch support and rudimentary docking (still working on that). A note of precaution: trunk rev. 1069 seems safe to install on the Nexus 7, I just did, but for anything outside of releases it's probably wise to have some alternative keyboard input/auto-login ready. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
** Changed in: onboard Assignee: (unassigned) = marmuta (marmuta) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
** Also affects: cairo via https://bugs.freedesktop.org/show_bug.cgi?id=56891 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/cairo/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Good news, I've been able to squeeze some more performance out of Onboard, with a lot of optimizations and a little bit of corner cutting. A warm start with Compact+Ambiance is down to around 6 seconds. The other themes a second or so less. Most typing has become more fluid too, the delays on modifier presses and layer switches are shorter most of the time. The splash-screen like empty frame on startup is gone, Onboard just pops into existence when it's ready. I'll mark the Onboard part as committed, but more speed improvements will likely come over time. ** Changed in: onboard Status: Confirmed = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: cairo (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
In general the keyboard is very slow IMO. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
Thanks marmuta for the investigation work, is there any chance you could open an upstream cairo bug about the issues you found? It feels weird that the cpu is several order of magnitude than an i3 still ** Changed in: cairo (Ubuntu) Importance: Undecided = Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
I've opened an upstream bug here: https://bugs.freedesktop.org/show_bug.cgi?id=56891 CPU performance isn't that bad, almost a quarter of the i3 per thread. It's apparently just cairo rendering to the xlib/xcb backends that takes the big hit. I'm not sure why, either the intel driver on the i3 accelerates cairo really well or the tegra driver does extremely poorly. The weird thing is, cairo rendering to image backends is almost 10 times faster than to the x backends. I would try and exploit this to speed up Onboard, but then it would be the reverse on intel... Perhaps we need something closer to OpenGL for rendering, that's where the Tegra shines. I'm experimenting with a clutter right now ** Bug watch added: freedesktop.org Bugzilla #56891 https://bugs.freedesktop.org/show_bug.cgi?id=56891 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
I'll attach some cairo-perf results of Onboard starting up with the Ambiance theme. The Nexus 7 takes a whopping 200x longer than the i3 laptop. Single-threaded CPU performance just differs by a factor of some 4.5, and that number would probably have been ok with Onboard. 200x though, that's nothing we can make up for. Adding cairo to the list. ** Attachment added: cairo_trace_onboard_ambiance.txt https://bugs.launchpad.net/ubuntu-nexus7/+bug/1070760/+attachment/3426964/+files/cairo_trace_onboard_ambiance.txt ** Also affects: cairo (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1070760] Re: 1st time running onboard with default theme is painfully slow
** Attachment added: The cairo trace, just starting up and closing Onboard with the Ubuntu default theme. https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1070760/+attachment/3426968/+files/onboard.trace.lzma -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1070760 Title: 1st time running onboard with default theme is painfully slow To manage notifications about this bug go to: https://bugs.launchpad.net/onboard/+bug/1070760/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs