The sysctl did not need to be called so often by default and now it is not. This was a bug or at least a bit of poor design, I do not think the feature is a bad idea or should otherwise change. Also note that the slowness was not actually caused by automatic rename itself but by formats being evaluated too often.
-------- Original message -------- From: Mark Kettenis <[email protected]> Date:28/08/2015 21:25 (GMT+00:00) To: [email protected] Cc: [email protected],[email protected],[email protected],[email protected] Subject: Re: tmux uses too much cpu > From: Theo de Raadt <[email protected]> > Date: Fri, 28 Aug 2015 13:50:57 -0600 > > > > ktrace reveals that it's doing a wakeup every half second to > > > stat and probe each terminal and process group. My opinion is > > > that while the status bar updates are cool when I'm watching, if > > > there's nobody attached this is wasted effort. > > > > It's not your opinion, it's a fact. I've been running tmux with > > > > set-option -g status off > > set-window-option -g monitor-activity off > > > > in my ~/.tmux.conf since about the time tmux got imported for this > > reason, so that tmux does not cause a significant overhead when building > > on power-challenged platforms. > > the biggest cost is the process lookup via sysctl. I think this tmux > feature is simply too costly, anywhere. I really like the feature though.
