X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 13 Feb 2012 15:58:57 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: File operations really slow in emacs Message-ID: <20120213145857.GF32512@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4F35C1E0 DOT 2020308 AT cs DOT utoronto DOT ca> <20120211101158 DOT GC9823 AT calimero DOT vinschen DOT de> <4F3910B2 DOT 3070905 AT cs DOT utoronto DOT ca> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F3910B2.3070905@cs.utoronto.ca> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Feb 13 08:31, Ryan Johnson wrote: > On 11/02/2012 5:11 AM, Corinna Vinschen wrote: > >>(\??\C:\cygwin\cygdrive,0x28BB68) > > ^^^^^^^^^^^^^^^^^^^^^^^ > > This looks suspicious. I assume you're suffering from SMB network > > scanning. > Turns out you were right after all. I have Z: mapped to a SMB share > that's only visible when I'm connected to the VPN it lives on; I > hadn't used it in a few months and it didn't show up in Explorer, > but it was on the list of drives returned by > GetLogicalDriveStrings(). Connecting the drive makes everything run > at normal speed, and disconnecting it makes the problem return a > short time later. > > Oddly, I've never observed the effect when running from an elevated > prompt -- I can reliably fire off 'stat /cygdrive' in a normal > prompt, open an elevated mintty, run the same command there, get the > results, and close the window, all well before the first stat > completes. > > So, three questions: > - why is the elevated prompt unaffected? Because the elevated token is not connected to the drives of the non-elevated token by default. There's a registry key which allows to change that, but off the top of my head I don't know it. Search MSDN, this question comes up since the first Vista release candidates. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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