Re: slow wish start on Fedora 3

From: Ivan Young (ivan.young_at_jet.uk)
Date: 03/04/05


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.



Relevant Pages

  • Re: Blade 100 disk space
    ... > I have a stock Blade 100 that seems to be running low on available disk ... I still want to install ... > that's how I discovered I was getting low on disk space. ... You can get rid of many of the default packages. ...
    (comp.unix.solaris)
  • Re: How Can They Sell DVD Players For $30
    ... because they may put the returned item back on the shelf. ... packages that have not been opened.] ... such - very carefully from the bottom. ... He just didn't have any problems renting a disk several times,and ...
    (alt.video.dvd)
  • Re: 8.2-RELEASE-amd64.iso weirdness (help!)
    ... No software packages at all. ... This should be easy by dd'ing the beginning of the hard disk ... "dangerously dedicated" mode in sysinstall would allow me to overwrite ... FreeBSD slice for the whole disk. ...
    (freebsd-questions)
  • Re: Packages and Ports wrapper
    ... You can search your installed ports, ... And here's an example of its output, finding installed packages with "www" ... A www indexing and searching system ... and properly maintained locally installed ports collection, ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Installing SlackWare on Old Laptop
    ... I know which packages I need. ... >to get the packages on the laptop is via floppy disk. ... Take the hard disk out of the laptop and install it (you need ...
    (comp.os.linux.misc)