Trash changes causes high CPU usage and freezes
- Gnome-shell eats about 30% of CPU in idle (according
top
) - Run the following:
for i in $(seq 0 1000); do touch file$i; gio trash file$i; done
. Gnome-shell eats about 130% of CPU when this script is running. - Run the following:
gio trash --empty
. Gnome-shell freezes until the script ends.
I don't know why and don't know how to debug gnome-shell. I don't see anything trash related in source codes except something in lookingGlass.js
, but this seems to be some garbage collector or what.
$ rpm -q gnome-shell gnome-shell-3.30.1-1.fc29.x86_64