This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Midnight Commander is very slow when starting and changing directories
- From: Krzysztof Bociurko <chanibal at chanibal dot pl>
- To: cygwin at cygwin dot com
- Date: Tue, 26 Jul 2016 11:39:01 +0200
- Subject: Re: Midnight Commander is very slow when starting and changing directories
- Authentication-results: sourceware.org; auth=none
- References: <CAB+S=LhrvgQLw4L1ik=2Hs=A0+7D-0JswNuUKKE5UxfWnZw_TA@mail.gmail.com> <30e49013-7019-0d49-addb-ecd49256b127@gmail.com> <CAB+S=LheiHxeK75qw47dSzpf4y--we0tOfJDWmy7voa8eQqgoA@mail.gmail.com> <CAB+S=Ljj2SqoPfQPdKjqp2RTiPMMQ4+9P_s0wifzkh1ooEj-QQ@mail.gmail.com> <CAB+S=LhJL7BJ13NZhTXQAHuP8Qx8KOqFhnKuB3tkz6j319yAMA@mail.gmail.com> <c9d4a004-f745-0559-a65d-262bef09d406@gmail.com> <CAB+S=LiUer_RpgnQm-fwRydK-6gLxFS5kp87aKLu-FgOQFemqw@mail.gmail.com> <1ac989d9-2c0c-e3de-7453-38aabbe4434c@gmail.com>
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).
2016-07-26 8:55 GMT+02:00 David Macek <david.macek.0@gmail.com>:
> On 25. 7. 2016 17:34, Krzysztof Bociurko wrote:
>> I have found this issue in a new incarnation - and this time it is NOT
>> with midnight commander but basic gnu utils.
>> Again it's the 4 seconds lost.
>>
>> $ time ls /cygdrive/
>> c d
>>
>> real 0m4.065s
>> user 0m0.000s
>> sys 0m0.015s
>>
>> `ls /cygdrive/c` or `ls /cygdrive/d` take around 0.013s.
>
> Is it possible there's another -- unavailable -- drive letter, and the driver needs to wait 4 seconds before declaring it unavailable/disconnected?
>
> --
> David Macek
>
--
Krzysztof Bociurko
--
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