X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 13 Feb 2012 15:58:57 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: File operations really slow in emacs
Message-ID: <20120213145857.GF32512@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4F35C1E0.2020308@cs.utoronto.ca> <20120211101158.GC9823@calimero.vinschen.de> <4F3910B2.3070905@cs.utoronto.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@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

