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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Nt+xhkeaFOrpSKEp KCbhMUOfjrEwHzk0FqtacqfzeBcB87rsAKEi1EVUkJRLaIl39MyH6BgXaT9wuUiV VILg7UwPPDvjKwD6fy9PtrLHA1bFFESnV7v8ACw2ihAoO8A26F++YfHEVxsHjwuN ODCdb7uflIhsj+kZw5ctdGqIyqY= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=Dx1XLvBH11QJQ9HghAJry3 +8R8o=; b=Os4yCQBO1sCyVbECYQs8QwWze370p814sfT0sNYn82Ma8didP4C9YA L4p94s155MthpZkm1qWfpG7l54Y1iPoNOZ2QvNEthSB3asBzTV+nnLEoqBsutaKd eVPzgi7CtGtuJ7uX0tzpsoiIlF+EAtrLYgGPSWL/dS5ZMg/iFqJjM= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Tried, system32, System32, wbem X-HELO: mail-wm0-f49.google.com 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=4rQiACv4YczZvgIcGEaaPuT+szu8UXk8fMe1Jyhkmww=; b=M1Fx8NmeukWf7RUs7+e+gXx6NJMuuew89YgScoZ57jBFosyKpM5EhDdx583Ny4JtvM AaJHwrqWLKkk/x4ZDAfiKPzODcUBB9RV0glsBVaJhdv73g5BrNyxol1zG28Cccnu/doQ h4yizoDr2rGqEkIDO1IRIeV8dagLzBFiCMdOxJl6OtwkyHGVgqM5rrehlQTZ+GBbrz6X 6xJyXPgAoRROrWTAAHVe+yb8wLVWy0T8rnmYBpaJDmq9G9sA87rCqeviE3U4Jy7blBGO +XD61NVUA3ySNmacmvZ8ty0wX/CpOusouyyDDolcdgBRex6pd3XNmrA9PGJtd8da+GUp u8Lg== X-Gm-Message-State: AEkoous58M1fNRCk8xIxcWZSn6s47Vuafo9MdO0yuocK6OH0Yd3nC07nn8iBxISQPApczA== X-Received: by 10.28.216.67 with SMTP id p64mr25657604wmg.56.1469527401916; Tue, 26 Jul 2016 03:03:21 -0700 (PDT) Subject: Re: Midnight Commander is very slow when starting and changing directories To: cygwin AT cygwin DOT com References: <30e49013-7019-0d49-addb-ecd49256b127 AT gmail DOT com> <1ac989d9-2c0c-e3de-7453-38aabbe4434c AT gmail DOT com> From: Marco Atzeri Message-ID: <9b0cc47e-5ba5-bb0d-c48d-1477a03520fd@gmail.com> Date: Tue, 26 Jul 2016 12:03:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 26/07/2016 11:39, Krzysztof Bociurko wrote: > Tried to list all drive letters (with help of > http://serverfault.com/questions/62578/how-to-get-a-list-of-drive-letters-on-a-system-through-a-windows-shell-bat-cmd) > and: > > PS C:\Users\chanibal> wmic logicaldisk get > caption,providername,drivetype,volumename > Caption DriveType ProviderName VolumeName > C: 3 SSD > D: 3 HDD > E: 5 <------------ this is a DVD drive not > used for months (years?) > > And it took close to the 4 seconds - similar to the issue I am experiencing: > > PS C:\Users\chanibal> Measure-Command { wmic logicaldisk get > caption,providername,drivetype,volumename } > (...) > TotalSeconds : 5,0886857 > (...) > > Disabling the DVD drive with Device Manager changed the above time to > 0.063s, changed `ls /cygdrive` time to 0.015s and Midnight Commander > STARTED FINALLY WORKING IN REAL TIME. Thank you! > > > All right, now the question is WHY did this fail - I think it might be > considered Cygwin bug material, almost none windows app has failed > this way (with the exception of this windows mc build). > If both version of MC are stacked as also wmic, it is because all asked the same thing to windows and it took 4 seconds to receive and answer. Not cygwin bug. Eventually of your DVD driver. My DVD D: takes no time $ time /cygdrive/c/windows/System32/wbem/WMIC.exe logicaldisk get caption,providername,drivetype,volumename Caption DriveType ProviderName VolumeName C: 3 D: 5 E: 3 HD-Atzeri3 real 0m0.156s user 0m0.015s sys 0m0.062s -- 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