From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29627 invoked by alias); 4 Jan 2020 01:51:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29618 invoked by uid 89); 4 Jan 2020 01:51:41 -0000 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 Received: from conssluserg-06.nifty.com (HELO conssluserg-06.nifty.com) (210.131.2.91) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Jan 2020 01:51:38 +0000 Received: from Express5800-S70 (ntsitm247158.sitm.nt.ngn.ppp.infoweb.ne.jp [124.27.253.158]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 0041pUlc003627 for ; Sat, 4 Jan 2020 10:51:31 +0900 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, 04 Jan 2020 01:51:00 -0000 From: Takashi Yano To: cygwin@cygwin.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@cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00037.txt.bz2 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 > 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 -- 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