This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Midnight Commander is very slow when starting and changing directories


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.

Interesting part from strace (full log attached):

       18   11803 [main] ls 4804 symlink_info::check: 0 =
symlink.check(D:\, 0xFFFFB4D0) (0x406000)
      19   11822 [main] ls 4804 path_conv::check: this->path(D:\), has_acls(0)
      29   11851 [main] ls 4804 fhandler_cygdrive::readdir: 0xFFFFC870
= readdir (0x60003EFD0) (d)
    4061656 4073507 [main] ls 4804 normalize_posix_path: src /cygdrive/..
      77 4073584 [main] ls 4804 normalize_posix_path: checking
/cygdrive before '..'
      84 4073668 [main] ls 4804 normalize_posix_path: src /cygdrive
      18 4073686 [main] ls 4804 normalize_posix_path: /cygdrive =
normalize_posix_path (/cygdrive)

Also `mount`:

    $ time mount
    C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
    C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
    C:/cygwin64 on / type ntfs (binary,auto)
    C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
    D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)

    real    0m4.073s
    user    0m0.000s
    sys     0m0.000s

Interesting strace part (full log attached):

      20   11447 [main] mount 3876 write: 64 = write(1, 0x60003A320, 64)
     178   11625 [main] mount 3876 fhandler_pty_slave::write: pty2,
write(0x60003A320, 64)
      18   11643 [main] mount 3876
fhandler_pty_common::process_opost_output: (1909): pty output_mutex
(0x100): waiting -1 ms
      18   11661 [main] mount 3876
fhandler_pty_common::process_opost_output: (1909): pty output_mutex:
acquired
      18   11679 [main] mount 3876
fhandler_pty_common::process_opost_output: (1948): pty
output_mutex(0x100) released
      20   11699 [main] mount 3876 write: 64 = write(1, 0x60003A320, 64)
    4055597 4067296 [main] mount 3876 do_exit: do_exit (0), exit_state 1
      47 4067343 [main] mount 3876 void: 0x0 = signal (20, 0x1)
      19 4067362 [main] mount 3876 void: 0x0 = signal (1, 0x1)
      18 4067380 [main] mount 3876 void: 0x0 = signal (2, 0x1)
      17 4067397 [main] mount 3876 void: 0x0 = signal (3, 0x1)




2016-07-12 15:41 GMT+02:00 Marco Atzeri <marco.atzeri@gmail.com>:
> On 12/07/2016 15:24, Krzysztof Bociurko wrote:
>>
>> Recompiled mc on cygwin with default and --without-vfs, did not fix issue
>>
>> Tried to install the unofficial win32 mc build that is not using
>> cygwin - and this issue is still there!
>
>
> I guess it is some BLODA.
> Cygwin can not really slow down a native application.
>
>>
>> I think this is not an issue with cygwin. Will try with MC's issue
>> tracker/mailing list/whatever they got.
>>
>> Could someone verify that the unofficial windows build of mc does not
>> use cygwin?
>> https://sourceforge.net/projects/mcwin32/
>>
>
> the description says
>
> "Windows XP+/32 bit native port of GNU Midnight Commander, based on the
> current 4.8.13/14 development stream."
>
> So I doubt was ever a cygwin one.
>
> I am not aware that there is another mc cygwin build around
> than then
> https://sourceware.org/ml/cygwin-announce/2016-05/msg00033.html
>
>
> Regards
> Marco
>
>
>
>
> --
> 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
>

Attachment: log-ls.txt
Description: Text document

Attachment: log-mount.txt
Description: Text document

--
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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]