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 slow on first 'up-arrow'


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Frank Greco on 2/26/2006 1:39 PM:
> 
> When I hit 'up-arrow' for the first time, there's a long delay (at least 30 
> secs) and the disk spins like crazy.  Then it seems to work fine, so it seems to 
> be looking for something the very first 'up-arrow'.  

I've never seen anything like this, but wonder what your history settings
are at.  If you have a huge HISTFILESIZE and HISTSIZE, it might just be
that bash is spending a lot of time reading the history file into memory,
possibly triggering some severe page swapping.  'man bash' provides more
information about tailoring your history.  You could also use strace to
see what bash is doing in response to the first up-arrow, including any
files it is opening, although I will admit that reading an strace is not
the easiest thing to decipher.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
volunteer cygwin bash maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEAv+884KuGfSFAYARAn5xAJ9v5s67g1HC4MSQVVsrUHUv/XBr+ACgwq3x
t7eFPzA3RCTnfKHapZjKkg4=
=e0un
-----END PGP SIGNATURE-----

--
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/


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