-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance regression over time on Ubuntu 21.10/GNOME 40 ? #190
Comments
So you say this issue disappears if you disable this extension? What about the RAM usage when the problems start? |
Yes, it appears that the problem is not present anymore as soon as I disable it. I'm unsure about the RAM usage, but I was not hitting swap for sure and I think the amount of RAM consumed by |
Ok, thanks! And you have also tested the extension with all additional features (e.g. thumbnails, grid in overview) disabled for multiple days? |
I did disable everything, except maybe "grid in overview" which seemed to do nothing whether it was enabled or not? |
Also, it is difficult for me to switch enabling / disabling the extension, because it requires restarting the whole session ; I guess it is because of #179 |
Alright, thanks. Maybe we can find something based on the messages in the error log. Any additional information about this issue will be helpful, too. |
Unfortunately, logs were really unhelpful and even the few infos I shared earlier might be unrelated to this extension. |
After a full week with only this extension disabled, I can confirm I dont hit problem anymore. I am going to re-enable it with |
Switching desktop with CTRL+ALT+(Left|Right|Up|Down) triggers this in the logs:
|
Captured
@mzur I can share the |
~24h after the change, my system is feeling sluggish, GNOME Shell consuming still ~15-20% of CPU but RAM hsa increased to 3.4%, i.e., 1114MB. There's definitively something leaking. |
|
Surely there's something wrong, but I can't produce this myself. |
Thanks for all the info @lissyx! I think I observed the |
Unfortunately, I don't really have time to dig into GNOME extensions and hack them :/ |
Welcome to the club 😄 it may take a while until someone else has the time to look into this. |
If someone can share instructions on how to install manually a debug-enabled extensions and add tracing / debugging to one (assuming, bug aside, it would still be usable for daily work), I'd be happy to install it and share more data. |
You can find developing instructions in the readme. Basically you have to clone the repository to the right location and you can start hacking "live". The only thing I found useful for debugging is the |
My PC keeps running for days and sometimes weeks with no restarts, I sometimes suspend it, but I don't think this is a reason why I am not seeing this performance issue. Do you always see the errors below when you switch workspaces?
It seems to me that this is a gnome version issue. So if you always see this issue, we will just have to debug the extension under the same software versions you have. I will try to download Ubuntu 21.10 and check it out, but please let me know whether you always see this error in the logs or not. |
Unfortunately, to date, those were the only ones I could see in any log. One should note that I do see some of
I'd be happy to try and test patches for more debugging if it can help rule out an issue on the extension side and rather point to something more upstream. |
I looked more into this and it seems like an upstream issue as you stated, so it will probably happen even without the extension.
I am creating a new branch to test what could go wrong by overriding this function as it seems like it has side effects after waking up from sleep, if you would like to help me with the testing, please checkout this branch and let me know if it improves the performance in your case, whether it fixes the JS error, and if it has any side effects. |
|
Is it the one that is currently available from extensions.gnome.org? I've updated to it this morning, but after a few hours, I feel like the system is again exhibiting the issue. Version in (sorry, because of the current status of the pandemic, i have not been able to investigate that problem further). |
Yes, the most current version there includes the |
@lissyx If you happen to upgrade to GNOME 42, please check if this issue still occurs. |
Thanks, I upgraded to Ubuntu 22.04 around early march and I was looking forward giving a new spin to this extension, but I saw you were waiting for the final release before. I'll keep you updated. |
Reinstalled a few minutes ago, enabled with those settings:
|
More than 24h later, no noticeable performance issue. I'll keep the issue open a few more days and let you know if it ever happens. If by the end of the week it's still good, I think we could assume it was fixed. |
Unfortunately, I had a few reboots in the meantime (because of unrelated WWAN firmware crashes), but I think the best way to consider that this bug is likely fixed is that I forgot about it over the past days.
|
Six days later, absolutely no symptom, so I can safely confirm it's fixed. |
I have been a happy user of your extension for a long time now. I upgraded my laptop approximately two weeks before the release date of Ubuntu 21.10 and while things were smooth on 21.04, I have been suffering from a very painful issue. After a while (1-2 days ?), my laptop (ThinkPad P14s Gen2 AMD, 32GB RAM) is starting to become sluggish.
htop
shows recurrent spikes over 40% of CPU fromgnome-shell
.Overtime the issue become more and more visible, to the point that clicking, or typing on keyboard is problematic, with missing entries as well as keys repeating.
I have tried playing with many options within the extensions parameters, but nothing would help. At some point, keeping all my extensions active except this one is the only way for me to get back a working machine.
I am not doing anything fancy like suspend, I have 2 screens connected over DisplayPort each 2560x1440p, main laptop screen is disabled, and GNOME settings for energy is set so that both monitor will go blank after 5 mins.
I tried a
perf record
ongnome-shell
when the issue was reproduced, but could not find anything actionable from the perf data file.The Gnome session is using Wayland via the "Ubuntu" session, but the vanilla "Gnome" session over wayland repro the issue as well.
The text was updated successfully, but these errors were encountered: