[Bug 1815550] Re: [nvidia] gnome-shell high memory and CPU usage when using zsh

Daniel van Vugt daniel.van.vugt at canonical.com
Fri Apr 5 08:44:03 UTC 2019


It appears the relationship between zsh and gnome-shell can be
explained:

1. zsh writes to ~/.zsh_history after each command.

2. The Modify and Change timestamps of ~ change each time.

3. gnome-shell-extension-desktop-icons monitors ~/Desktop/* but also ~
because your home folder appears on the desktop too (unless you disable
that icon in Tweaks).

4. gnome-shell has to wake up and run JavaScript code every time ~ gets
touched, which is every time zsh runs a command.

I think this is the basic mechanism for this bug. Unfortunately I still
cannot reproduce any measurable memory or CPU usage though. And there's
no evidence this is related to Nvidia at all, yet. So the next step in
debugging might have to be with Chris.

Chris, please try this:

1. Tweaks > Extensions > Desktop icons > cog wheel > Show the personal
folder in the desktop = OFF

2. Log out and in again, to be sure.



** Also affects: zsh (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: zsh (Ubuntu Disco)
       Status: New => Incomplete

** Changed in: gnome-shell-extension-desktop-icons (Ubuntu Disco)
       Status: New => Incomplete

** Changed in: gnome-shell (Ubuntu Disco)
       Status: In Progress => Incomplete

** Changed in: gnome-shell (Ubuntu Disco)
   Importance: Critical => High

** Changed in: gnome-shell-extension-desktop-icons (Ubuntu Disco)
   Importance: Undecided => High

** Changed in: gnome-shell-extension-desktop-icons (Ubuntu Disco)
     Assignee: (unassigned) => Daniel van Vugt (vanvugt)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zsh in Ubuntu.
https://bugs.launchpad.net/bugs/1815550

Title:
  [nvidia] gnome-shell high memory and CPU usage when using zsh

Status in gnome-shell package in Ubuntu:
  Incomplete
Status in gnome-shell-extension-desktop-icons package in Ubuntu:
  Incomplete
Status in zsh package in Ubuntu:
  Incomplete
Status in gnome-shell source package in Disco:
  Incomplete
Status in gnome-shell-extension-desktop-icons source package in Disco:
  Incomplete
Status in zsh source package in Disco:
  Incomplete

Bug description:
  This *may* be an nvidia-specific problem, but the RSS of gnome-shell
  on my system grows without limit (over a couple of hours it's
  increased past 10G).

  At the same time, gnome-shell appears to become progressively less
  responsive.

  Restarting gnome-shell (via <Alt><F2> restart) drops shell RSS down to
  ~400MB and improves system responsiveness a bit.

  ProblemType: Bug
  DistroRelease: Ubuntu 19.04
  Package: gnome-shell 3.30.2-2ubuntu2
  ProcVersionSignature: Ubuntu 4.20.0+bcachefs.git20190130.d1f70147-1.0-generic 4.20.0
  Uname: Linux 4.20.0+bcachefs.git20190130.d1f70147-1-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.10-0ubuntu20
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Feb 12 13:35:59 2019
  DisplayManager: gdm3
  SourcePackage: gnome-shell
  UpgradeStatus: No upgrade log present (probably fresh install)

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



More information about the foundations-bugs mailing list