delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/01/03/20:52:31

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=ja9YiPowN/QAKKqxo/wGyIlUJd2MiDWqF5E5gG25PJo
ZILFqzWhR0myb9+x8sgN59vnmVNazpY2HMCgTA2OpApbmMmJXEqhs7k9MoBSkr8t
HgnY1vOQ3UQguG8HMuZoIKYbAxBGSwFEAidPshgEItpU+dc/yxsz69q6WM9jTuqA
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=6ngIPSEdAG/5WTW2v+uA1Bsg5PY=; b=VTgP5Scz3yjBIYYIy
fS/di8Pod8RJS8E5Iju4EcgVJ61Eda4N0ED50BruXQGm4ZzxiJClj8xHL8y0pCTH
jzxVtwC8zrjoh9BpI4Chm0Q7lnm1XhU+uzY1FtKKb40GB9KQE4v+I40iHNvQQPhG
qnNK/z6vu/1YE8jvh7csElZIdY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=0900, HX-Languages-Length:937, H*F:D*ne.jp
X-HELO: conssluserg-06.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 0041pUlc003627
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1578102691; bh=ZvL6HCsULaG3XBYVZ0bqFgg3JnRZcyqSpwnN14FWjmc=; h=Date:From:To:Subject:In-Reply-To:References:From; b=G1LyyDg6n3Dv+lvjOdVSMeWstOa8+W/MFb1kM3ii2+eg0vjp/R/pzZnqJkX11/dH2 5LfF4dY2muFBFTvx94gSkJA3TF6SZCTh7Yef0/2ZMPkmM5MAWIP8Mlu9GYVl/lPs+4 J7nIw78EfnvRpq3eH4uzMzRamXX+vgI10A2ffT7oEDRmHegC0vqlWZqVSCsjrSi34n jxUvyqIEWK6VOua4k0Hb+HMmieILx2dr9PuQ0vYUEo50DWnHyaRIPcWWIyHkFG10bO y58/gV2b7t6iw8JEqw9FSstu8+yJHc1dgx8QE7Fpf19Li/1H0ksBzNUTnoogcPk2Lz RG9bq37I5sVMQ==
Date: Sat, 4 Jan 2020 10:51:42 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: X11 forwarding extremely slow (unusable) after Cygwin upgrade (starting from cygwin1.dll version 3.1.0-0.4)
Message-Id: <20200104105142.699b9d6f7a518b51ea24b738@nifty.ne.jp>
In-Reply-To: <535e7760-f4da-2018-1dee-1c9bf2ea6cc9@cornell.edu>
References: <013c01d5c1b3$35d44c30$a17ce490$@gmail.com> <535e7760-f4da-2018-1dee-1c9bf2ea6cc9 AT cornell DOT edu>
Mime-Version: 1.0
X-IsSubscribed: yes

On Thu, 2 Jan 2020 22:16:02 +0000
Ken Brown wrote:
> I think this narrows it down to one of the following commits:

I looked into this probelm and found the issue occurs after
the following commit.

> commit 915fcd0ae8d83546ce135131cd25bf6795d97966
> Author: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
> Date:   Thu Sep 5 13:22:54 2019 +0900
> 
>      Cygwin: pty: Fix select() with pseudo console support.

I investigated this deeper, and found:

1) xterm in ssh -Y session calls select() about 1000 times
   at startup.
2) pi->thread->detach() in pty_slave_cleanup() takes about
   20usec in usual, however, it takes more than 10msec
   in ssh -Y session.

As a result, start up of xterm takes more than 10 sec.

I have no idea so far why cygthread::detach() becomes
so slow in ssh -Y session. :-(

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019