I see high cpu usage after upgrading to 21.10
top
indicates that tracker
, systemd-udev
and modprobe
are running continuously
I also see mouse problems. I my mouse moves jerkily and I get spurious clicks while I "mouseover" a control.
running udevadm monitor
produces the following output, suggesting an nvidia problem (I have nvidia-470)
KERNEL[204.407566] add /bus/pci/drivers/nvidia-nvswitch (drivers)
UDEV [204.408283] add /bus/pci/drivers/nvidia-nvswitch (drivers)
KERNEL[204.555200] add /bus/pci/drivers/nvidia (drivers)
KERNEL[204.555217] remove /bus/pci/drivers/nvidia (drivers)
KERNEL[204.555419] remove /bus/pci/drivers/nvidia-nvswitch (drivers)
UDEV [204.556010] remove /bus/pci/drivers/nvidia-nvswitch (drivers)
My workaround is to stop and restart with
sudo systemctl restart systemd-udevd systemd-udevd-kernel.socket systemd-udevd-control.socket
(reference https://unix.stackexchange.com/questions/233247/why-is-systemd-udev-pegging-my-cpu)
This fixes the problems, but does not seem to be a general fix. In particular, logging out and logging in again causes the problem to restart.
Running nvidia-smi
gives an error:
NVIDIA-SMI has failed because it couldn't communicate with the
NVIDIA driver. Make sure that the latest NVIDIA driver is
installed and running.
I usually run Ubuntu-gnome on xorg, but get the same with vanilla ubuntu wayland.