From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48625 invoked by alias); 29 Apr 2016 05:23:28 -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 48601 invoked by uid 89); 29 Apr 2016 05:23:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=chrome, 2.5.1, killing, vanilla X-HELO: mail-wm0-f44.google.com Received: from mail-wm0-f44.google.com (HELO mail-wm0-f44.google.com) (74.125.82.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 29 Apr 2016 05:23:16 +0000 Received: by mail-wm0-f44.google.com with SMTP id e201so13147204wme.0 for ; Thu, 28 Apr 2016 22:23:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=6jEEDW5d82a2mk0A5dh6wkcp5EA0vM5mFKq1fubboyg=; b=I03E/a3xouZCpdOZI3lWGcuSyOlnIWobQ5ZiQ26JcSPG8zdRFhTeQBWpFSG+GA3qFc G6NbRIYuR+fGe/PCELIcg0RDt3QgDO4eranmKV8TOybW6ZmfFn2uOf8jXs+7hXOQjo8e pWsdWwInYezMPNVdtcRb48k4qgxuCyLJLObOOL62tq7QAhKj7/8Ux+dwgTAJcLCEklOB rK19aw4y/akXx6HT15F24HGpStbQbIQziRucWNUJK8lRQlr2DZ7Llvo1w4GjR/W7qDuA HMDKguNZgEozV1syhG04eN2Ikeszf2DATFaDzHSjzDZYckgiLdBeefW6frZl8pzT6PHv 82vg== X-Gm-Message-State: AOPr4FUTsfF+0nkB029vWcwSRGJznohxVCj5Z6zRsQNssd47mccGe6OFRLZuLv2YPfE+pQ== X-Received: by 10.28.11.143 with SMTP id 137mr1509745wml.92.1461907393935; Thu, 28 Apr 2016 22:23:13 -0700 (PDT) Received: from [192.168.2.109] (p5B1745A9.dip0.t-ipconnect.de. [91.23.69.169]) by smtp.googlemail.com with ESMTPSA id r123sm1431761wmg.20.2016.04.28.22.23.12 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2016 22:23:13 -0700 (PDT) Subject: Re: Cygwin process activation very slow To: cygwin@cygwin.com References: <22306.47968.377196.214744@pcls8.std.com> From: Marco Atzeri Message-ID: <3eeae7ce-106e-a773-e973-1a99a18abf9b@gmail.com> Date: Fri, 29 Apr 2016 07:38:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <22306.47968.377196.214744@pcls8.std.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00640.txt.bz2 On 29/04/2016 03:39, bzs@theworld.com wrote: > > 15-30 seconds to do even an ls of a small directory, seems to be > process activation. > > I've spent several days on this. Cygcheck output below but W7 pro, > 4GB, personal laptop, not a new CPU but otherwise seems ok and the > disk is a 480GB Sandisk SSD, fairly vanilla set-up no fancy LDAP or AD > etc, wireless net. Recently updated cygwin trying to fix this, uname > -a says: > > CYGWIN_NT-6.1 xyzzy 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64 Cygwin > > There's basically no load on this machine, under 10% CPU according to > taskmgr, 80% memory but mostly that's chrome (browser.) Closing chrome > etc makes no difference. Killed off the few antivirus procs I could (I > think killing MS's security stuff takes heroics), no > difference. Killed off most everything not critical, no change. which antivirus ? > > An attempt at a reinstall or earlier a rebase_all runs for days, > literally, multiple days. > > My best guess is this started after a Windows Update. I did a bunch of > them and then this started. > > An strace of an ls gives me this in part (emphasis added): > > 259 3733 [main] ls 2000 user_info::create: user shared version AB1FCCE8 > 140 3873 [main] ls 2000 fhandler_pipe::create: name \\.\pipe\cygwin-e022582 > 115c10879-2000-sigwait, size 11440, mode PIPE_TYPE_MESSAGE > > ***** interesting two lines > > 16945 20818 [main] ls 2000 fhandler_pipe::create: pipe read handle 0x80 > 57 20875 [main] ls 2000 fhandler_pipe::create: CreateFile: name \\.\pipe\cygwin-e022582115c10879-2000-sigwait > > ***** end interesting two lines > > 65 20940 [main] ls 2000 fhandler_pipe::create: pipe write handle 0x84 > 41 20981 [main] ls 2000 dll_crt0_0: finished dll_crt0_0 initialization > --- Process 2000 thread 2864 created > > That means the fhandler_pipe::create took about 17 seconds (16,945ms), > right? That would be consistent with what I'm seeing. > > My guess is that it looks like it's trying to create a named pipe on a > share (see next line, CreateFile) and for some reason that's going > into a network timeout? Or slow for some reason. > Is not a share, the name is as expected for a pipe. Usually the timing is in 100-200 range. PS: as general rule "cygcheck.out" must be an added as attachement. not in line in the mail. -- 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