To clarify, when the original problem was discovered in cosmic the CPU
usage was around 80%, and the fix made it less than 50% [1].

But now even without the fix (although in bionic, still using the same
hardware), CPU usage for the same test case is around 50%. So indeed the
main issue seems to be gone.

What I can't figure out is why the problem isn't reproducible in bionic
even when the root cause was introduced in bionic version
1.52.1-1ubuntu1. The bug and the effect of the fix was much more obvious
in cosmic and disco...

Still, gjs version 1.52.5-0ubuntu18.04.1 eliminates even the theoretical
possibility of the CPU problem and it allows us to drop all patches \o/

[1] https://gitlab.gnome.org/GNOME/gjs/merge_requests/236

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gjs in Ubuntu.
https://bugs.launchpad.net/bugs/1803271

Title:
  [regression] Much higher CPU during some gnome-shell operations

Status in gjs package in Ubuntu:
  Fix Released
Status in gjs source package in Bionic:
  Fix Committed
Status in gjs source package in Cosmic:
  Fix Released

Bug description:
  [Impact]

  Since fixing bug 1672297 in release 18.04 we experience much higher (almost 
double) CPU usage during gnome-shell JavaScript operations, such as the icon 
spring animation [1]. Even just moving the mouse is a little more expensive now 
[2].
  [1] https://gitlab.gnome.org/GNOME/gnome-shell/issues/349
  [2] https://gitlab.gnome.org/GNOME/mutter/issues/283

  [Test Case]

  Use 'top' to measure the CPU usage of the gnome-shell process while
  tapping Super+A repeatedly. It should be much lower with the fix than
  without.

  [Regression Potential]

  Low. This particular fix is tiny
  (https://gitlab.gnome.org/GNOME/gjs/merge_requests/236) and has been
  released and used in a couple of upstream gjs versions already without
  issue.

  [Other Info]

  The fix is already released to 19.04 as part of gjs version 1.54.2-1.
  And already released to 18.10 as part of gjs version
  1.54.3-1~ubuntu18.10.1.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/1803271/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to