From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81608 invoked by alias); 6 Jan 2020 14:40:17 -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 81598 invoked by uid 89); 6 Jan 2020 14:40:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=upgrade X-HELO: conssluserg-03.nifty.com Received: from conssluserg-03.nifty.com (HELO conssluserg-03.nifty.com) (210.131.2.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 06 Jan 2020 14:40:15 +0000 Received: from Express5800-S70 (ntsitm247158.sitm.nt.ngn.ppp.infoweb.ne.jp [124.27.253.158]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 006EeBtN020886 for ; Mon, 6 Jan 2020 23:40:11 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 006EeBtN020886 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1578321611; bh=Zif34ZDJBSz9/h/jwY0KdxIIQf3ltLhzrkDSmbzChCU=; h=Date:From:To:Subject:In-Reply-To:References:From; b=BGAdEMYP3T7kbll2xaVn/Ei61h6P+c4jU2q7gK447cn7ij2EpzkBILESbswzNalct RYPTjdSxkYC2ym+MUf4k90wMr34BkjoD8FG9yXbTlFT+B4KanTOhcHtK9ygYnfSxlB OgoMeiks2M4nrx/0eRBvMTweIZZcCImL5FvPVsFjj2juQSoOj+FeMFJOOgB7LTATl2 CiDNhPWRg6mWwI/sYtpMMQlWJQUw+mhxtu1Bvosj0AOzVg9239nMQKzcagJpNOoCbS v2HR/HdSN4A4T4T/NtfmdS6nEpGxANNDHuUMzqEm9nCN0LGUu6qRzy0QfAk0HAcyBU 3UMQd+/eatFKA== Date: Mon, 06 Jan 2020 14:40: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: <20200106234014.05bd8f1a3459e434ce92363a@nifty.ne.jp> In-Reply-To: <20200104105142.699b9d6f7a518b51ea24b738@nifty.ne.jp> References: <013c01d5c1b3$35d44c30$a17ce490$@gmail.com> <535e7760-f4da-2018-1dee-1c9bf2ea6cc9@cornell.edu> <20200104105142.699b9d6f7a518b51ea24b738@nifty.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00050.txt.bz2 On Sat, 4 Jan 2020 10:51:42 +0900 Takashi Yano wrote: > 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. :-( I have just posted a patch for this issue. -- 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