3.3.7beta1 Login Shell and Co Processes slow
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.3.7beta1
- OS version: 10.14.6
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
- Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
The upgrade to 3.3.7beta1 has made the Login Shell and CoProcesses painfully slow. Like keyboard based coprocesses now take 10 seconds to run "date". I tried clearing the /var/log/asl directory and that didn't fix anything. Changing the Login Shell to /bin/zsh -il has made new tabs fast, but didn't fix coprocesses.
One thing I did find was while on Login Shell normal I did a sudo fs_usage -w | grep 'login'
and it does a close on every fd starting from 524288 down to 3 when I open a new window. You can see this is 6 seconds.
10:29:11.112401 close F=524288[ 9] 0.000005 login.50151758
10:29:11.112404 close F=524287[ 9] 0.000002 login.50151758
etc
10:29:17.161652 close F=3 [ 9] 0.000004 login.50151758
When I switched to command /bin/zsh -il this goes away.
I'm guessing that coprocesses might be the same issue? Wasn't sure how to use fs_usage with coprocess. The CPU sample looks useless, but attached.ITerm2Sample.txt