-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
High CPU usage on version 0.39.0 #2911
Comments
I have similar experience. htop is oscilating between ~6% and 13% CPU usage, while the command |
We serialize sessions once per second now, might need to be tweaked (and/or exposed as a config variable). Just to make sure, does setting |
Yes, it does. |
Gotcha, thanks. I'll tweak this a little and release a patch in the next week or so (I want to wait to see if other issues bubble up). |
If you want to make the serialization frequency a configuration variable, I'd be happy to take that PR on. FWIW, |
My suggestions are:
If it is not too complicated, I would suggest that serialization is done only if the layout has been changed from the last saving. |
Hey @mike-lloyd03 - a PR for this would be greatly appreciated! I want to release a patch version next week on Monday morning. Do you think you can get it in before then? As for solutions: for now let's go with making the time configurable |
I took at look at it last night and it appears we need to make I'm actually going camping tomorrow and won't be able to work on this until I'm back on Sunday. So if someone else can work on it before then, that'd be great. Otherwise, I can do it, but I doubt it'll be done by Monday your time. |
No worries, I'll get it done @mike-lloyd03. Have fun camping! |
Also, this will be greatly mitigated by #2920 - though I still want to go for a 1 minute default. |
I am very surprised |
And even 1 minute might be too much, I think. One usually sets panes and tabs, and then rarely touches the configuration. So saving often might be pointless.
It would be nice if dev environment survived as well. 😄 |
Zellij 0.40.1 uses CPU even when it should be idle. It issues syscalls (including filesystem) periodically. Here is a minute of idling syscalls:
It writes the same I think Zellij should only save session when something in that session has been changed and should just idle completely (no CPU, no syscalls) when there are no user interactions and all programs started by Zellij do not output anything. |
I just installed the new version 0.39.0 and I see the CPU usage rose significantly. On version 0.38.2, the CPU usage of Zellij is under 1 %. On version 0.39.0 it is about 14-15 %. In both cases I have only one pane open and nothing else is running in the session.
My CPU: Intel i7-9750H (12) @ 4.5GHz
Considering that Zellij takes 15 % of CPU time while doing nothing on this CPU, I think 5th generation Intel CPU in my old X250 will not like it at all and it will be much more.
0.38.2
0.39.0
PS: Otherwise, I am really happy to see session resurrection and tab renaming features!☺️
The text was updated successfully, but these errors were encountered: