iTerm2 produce a lots of disk IO.
- iTerm2 version: 3.3.11
- OS version:High Sierra 10.13.6
I never notice it before but iTerm2 is doing a lot of disk IO (see attached io_iterm2.png from system performance monitor)
"fs_usage -w -f filesys iTerm2" show a lot of read/write access in directory ~/Library/Saved Application State/com.googlecode.iterm2.savedState
I disabled "Allow session to survive logging out and back in" and "Enable session restoration" and restart iterm. But this does not help.
# pwd
/Users/lolo/Library/Saved Application State/com.googlecode.iterm2.savedState
# l
total 54816
51936 -rw------- 1 lolo staff 26591104 Jun 21 11:17 data.data
24 -rw-------@ 1 lolo staff 8592 Jun 20 12:12 window_1.data
312 -rw-------@ 1 lolo staff 158768 Jun 21 11:17 window_124.data
592 -rw-------@ 1 lolo staff 299648 Jun 21 10:26 window_130.data
248 -rw-------@ 1 lolo staff 123104 Jun 21 11:11 window_156.data
240 -rw-------@ 1 lolo staff 118880 Jun 21 11:15 window_2.data
72 -rw-------@ 1 lolo staff 35696 Jun 21 10:29 window_49.data
384 -rw-------@ 1 lolo staff 193024 Jun 21 11:17 window_5.data
224 -rw-------@ 1 lolo staff 112416 Jun 21 10:29 window_50.data
248 -rw-------@ 1 lolo staff 123936 Jun 21 10:29 window_55.data
264 -rw-------@ 1 lolo staff 133744 Jun 21 00:03 window_58.data
256 -rw-------@ 1 lolo staff 127200 Jun 21 09:24 window_59.data
16 -rw------- 1 lolo staff 5064 Jun 21 11:09 windows.plist\
com.googlecode.iterm2.plist Detailed steps to reproduce the problem:
- start iTerm2
- open a few windows
- work a few hours in those windows.
What happened: iTerm is doing a lot of read AND write access in /Library/Saved Application State/com.googlecode.iterm2.savedState
What should have happened: Nothing should have been written to disk when using a terminal app (without updating preferences/configuration).