Why is cygwin slow




















Each process is starting from scratch, and has to load and init the cygwin DLL, libc, etc that a fork-and-go system already has loaded. But the strange is that during the command creating the 10 processes for about 7. It looks like bash is waiting for something, but what does it waiting for? I get 0. I thought it might be a startup script, but bash -c It was always slow, but recently our IT dept. Show 1 more comment. Active Oldest Votes.

How about excluding Cygwin paths from your antivirus software? Improve this answer. Which paths are cygwin paths? Btw, for some antiviruses such as norton, you can find the "exceptions" option somewhere and add this folder to the exceptions list. Should I also add the folder to which cygwin downloads all its packages? Those files are not being used when running cygwin. I'd check Windows system folders for cygwin DLLs too.

Not that I'd suggest adding vital Windows folders to AV exceptions : — dotz. I use Avast antivirus. Cygwin is excruciatingly slow to do any operation. Disabling the Avast shield makes Cygwin very fast. In my case, I had a really poor performing PS1 custom prompt variable set. Once I removed it, everything was really fast. Show 5 more comments. Add a comment. I can't find the cygwin installer. That is not a Cygwin setting, but rather a Windows setting — Demi. Right on. Thanks man, been looking for a while for a solution to slow directory changes on network UNC paths.

By disabling it, the time of the script in the question falls back to: real 0m0. This still much slower than Linux, but gets the same "real time" of other cygwin computers. Thank you all! How did you determine this? I looked for the service, but don't see it and I'm having the same issue.

I checked that every item in my path was a valid directory. Desmond Campbell Desmond Campbell 21 1 1 bronze badge. Basically it does the user caching stuff, together with ensuring IPC works between all Cygwin processes. Your mileage may vary of course, but this is now my preferred way of working. I should have done it years ago. It seems to be to do with authentication. For me, 40 seconds to get something to execute. After that though, process creation in that process tree seems pretty quick.

I killed all Cygwin processes and started again. Everything now runs nice and fast. As a footnote, I just found that I had to rebuild the passwd and group files after a Cygwin update. As the slow behaviour was happening again, the autorebase part of the install took several days to complete. By the way, the slow behaviour also showed itself with the Windows command prompt and portable applications.

That fixed the problem for me. I was forced to update yesterday and ran into the issue of rebaseall simply failing to execute.

So this means, win7 from the start menu type dash. The dash shortcut will appear, Right click to run as administrator. Then when it's up, execute :. Go for a coffee It will sit for a few seconds before it should display output, if it sits and does nothing for more than 5 minutes, you have another issue. This fixed the rebaseall, but has also massively increased the speed of my build. Worth checking to see if you have it installed, try removing it.

I have limited permissions on my machine where this happened. However, as a real hack drop-in substitute, I found that this worked fairly well for me:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?

Learn more. Asked 6 years, 9 months ago. Active 21 days ago. Viewed 30k times. Improve this question. Peter Mortensen Any updates please? Possibly related: Startup is really slow for all Cygwin applications — Peter Mortensen. Add a comment. Active Oldest Votes. Occasionally I work in a Windows domain with thousands of users. Simply run cygserver on login. Do you want to install cygserver as service? Please read the inline information in that file carefully. The best option for the start is to just leave it alone.

Basic Cygserver configuration finished. Have fun! What does cygserver do for me? Improve this answer. This is great! Is the cygrunsrv package installed? I just tried this, but I ran into a problem: after a reboot, Cygwin Terminal failed to run. The solution for that is explained here summary: run services. Show 3 more comments.



0コメント

  • 1000 / 1000