[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Daniel van Vugt
Thanks. And good catch, yes it should be
MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0 on 22.04

It sounds like the main issue is the input rate of the Razer DeathAdder
V2 and gnome-shell's inefficient processing of a high event rate. You
should be able to bring it under control with kernel parameter
usbhid.mousepoll=2 (or 4 or 8). But this is still a gnome-shell
performance bug.

** Summary changed:

- gnome-shell high CPU utilization when moving mouse cursor
+ gnome-shell high CPU utilization when moving a high frequency mouse

** Changed in: gnome-shell (Ubuntu)
   Status: Incomplete => New

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving a high frequency mouse

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
1. Nope, the log is normal, nothing new is logged when moving the cursor
around

2. Razer DeathAdder V2. BTW switching to 60 Hz doesn't seem to change
anything. However, switching to an old cheap mouse decreases gnome-
shell's CPU usage down to ~10%.

3. Unfortunately that didn't help. I also had this line in my
/etc/environment before:

MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0

Tried both with and without it.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Daniel van Vugt
Yes it's normal for the application's CPU usage to go up when it's
receiving input events. So that suggests this is just a high frequency
problem.

* Is your log flooding at all? (journalctl -f)

* I can already see you monitor is 144Hz. What model of mouse are you
using?

* Try adding MUTTER_DEBUG_FORCE_KMS_MODE=simple to /etc/environment and
reboot.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "8-wayland-thunderbird.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743011/+files/8-wayland-thunderbird.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "7-wayland-firefox.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743010/+files/7-wayland-firefox.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "5-wayland-no-windows.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743008/+files/5-wayland-no-windows.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "6-wayland-gnome-terminal.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743009/+files/6-wayland-gnome-terminal.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "4-xorg-thunderbird.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743007/+files/4-xorg-thunderbird.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "3-xorg-firefox.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743006/+files/3-xorg-firefox.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "2-xorg-gnome-terminal.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743005/+files/2-xorg-gnome-terminal.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "1-xorg-no-windows.png"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743004/+files/1-xorg-no-windows.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
** Attachment added: "top.mp4"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+attachment/5743003/+files/top.mp4

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-29 Thread Sergey Zolotarev
I'm sorry, the 20% part was a bit of an overstatement, after observing
more I can say it's somewhere between 1% to 5%.

I have the following extensions active:
- Desktop Icons NG
- Ubuntu AppIndicators
- Ubuntu Dock

Disabling all extensions didn't change anything in my case.

Also I've noticed an interesting thing: when moving the cursor, CPU
usage goes up for gnome-shell AND for whatever process on top of whose
window I"m moving it. For example, if a Text Editor window is active, it
goes up for the gedit process.

If it helps, below are a few screenshots of "top" taken when I moved my
mouse, with Xorg and Wayland for comparison, and a video.

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 2051383] Re: gnome-shell high CPU utilization when moving mouse cursor

2024-01-28 Thread Daniel van Vugt
20% when idle is 20% too much. So if we find out what that is then the
60% might become 40%.

Do you have any extra gnome-shell extensions active? Can you provide a
photo or screenshot of the desktop?


** Changed in: gnome-shell (Ubuntu)
   Status: New => Incomplete

** Tags added: cursor performance

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2051383

Title:
  gnome-shell high CPU utilization when moving mouse cursor

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2051383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs