From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 7737E385BF9F for ; Sun, 22 Mar 2020 05:51:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7737E385BF9F Received: by mail-wm1-x334.google.com with SMTP id c81so278608wmd.4 for ; Sat, 21 Mar 2020 22:51:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=OlTndIDj+E2BWJm/QeJCgaCkG4n8szLIrZ6UuVqUe7o=; b=masFoNeGptS8sAJcQ8gHKybIHeEHe2QLYa3ZwOTfg1v5KPFCQSY4AvxZnTvUpaMDvi a7HNUhuM4gRk+n1G133NevDBiFXxkspesuuK2bOYQfjBWMIZlvJikJfNxB09csdRIoc5 z2F//EoOZcdNtjV5GlBvlf4cyKVZzGte4AbdQOcTj7vsu5eXX73HkpgSJ+JDozqaMq9a SisFHIbrK3W8sfbiDdrwEvoi969TWgV4r5vyCB3TQRm+b2oLepx7m/4b7SlLv1Oc+CIt u9kKsL+mCYkd6jIfmeo7bU8DvHlnIkRJ9QdvLiW+IpciIORXywMbfRFhoYqc0VkWHDQ9 knVQ== X-Gm-Message-State: ANhLgQ2zuDxxtnmZuJ0G8B5UOGVWdNZbesmCfluOHb15Np8wbiFiq3xI WluOSzjHomqFJ4mYa+VR895Wb/CZ X-Google-Smtp-Source: ADFU+vsfL4sY0PT/Saz3FdnnE1AG2h0EVCXObR3BzVI29F628SUDsLRHwaxNwiWxGMPV73lsjB558A== X-Received: by 2002:a05:600c:48d:: with SMTP id d13mr2891757wme.184.1584856271182; Sat, 21 Mar 2020 22:51:11 -0700 (PDT) Received: from ?IPv6:2003:ee:6715:5401:6d8a:1397:ce72:f044? (p200300EE671554016D8A1397CE72F044.dip0.t-ipconnect.de. [2003:ee:6715:5401:6d8a:1397:ce72:f044]) by smtp.gmail.com with ESMTPSA id u8sm16482078wrn.69.2020.03.21.22.51.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Mar 2020 22:51:10 -0700 (PDT) Subject: Re: New pty implementation is really slow To: "cygwin@cygwin.com" References: From: Marco Atzeri Message-ID: Date: Sun, 22 Mar 2020 06:51:08 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Mar 2020 05:51:13 -0000 Am 22.03.2020 um 04:21 schrieb Joe via Cygwin: > I'm using cygwin 3.1.4 on Windows 10. > > The new pseudo terminal stuff seems really slow. > > For example: > $ time seq 10000 > (output omitted) > real 0m23.510s > user 0m1.515s > sys 0m4.483s > > If I minimize the mintty window while seq is running, it gets slightly better: > real 0m4.562s > user 0m0.390s > sys 0m1.202s > > But when I set CYGWIN=disable_pcon before starting mintty, I get: > $ time seq 10000 > (output omitted) > real 0m0.366s > user 0m0.109s > sys 0m0.093s > > So the new implementation seems to be over 60 times slower than the old one. > -- only factor 10x on my test, amd only impacting mintty case Curious that 32bit disabled is 2x faster than 64bit disabled 64 bit Mintty with enabled (default) real 0m2.674s user 0m0.234s sys 0m0.859s mintty with disabled real 0m0.247s user 0m0.015s sys 0m0.046s CMD with enabled real 0m1.121s user 0m0.109s sys 0m0.187s CMD with disabled real 0m1.084s user 0m0.078s sys 0m0.312s 32 bit Mintty with enabled (default) real 0m2.548s user 0m0.281s sys 0m0.686s Mintty with disabled real 0m0.058s user 0m0.030s sys 0m0.000s CMD with enabled real 0m1.021s user 0m0.124s sys 0m0.296s CMD with disabled real 0m1.018s user 0m0.109s sys 0m0.265s I have the impression that the slow is due to some type of buffer expansion as I seem to notice a not uniform progress of the print the screen. But it could be just my eye... $ uname -svr CYGWIN_NT-10.0 3.1.4(0.340/5/3) 2020-02-19 08:49 Regards Marco