X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 7 Jan 2008 18:11:08 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: George Wyner cc: cygwin AT cygwin DOT com Subject: Re: Observation: setting HOME to "/" can lead to slow cygwin In-Reply-To: <4782a905.21a47e0a.1a4f.ffffedd7@mx.google.com> Message-ID: References: <4782a905 DOT 21a47e0a DOT 1a4f DOT ffffedd7 AT mx DOT google DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Mon, 7 Jan 2008, George Wyner wrote: > I am running Cygwin 1.5.25 on Windows XP Professional (Ver 5.1 Build > 2600 Service Pack 2) > > No longer sure why, but at some point I set my HOME directory to > C:\cygwin > > Running cygwin on my machine was quite slow, especially when starting > bash and running man and info (2-5 seconds for each). I also noticed > that nano complained it could not find the file "//.nanorc" > > I changed the home directory in my passwd file to /home/gwyner at which > point the slowdown vanished: bash, man, and info are now fast. the > nano error also went away. > > End of observation. > > Start of uninformed speculation: > > I suspect that this is a variation on the network share cause of > slowdown reported in the FAQ > (http://cygwin.com/faq/faq.using.html#faq.using.slow) -- I suspect that > because HOME was set to "/" that directory references beginning with the > prefix $HOME/ would resolve to // and therefore be interpreted as a > network share. > > It may be that "//" showed up somewhere in my environment and I did not > see it (although I looked) but if that is not so then it might be worth > flagging the above configuration as another potential source of > problems. (Perhaps more likely with windozy users like me who may not > have the right intuitions or knowledge about where to put the home > directory.) Your first guess is correct -- many apps use "$HOME/filename" without bothering to check that "$HOME" is "/" (also, many erroneously assume that "//A" is the same as "/A"). It's usually a good idea to create a "/home" tree, with one directory per user. Cygwin usually does that by default if HOME is not set in the environment. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "That which is hateful to you, do not do to your neighbor. That is the whole Torah; the rest is commentary. Go and study it." -- Rabbi Hillel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/