This is a lot of memory but not excessive for Linux.

Does the delay gradually increase over time, or is it suddenly slow?

Also please upgrade to 2.6 and see if you can still reproduce.


On Thu, Nov 16, 2017 at 04:35:37PM +1000, Philip Rhoades wrote:
> Nicholas,
> 
> 
> On 2017-11-16 06:33, Nicholas Marriott wrote:
> > OK, what is the tmux memory use when it starts going slowly?
> 
> 
> top - 17:26:39 up 17 days, 19:07,  1 user,  load average: 1.36, 1.72, 2.01
> Tasks:   5 total,   0 running,   5 sleeping,   0 stopped,   0 zombie
> %Cpu(s):  3.9 us, 16.0 sy,  0.0 ni, 78.8 id,  0.7 wa,  0.1 hi,  0.4 si,  0.0
> st
> KiB Mem : 32819860 total,  2035884 free, 26119096 used,  4664880 buff/cache
> KiB Swap: 31249404 total, 30707196 free,   542208 used.  5567332 avail Mem
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
>  6998 root      20   0  254784 123604   3024 S   0.0  0.4  17:12.75 tmux:
> server
> 10105 phil      20   0 1521588 1.326g   2644 S   0.0  4.2   1900:01 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 R  64.0  4.2   1900:02 tmux:
> server
>  6998 root      20   0  254784 123612   3024 S   4.7  0.4  17:12.89 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 R  67.4  4.2   1900:05 tmux:
> server
>  6998 root      20   0  254784 123624   3024 S   5.6  0.4  17:13.06 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 S  51.3  4.2   1900:06 tmux:
> server
>  6998 root      20   0  254784 123632   3024 S   4.7  0.4  17:13.20 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 R  52.3  4.2   1900:08 tmux:
> server
>  6998 root      20   0  254784 123644   3024 S   4.7  0.4  17:13.34 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 R  68.0  4.2   1900:10 tmux:
> server
>  6998 root      20   0  254784 123652   3024 S   4.0  0.4  17:13.46 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521588 1.326g   2644 S  61.3  4.2   1900:12 tmux:
> server
>  6998 root      20   0  254784 123664   3024 S   5.3  0.4  17:13.62 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521696 1.326g   2644 S  47.5  4.2   1900:13 tmux:
> server
>  6998 root      20   0  254784 123676   3024 S   4.7  0.4  17:13.76 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521696 1.326g   2644 R  64.7  4.2   1900:15 tmux:
> server
>  6998 root      20   0  254784 123684   3024 S   4.7  0.4  17:13.90 tmux:
> server
> 
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
> 10105 phil      20   0 1521696 1.326g   2644 R  68.3  4.2   1900:17 tmux:
> server
>  6998 root      20   0  254784 123696   3024 S   4.3  0.4  17:14.03 tmux:
> server
> 
> 
> > Can you reproduce without any of this plugin stuff?
> 
> 
> I will try.
> 
> Thanks,
> 
> Phil.
> 
> 
> > On Thu, Nov 16, 2017 at 06:25:59AM +1000, Philip Rhoades wrote:
> > > Nicholas,
> > > 
> > > 
> > > On 2017-11-16 06:17, Nicholas Marriott wrote:
> > > > Hi
> > > >
> > > > What tmux version?...
> > > 
> > > 
> > >   tmux-2.5-4.fc26.x86_64
> > > 
> > > - obviously F26 not F25 . . sorry . .
> > > 
> > > Thanks,
> > > 
> > > Phil.
> > > 
> > > 
> > > > On Thu, Nov 16, 2017 at 06:11:22AM +1000, Philip Rhoades wrote:
> > > > > People,
> > > > >
> > > > > I leave my Fedora 25 x86_64 workstation on - it has 32Gb of RAM and an
> > > > > i7-4790K CPU @ 4.00GHz.
> > > > >
> > > > > I usually have one main tmux environment going with about 15 tabs as
> > > > > user
> > > > > "phil".  I sometimes have a second environment going as the same
> > > > > user with
> > > > > about 10 tabs and a root user environment going with about 10 tabs.
> > > > > However, even with only just the first environment, the tmux server
> > > > > gradually (over a day or two) uses more and more CPU time until it
> > > > > gets to
> > > > > the stage where it slows down typing in the xterm to about one
> > > > > character per
> > > > > second - ie there is a noticeable delay between typing the character
> > > > > and it
> > > > > appearing on the screen.
> > > > >
> > > > > The only way I have found to fix this is to save the tmux session,
> > > > > kill the
> > > > > tmux server and then restart the session.  Why does this input slow
> > > > > down
> > > > > happen?  Is there some way I can prevent it happening?  I attach the
> > > > > tmux
> > > > > conf below.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Phil.
> > > > >
> > > > >
> > > > > set -g default-terminal "screen-256color"
> > > > > set -g status-bg colour255
> > > > > set -g status-fg black
> > > > > setw -g window-status-current-bg colour11
> > > > >
> > > > > unbind C-b
> > > > > set -g prefix C-a
> > > > > bind C-a send-prefix
> > > > >
> > > > > bind - split-window -v -c '#{pane_current_path}'
> > > > > bind | split-window -h -c '#{pane_current_path}'
> > > > > bind-key -T prefix c new-window -c '#{pane_current_path}'
> > > > > bind-key -n C-Right next-window
> > > > > bind-key -n C-Left previous-window
> > > > > bind-key -n C-S-Left swap-window -t -1
> > > > > bind-key -n C-S-Right swap-window -t +1
> > > > > set -g window-status-current-format
> > > > > '#I:#(pwd="#{pane_current_path}"; echo
> > > > > ${pwd####*/})#F'
> > > > > set -g window-status-format '#I:#(pwd="#{pane_current_path}"; echo
> > > > > ${pwd####*/})#F'
> > > > > set-option -g allow-rename on
> > > > > set-option -g status-interval 1
> > > > >
> > > > > set -g set-titles on
> > > > >
> > > > > set -g set-titles-string '#(pwd="#{pane_current_path}"; echo
> > > > > ${pwd####*/})#F'
> > > > > set -g status-right ""
> > > > >
> > > > > setw -g automatic-rename 1
> > > > >
> > > > > setw -g mode-keys vi
> > > > >
> > > > > is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
> > > > >         | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
> > > > > bind-key -n C-h if-shell "$is_vim" "send-keys C-h"  "select-pane -L"
> > > > > bind-key -n C-j if-shell "$is_vim" "send-keys C-j"  "select-pane -D"
> > > > > bind-key -n C-k if-shell "$is_vim" "send-keys C-k"  "select-pane -U"
> > > > > bind-key -n C-l if-shell "$is_vim" "send-keys C-l"  "select-pane -R"
> > > > > bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
> > > > >
> > > > > set -g terminal-overrides 'xterm*:smcup@:rmcup@'
> > > > >
> > > > > set -g @plugin 'tmux-plugins/tpm'
> > > > > set -g @plugin 'tmux-plugins/tmux-sensible'
> > > > > set -g @plugin 'tmux-plugins/tmux-resurrect'
> > > > >
> > > > > run '~/.tmux/plugins/tpm/tpm'
> > > > >
> > > > >
> > > > > --
> > > > > Philip Rhoades
> > > > >
> > > > > PO Box 896
> > > > > Cowra  NSW  2794
> > > > > Australia
> > > > > E-mail:  p...@pricom.com.au
> > > > >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > > > Groups "tmux-users" group.
> > > > > To unsubscribe from this group and stop receiving emails from it,
> > > > > send an email to tmux-users+unsubscr...@googlegroups.com.
> > > > > To post to this group, send an email to tmux-users@googlegroups.com.
> > > > > For more options, visit https://groups.google.com/d/optout.
> > > 
> > > --
> > > Philip Rhoades
> > > 
> > > PO Box 896
> > > Cowra  NSW  2794
> > > Australia
> > > E-mail:  p...@pricom.com.au
> 
> -- 
> Philip Rhoades
> 
> PO Box 896
> Cowra  NSW  2794
> Australia
> E-mail:  p...@pricom.com.au

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to