Start of any Cygwin application takes more than a minute on Windows 8.1 x64. It doesn't matter, either I'm starting mintty
from shortcut or cygwin.bat
or ls.exe
or bash.exe
from bin folder. Each of them will be slow.
After Bash or mintty is started they are working fairly quick:
$ time for i in {1..10} ; do bash -c "echo Hello" ; done
Hello
...
Hello
real 0m1.273s
user 0m0.060s
sys 0m1.181s
Steps, which I've tried:
- Reinstalled and tried both Cygwin and Cygwin64 a few times (version 2.864)
- Started them as Administrator
- Tried to run them in Windows 7 compatibility mode
- Disabled "Automatically detect settings" for LAN as in this reply
- Added
127.0.0.1 localhost cygdrive wpad
to hosts as in same reply - Set antivirus to disabled state
- Checked that Bash completion is not installed (no
/etc/bash_completion.d
folder) - Disabled all removable drives in Device Manager (only system SSD and data HDD left)
- Tried to run with empty
etc/profile.d
folder - Tried to run with empty
etc/bash.bashrc
file
How else can I find root cause?
P.S. - I have two different systems, laptop and desktop both with Windows 8.1 64 bit. This issue it 100% reproducible on both.
Also, if I start Bash a few seconds after login it starts immediately.
-c
flag for mkpasswd. In the end, you must get only one line to be saved topasswd
file. Same formkgroup
. – Anton-c
flag when attempting solution 1; both/etc/passwd
and/etc/group
are single-line files. I was just reporting the fact that the cause of the slowness might be due to the fact that my organization has a long user list (mkpasswd | wc -l
reports >50K lines) – Hugues