When I'm logged to a tmux
session from two different computers, I'd like to be able to trace the amount of pending data on the sockets of both tmux
session. To test this I logged to computer A
and to computer B
, then from computer B
I used ssh to login to computer A
. From each console I attached to the same tmux
session and started running a script which prints the iteration number from 1 to 100M. Indeed, I see that the numbers of the iterations printed in the local (A
) console are larger than the numbers printed in the remote console (B
) since it takes time for the messages to travel to the remote computer
[user@server00 ~]$ lsof | grep tmux | grep unix
tmux 1073 user 4u unix 0xf6dc2ac0 0t0 18681 socket
tmux 1073 user 5u unix 0xf6dc3840 0t0 18682 socket
tmux 1073 user 6u unix 0xf137ed00 0t0 19768 socket
tmux 1073 user 7u unix 0xf6dc2880 0t0 18683 /tmp/tmux-1000/default
tmux 1073 user 8u unix 0xf6cbcd80 0t0 22647 /tmp/tmux-1000/default
tmux 1073 user 14u unix 0xf137ef40 0t0 12146 /tmp/tmux-1000/default
tmux 1092 user 4u unix 0xf6cbd200 0t0 24848 socket
tmux 1092 user 5u unix 0xf6cbef40 0t0 24849 socket
tmux 1092 user 6u unix 0xf6cbed00 0t0 24850 socket
tmux 1177 user 4u unix 0xf137fcc0 0t0 19947 socket
tmux 1177 user 5u unix 0xf137fa80 0t0 19948 socket
tmux 1177 user 6u unix 0xf137c240 0t0 19949 socket
[user@server00 ~]$ netstat -a | grep tmux
unix 2 [ ACC ] STREAM LISTENING 18683 /tmp/tmux-1000/default
unix 3 [ ] STREAM CONNECTED 12146 /tmp/tmux-1000/default
unix 3 [ ] STREAM CONNECTED 22647 /tmp/tmux-1000/default
Since I see only the path of /tmp/tmux-1000/default
I was hoping to see its size increasing but its size is always 0
[user@server00 ~]$ ls -l /tmp/tmux-1000/default
srwxrwx---. 1 user user 0 Feb 9 10:45 /tmp/tmux-1000/default
How can I see the data pending on the socket, and how do I know if the socket becomes congested?