From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23233 invoked by alias); 1 Oct 2012 18:36:14 -0000 Received: (qmail 22956 invoked by uid 22791); 1 Oct 2012 18:36:12 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_20,KHOP_THREADED,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from malth.us (HELO malth.us) (75.147.143.249) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 01 Oct 2012 18:36:04 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by malth.us (Postfix) with ESMTP id 51D8540CA50B; Mon, 1 Oct 2012 11:36:03 -0700 (PDT) Received: from malth.us ([127.0.0.1]) by localhost (malth.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aIUctAEwhPQq; Mon, 1 Oct 2012 11:35:47 -0700 (PDT) Received: from [192.168.0.175] (moneypit.hq [192.168.0.175]) by malth.us (Postfix) with ESMTPSA id D635A40CA504; Mon, 1 Oct 2012 11:35:47 -0700 (PDT) Message-ID: <5069E282.6060009@malth.us> Date: Mon, 01 Oct 2012 18:36:00 -0000 From: "Gregory M. Turner" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: cygwin@cygwin.com CC: Ken Brown Subject: Re: bash very slow in cygwin 1.7.16-1 Win7/64 bit References: <5068AEF2.6040006@rosi-kessel.org> <5069BE59.5030303@malth.us> <5069C743.5090908@cornell.edu> In-Reply-To: <5069C743.5090908@cornell.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-10/txt/msg00026.txt.bz2 On 10/1/2012 9:39 AM, Ken Brown wrote: > On 10/1/2012 12:16 PM, Adam Kessel wrote: >> On Mon, Oct 1, 2012 at 12:01 PM, Gregory M. Turner wrote: >>> Did you at least try chainging your ${HOME} to somewhere normal and >>> seeing >>> what happens? Perhaps SkyDrive has some feature that makes Cygwin >>> crazy. >>> For example, your cygwin could have inotify listeners on ${HOME} >>> which could >> >> Yeah, I tried setting ${HOME} to /cygdrive/c and "c:\" and even just >> "/" with no change in results. > > I don't know if this has anything to do with your problem, but I > wouldn't call any of these settings of $HOME "normal". I think most > people leave $HOME unset, in which case it gets set to /home/username > during a Cygwin session. NT Domain victims often have %HOME% set by administrative policy -- if it isn't set with an explicit policy/setting then I believe Cygwin will use %USERPROFILE%, which is pretty ghastly ... but surely this has been the subject of several bitter flame wars already and was determined to be the most reasonable compromise available for whatever reason... Plus, I can just change the source and recompile if I don't like it :) And it's off topic :) Speaking of which. Adam, I know you have tried to rule this out, but I can't help but continue to suspect your LiveSkyThingy... do me a favor, just to shut me up, will you? Step one, make backups. I mean it! Now, using Windows Exploder (maybe don't use Cygwin), please create a C:\Harmless, folder, if possible with Everyone->Full Control access rights and preferably owned by you (do this by unchecking "Use Sharing Wizard" in Explorer's options dialog under the View tab and using the classic NT4 dialogs). iow: make sure there is nothing spooky about that folder. In wordpad.exe, edit your cygwin's /etc/passwd to contain /cygdrive/c/Harmless as your home directory instead of /c/LiveThingy... make a note of the old setting. Go into your profile settings (Right Click "My Computer" -> Manage; then drill down in the tree-view to Computer Management->System Tools->Local Users and Groups->Users. In the right hand side you will see the various accounts on your system -- go to yours, open it up, go to the "Profile" tab. Make a note of the current settings (maybe take a screen shot). Now: are you the only administrator account on the system? If so, add another one (he needs to be an administrator with a password). Now, log out -- that's done with the button labelled "Log Out" in your Start menu -- and log in as that Administrator account (this doesn't have to be "the" Administrator account and, indeed, probably shouldn't be) and repeat the above rigamarole to get back to the same "User Accounts" dialog. Go to your account -- not the one you just created and logged in as, but the one you actually use in real life. Double click yourself, so to speak, and open the "Profile" tab. If your "Profile Path" is on C:\LiveSkyThingy, change it to C:\Harmless. and set the Home folder radio button to "Local Path" and set that, also, to C:\Harmless. This will create exactly the situation I was bitching about at the beginning of this post, which is fine for our present purposes. Then, close the dialog box, (using "OK"), and right click your favorite "My Computer" icon again (actually I guess it's just 'Computer' these days). Go to "Properties" -> "Advanced System Settings" (on the left) -> [the "Advanced" tab] -> press the Environment Variables button, and remove any HOME variable setting you see there, both global and per-user. Finally, if your account is a Domain account, please please please change it to a Local one using this recipe: http://support.microsoft.com/kb/312138 Otherwise, there is a very real risk of nuking your roaming profile!! Now, Reboot. Log in as yourself. You will get a blank profile. Don't panic, everything will come back once you reverse the above steps :) If that doesn't get you a reasonable cygwin... well, then, almost certainly LiveSkyThingy is not the culprit. Unfortunately, if it does fix the problem, you still can't say whether LiveSkyThingy is at fault because everything in your HKEY_USER registry is wiped clean by the above. One note: Carefully reverse all the above steps to get your profile back... if you are in a Domain environment... do it VERY carefully, again, so as not to blow up your roaming profile. Other things you could check: have you frobbed your LSA thingy lately? frob it. rebased lately? rebase. $ strace /bin/bash -l -c 'echo whee!' 2>&1 | sort -h > \ /cygdrive/c/strace.log stop every cygwin process but /bin/ash (no mintty, X, or services)... still slow? reinstall cygwin in-place " " from scratch chkdsk sfc /scanonce buy a new computer and run linux on it ...etc :) gl! -gmt -- 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