Re: slow wish start on Fedora 3
From: Ivan Young (ivan.young_at_jet.uk)
Date: 03/04/05
- Next message: Marc Williams: "Re: Expect display problems"
- Previous message: David N. Welton: "Re: Wasted return value"
- In reply to: David N. Welton: "Re: slow wish start on Fedora 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 04 Mar 2005 11:11:05 +0000
David N. Welton wrote:
> Donald Arseneau <asnd@triumf.ca> writes:
>
>
>>I'm wondering if someone has noticed and sorted out a very slow
>>startup for wish as installed on Fedora 3 (Linux). I think it
>>is searching for libraries because the disk is active. It also
>>looks like something gets held in memory because starting again
>>soon after goes quickly.
>
>
> Tcl doesn't restrict its search for packages to a Tcl-owned directory
> such as /usr/lib/tcl/, but searches all of /usr/lib. If you have a
> lot of things in there, this can take some time.
>
We install in /usr/local/lib (sort of) instead of /usr/lib, but may apply.
At one time we had very poor glob performance on Solaris ( 2sec < for
glob /usr/local/lib/*). To work around that I created a sub-direcotory
of /usr/local/lib called tclpkgs just for tcl packages. I now install
packages into that directory or create sym-links to the packages
directory intsall under /usr/local/lib. I have a script derived from
the unkown proc to create sym-links for all packages installed in given
directory.
I then modified the auto_path in init.tcl to replace /usr/local/lib with
/usr/local/lib/tclpkgs .
Even with improved glob performance, we have kept this configuration.
The environment here of disk clients using NFS and very big
/usr/local/lib with software installed via a DEPOT (ie /usr/local/lib is
only contains sym-links to software install in a depot), exposes all
sorts of disk/networks/nfs issues.
I can provide details of changes if of interest.
- Next message: Marc Williams: "Re: Expect display problems"
- Previous message: David N. Welton: "Re: Wasted return value"
- In reply to: David N. Welton: "Re: slow wish start on Fedora 3"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|