Discussion:
tmux freezing, xubuntu 13.04 with tmux build from source
(too old to reply)
Sam Roberts
2013-08-09 00:00:20 UTC
Permalink
It freezes for 4-15 seconds, no interaction, can go to other terminal
tabs, top doesn't show anything interesting, not sure what else could
be doing this. Doesn't seem related to whatever I'm doing.

I build from tmux-1.8 source, libevent is libevent-core-2.0-5, from system.

Terminal is xfce4-terminal.

Known? Ideas? Suggestions?

My config, doesn't seem to be cause of this:

set-option repeat-time 200
set-window-option -g mode-keys vi
bind-key y split-window ctl-caps-lock
bind-key -n C-j select-pane -D
bind-key -n C-h select-pane -L
Thomas Adam
2013-08-09 09:42:27 UTC
Permalink
Post by Sam Roberts
It freezes for 4-15 seconds, no interaction, can go to other terminal
tabs, top doesn't show anything interesting, not sure what else could
be doing this. Doesn't seem related to whatever I'm doing.
Is there a large amount of text being sent to tmux? Perhaps over SSH?

tmux allows for rate-limiting. See the following options:

c0-change-trigger
c0-change-interval

I suggest you try tweaking those values.

If that's not what you meant, please be more specific.

-- Thomas Adam
Sam Roberts
2013-08-13 04:17:34 UTC
Permalink
Post by Thomas Adam
Post by Sam Roberts
It freezes for 4-15 seconds, no interaction, can go to other terminal
tabs, top doesn't show anything interesting, not sure what else could
be doing this. Doesn't seem related to whatever I'm doing.
Is there a large amount of text being sent to tmux? Perhaps over SSH?
No ssh, no large text, this is an xfce term emulator on native, local,
ubuntu. Most tmux windows have nothing but a few vim sessions, and a
shell for me to run unit tests in. Usually this happens in the middle
of editing source code.
Post by Thomas Adam
If that's not what you meant, please be more specific.
Any particular specifics? Is it possible to generate a debug log, or something?

Not sure what else to say than tmux freezes. Its like the keyboard was
disconnected (except everything that doesn't go through tmux is fine).

I cannot interact AT ALL with tmux. Can't type in terminal, my editors
are frozen, C-b <arrow> doesn't allow changing focus to other panels,
can't change to other windows with C-0, C-1, etc.

But, the xfce term emulator is fine, I can go to another tab in the
emulator and do top, and see tmux, and web surf, etc. Just tmux (and
the vim and shells within) is unresponsive.

I then wait a while, and it comes back.

Sam
Thomas Adam
2013-08-15 11:47:37 UTC
Permalink
Post by Sam Roberts
Post by Thomas Adam
Post by Sam Roberts
It freezes for 4-15 seconds, no interaction, can go to other terminal
tabs, top doesn't show anything interesting, not sure what else could
be doing this. Doesn't seem related to whatever I'm doing.
Is there a large amount of text being sent to tmux? Perhaps over SSH?
No ssh, no large text, this is an xfce term emulator on native, local,
ubuntu. Most tmux windows have nothing but a few vim sessions, and a
shell for me to run unit tests in. Usually this happens in the middle
of editing source code.
Look at changing the c0-change-* options which tmux uses for
rate-limiting to the terminal.

-- Thomas Adam
Thomas Adam
2013-08-15 20:24:17 UTC
Permalink
Hi,

You disabled rate limiting? That's not what I would do. Quite the opposite
in fact. Stop making assumptions and just alter the values, will you?
Everything you have said suggests this is the problem.

Thomas
Post by Thomas Adam
Look at changing the c0-change-* options which tmux uses for
rate-limiting to the terminal.
I don't think I type fast enough to trigger this, and there are no
processes other than vim and shells waiting for me to give them input
when this happens, but I disabled the rate limiting, I'll see if it
helps and get back. Thanks.
Thomas Adam
2013-08-16 07:01:28 UTC
Permalink
Post by Thomas Adam
You disabled rate limiting? That's not what I would do. Quite the opposite
in fact. Stop making assumptions and just alter the values, will you?
You said "tweak values" and now you said "alter values". I did. I
changed one of the values to 0.
Which would disable the option, thus putting you back to not having the
option present, which is probably not what you want.
Can you suggest how you think they should be changed? I'm willing. You
think they should go up? Down? Sideways?
Maybe try 750 for both? Just leaving them at their defaults should give you
some indication of change, mind you. I presume then you're not seeing
anything different?
Post by Thomas Adam
Everything you have said suggests this is the problem.
I have 6 shells blocked waiting for user input, and a single vim that
I am currently using and no ssh. How this points to a large amount of
text is beyond me, but I'm willing to try.
Then it might not have anything to do with rate-limiting at all. It's just
that 4-5 seconds is long enough to make me think that's the reason,
especially when you say that you can't interact with tmux at all.

Can you turn off escape-time:

set -s escape-time 0

And see if that makes a difference (you'll need to kill tmux and resart it).
Can you then try all of this under XTerm and see if that makes a difference?
Finally, if none of that helps, can you kill tmux, and re-run it as:

tmux -vvvv

Get it to have this lag you describe and try changing/creating windows.
Then attach the tmux-server*.log in the directory you started tmux from, and
I'll take a look.

-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)
Sam Roberts
2013-08-16 14:29:59 UTC
Permalink
I'll work through your suggestions, thanks.

Some days it happens not at all (yesterday), some days 3 or 4 times,
so its not easy to know right away whether a config change has
improved the situation (and since its so short, I could consider it an
RSI timer, its only a mild annoyance, tmux is still quite enjoyable).
Sam Roberts
2013-08-16 00:44:58 UTC
Permalink
Post by Thomas Adam
You disabled rate limiting? That's not what I would do. Quite the opposite
in fact. Stop making assumptions and just alter the values, will you?
You said "tweak values" and now you said "alter values". I did. I
changed one of the values to 0.

Can you suggest how you think they should be changed? I'm willing. You
think they should go up? Down? Sideways?
Post by Thomas Adam
Everything you have said suggests this is the problem.
I have 6 shells blocked waiting for user input, and a single vim that
I am currently using and no ssh. How this points to a large amount of
text is beyond me, but I'm willing to try.
Sam Roberts
2013-08-15 19:03:52 UTC
Permalink
Post by Thomas Adam
Look at changing the c0-change-* options which tmux uses for
rate-limiting to the terminal.
I don't think I type fast enough to trigger this, and there are no
processes other than vim and shells waiting for me to give them input
when this happens, but I disabled the rate limiting, I'll see if it
helps and get back. Thanks.
Nicholas Marriott
2013-08-18 06:46:51 UTC
Permalink
Are you using tmux over ssh or locally? You say all of tmux freezes, you can't change panes or windows?

What tmux version is this?

-------- Original message --------
From: Sam Roberts <***@gmail.com>
Date: 16/08/2013 15:29 (GMT+00:00)
To: Thomas Adam <***@xteddy.org>
Cc: tmux-users <tmux-***@lists.sourceforge.net>
Subject: Re: tmux freezing, xubuntu 13.04 with tmux build from source

I'll work through your suggestions, thanks.

Some days it happens not at all (yesterday), some days 3 or 4 times,
so its not easy to know right away whether a config change has
improved the situation (and since its so short, I could consider it an
RSI timer, its only a mild annoyance, tmux is still quite enjoyable).
Loading...