tmux-plugins / tmux-continuum

Continuous saving of tmux environment. Automatic restore when tmux is started. Automatic tmux start when computer is turned on.
MIT License
3.31k stars 149 forks source link

High CPU usage on MacOS after long sleep/hibernate time #126

Open DoDoENT opened 1 year ago

DoDoENT commented 1 year ago

If I put my Mac to sleep and keep it asleep for a more extended period (more than 3 days), after waking the CPU is at 100% (all cores), and killing tmux helps. The process that takes the most CPU is ps (not an individual, but scores of ps processes).

My guess is that when Mac is asleep for a more extended period, many "save session" tasks are queued and all processed after waking up. The same pattern of CPU usage I have when manually issuing the session save command.

Is it possible to either:

Of course, this is just my guess - maybe the origin of the problem is somewhere else. I'll be happy if someone else could reproduce this issue (I haven't been able on my Linux machine - it appears to be Mac-specific).

BradLewis commented 5 months ago

Did you ever resolve this issue? I am currently encountering it every morning after my mac is asleep over the night.

DoDoENT commented 5 months ago

I worked around it by disabling auto-saving of my sessions and simply got into the habit of saving them manually every time when I introduce a significant change to my active sessions/windows.