public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* tmux 2.x performance regression when switching windows
@ 2015-05-24 15:02 Patrick Mézard
  2015-05-27 12:50 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Mézard @ 2015-05-24 15:02 UTC (permalink / raw)
  To: cygwin

Hello,

I noticed moving between tmux windows became much slower since 2.0.x when running some applications in the windows. The problems disappear if I move back to 1.9. To reproduce:
- Cygwin: CYGWIN_NT-6.1-WOW PMD 2.0.2(0.287/5/3) 2015-05-08 17:03 i686 Cygwin, Win7 64 bits.
- Start tmux and create two windows.
- In one of the windows, execute the following Go program (natively compiled, Go 1.4.2 64-bits):
"""
package main

import (
    "fmt"
    "time"
)

func main() {
    for i := 0; ; i++ {
        fmt.Println(i)
        time.Sleep(500*time.Millisecond)
    }
}
"""
- Try switching between windows
KO => it eventually succeeds but lags a lot. With 1.9, the switch is immediate.

--
Patrick Mézard


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tmux 2.x performance regression when switching windows
  2015-05-24 15:02 tmux 2.x performance regression when switching windows Patrick Mézard
@ 2015-05-27 12:50 ` Corinna Vinschen
  2015-05-28 11:47   ` Takashi Yano
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2015-05-27 12:50 UTC (permalink / raw)
  To: cygwin; +Cc: Takashi Yano

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

On May 24 14:02, Patrick Mézard wrote:
> Hello,
> 
> I noticed moving between tmux windows became much slower since 2.0.x
> when running some applications in the windows. The problems disappear
> if I move back to 1.9. To reproduce:
> - Cygwin: CYGWIN_NT-6.1-WOW PMD 2.0.2(0.287/5/3) 2015-05-08 17:03 i686 Cygwin, Win7 64 bits.
> - Start tmux and create two windows.
> - In one of the windows, execute the following Go program (natively compiled, Go 1.4.2 64-bits):
> """
> package main
> 
> import (
>     "fmt"
>     "time"
> )
> 
> func main() {
>     for i := 0; ; i++ {
>         fmt.Println(i)
>         time.Sleep(500*time.Millisecond)
>     }
> }
> """
> - Try switching between windows
> KO => it eventually succeeds but lags a lot. With 1.9, the switch is
> immediate.

1.9?  Do you mean 1.7.35, by any chance?  This *may* be related to the
changes in the pty code, which now uses two different pipes for Cygwin
and for native processes...

Takashi, any chance you could take a look?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tmux 2.x performance regression when switching windows
  2015-05-27 12:50 ` Corinna Vinschen
@ 2015-05-28 11:47   ` Takashi Yano
  2015-05-28 12:00     ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Yano @ 2015-05-28 11:47 UTC (permalink / raw)
  To: cygwin

Hi Corinna,

On Wed, 27 May 2015 14:43:43 +0200
Corinna Vinschen wrote:

> 1.9?  Do you mean 1.7.35, by any chance?  This *may* be related to the
> changes in the pty code, which now uses two different pipes for Cygwin
> and for native processes...

I guess he means tmux v1.9.

> Takashi, any chance you could take a look?

I have looked into this problem a bit.

This problem occurs with tmux v2.0, but does not occur with v1.9.
This is regardless of cygwin version (1.7.35 or 2.0.2).

The changes in the pty code seems to have no relation.

I think this is the same problem as:
http://cygwin.com/ml/cygwin/2015-05/msg00331.html

Help of the maintainer of tmux is necessary.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tmux 2.x performance regression when switching windows
  2015-05-28 11:47   ` Takashi Yano
@ 2015-05-28 12:00     ` Corinna Vinschen
  2015-06-08 13:20       ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2015-05-28 12:00 UTC (permalink / raw)
  To: cygwin; +Cc: Michael Wild

[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]

Michael?  Ping?


On May 28 19:54, Takashi Yano wrote:
> Hi Corinna,
> 
> On Wed, 27 May 2015 14:43:43 +0200
> Corinna Vinschen wrote:
> 
> > 1.9?  Do you mean 1.7.35, by any chance?  This *may* be related to the
> > changes in the pty code, which now uses two different pipes for Cygwin
> > and for native processes...
> 
> I guess he means tmux v1.9.
> 
> > Takashi, any chance you could take a look?
> 
> I have looked into this problem a bit.
> 
> This problem occurs with tmux v2.0, but does not occur with v1.9.
> This is regardless of cygwin version (1.7.35 or 2.0.2).
> 
> The changes in the pty code seems to have no relation.
> 
> I think this is the same problem as:
> http://cygwin.com/ml/cygwin/2015-05/msg00331.html
> 
> Help of the maintainer of tmux is necessary.
> 
> -- 
> Takashi Yano <takashi.yano@nifty.ne.jp>
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: tmux 2.x performance regression when switching windows
  2015-05-28 12:00     ` Corinna Vinschen
@ 2015-06-08 13:20       ` Corinna Vinschen
  0 siblings, 0 replies; 5+ messages in thread
From: Corinna Vinschen @ 2015-06-08 13:20 UTC (permalink / raw)
  To: cygwin, Michael Wild

[-- Attachment #1: Type: text/plain, Size: 1153 bytes --]

On May 28 13:48, Corinna Vinschen wrote:
> Michael?  Ping?
> 
> 
> On May 28 19:54, Takashi Yano wrote:
> > Hi Corinna,
> > 
> > On Wed, 27 May 2015 14:43:43 +0200
> > Corinna Vinschen wrote:
> > 
> > > 1.9?  Do you mean 1.7.35, by any chance?  This *may* be related to the
> > > changes in the pty code, which now uses two different pipes for Cygwin
> > > and for native processes...
> > 
> > I guess he means tmux v1.9.
> > 
> > > Takashi, any chance you could take a look?
> > 
> > I have looked into this problem a bit.
> > 
> > This problem occurs with tmux v2.0, but does not occur with v1.9.
> > This is regardless of cygwin version (1.7.35 or 2.0.2).
> > 
> > The changes in the pty code seems to have no relation.
> > 
> > I think this is the same problem as:
> > http://cygwin.com/ml/cygwin/2015-05/msg00331.html

I uploaded a developer snapshot to https://cygwin.com/snapshots/ which
is supposed to fix this problem.  Please give it a try.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-08 13:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-24 15:02 tmux 2.x performance regression when switching windows Patrick Mézard
2015-05-27 12:50 ` Corinna Vinschen
2015-05-28 11:47   ` Takashi Yano
2015-05-28 12:00     ` Corinna Vinschen
2015-06-08 13:20       ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).