This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bash very slow in cygwin 1.7.16-1 Win7/64 bit


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 <gmt@malth.us> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]