Comment 12 for bug 1815550

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [nvidia] gnome-shell high memory and CPU usage when using zsh

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.