Hi, After a week of uptime, several users have tmux session eating a full core on a CentOS-5 x86_64 linux machine. The cpu usage is initialy fine but it seems to increase to some unexpected values!
top - 15:54:17 up 11 days, 20:10, 4 users, load average: 0.25, 0.31, 0.31 Tasks: 201 total, 1 running, 200 sleeping, 0 stopped, 0 zombie Cpu0 : 0.0%us, 1.0%sy, 7.6%ni, 91.4%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 0.0%us, 15.3%sy, 0.0%ni, 84.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.0%us, 0.3%sy, 0.3%ni, 99.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu4 : 1.3%us, 0.3%sy, 0.0%ni, 98.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu5 : 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu6 : 0.0%us, 8.0%sy, 0.0%ni, 92.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu7 : 0.0%us, 4.3%sy, 0.0%ni, 95.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 12298444k total, 8668968k used, 3629476k free, 322428k buffers Swap: 8385920k total, 0k used, 8385920k free, 6459036k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7724 nathan 19 4 470m 448m 704 S 15.3 3.7 729:40.09 tmux ... [tru@susanita ~]$ ps -elf | grep tmux 1 R nathan 7724 1 4 82 4 - 120500 ? Sep22 ? 12:09:44 tmux 0 S nathan 23946 8493 0 80 4 - 6037 ? 15:46 pts/0 00:00:00 tmux -2 attach 0 S tru 26489 25575 0 78 0 - 15299 pipe_w 15:54 pts/5 00:00:00 grep tmux attached part of the strace for pid 7724: 7724.log.gz top - 15:53:32 up 7 days, 2:58, 3 users, load average: 0.01, 0.36, 0.44 Tasks: 161 total, 1 running, 159 sleeping, 1 stopped, 0 zombie Cpu0 : 0.0%us, 9.7%sy, 0.7%ni, 89.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 : 0.0%us, 16.0%sy, 0.3%ni, 83.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 : 0.0%us, 12.4%sy, 0.3%ni, 87.3%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu3 : 0.0%us, 13.6%sy, 0.7%ni, 85.4%id, 0.0%wa, 0.0%hi, 0.3%si, 0.0%st Mem: 12289976k total, 11675408k used, 614568k free, 176184k buffers Swap: 16779884k total, 172k used, 16779712k free, 9291284k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4472 bougui 26 4 1137m 1.1g 696 S 30 9.1 1194:03 tmux [tru@ishikawa ~]$ ps -elf | grep tmux 1 S bougui 4472 1 11 79 4 - 291260 ? Sep26 ? 19:53:43 tmux -2 0 S bougui 19698 4252 0 79 4 - 6004 ? 12:14 pts/0 00:00:00 tmux -2 attach -t 0 0 T bougui 28294 4252 0 81 4 - 6004 finish Sep28 pts/0 00:00:00 tmux -2 attach -t 0 attached part of the strace for pid 4472: 4472.log.gz [tru@susanita ~]$ ldd /usr/bin/tmux linux-vdso.so.1 => (0x00007fff4d8d8000) libutil.so.1 => /lib64/libutil.so.1 (0x00000038f1600000) libm.so.6 => /lib64/libm.so.6 (0x00000038e2c00000) libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x00000038f5e00000) libevent-1.4.so.2 => /usr/lib64/libevent-1.4.so.2 (0x00000038e3800000) librt.so.1 => /lib64/librt.so.1 (0x00000038e7000000) libc.so.6 => /lib64/libc.so.6 (0x00000038e2800000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00000038ed600000) libdl.so.2 => /lib64/libdl.so.2 (0x00000038e3000000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00000038ece00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00000038e3400000) /lib64/ld-linux-x86-64.so.2 (0x00000038e2400000) libevent-1.4.13-1.x86_64 ncurses-5.5-24.20060715.x86_64 Possible cause: ~user/.tmux.conf set -g status-left '#[fg=green,bg=black]#(whoami)@#h #[fg=white,bold]#(date +"%T") #[default]' Commenting it brings the load to a normal value... on a high cpu tmux. Thanks Tru -- Dr Tru Huynh | http://www.pasteur.fr/recherche/unites/Binfs/ mailto:t...@pasteur.fr | tel/fax +33 1 45 68 87 37/19 Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users