[K12OSN] openoffice quick startup

Angus Carr acarr at saskforestcentre.ca
Thu Dec 2 17:58:25 UTC 2004

Rob Owens wrote:

>I saw this on a website discussing the SimplyMEPIS distro.  They say it will cut in half the time it takes for openoffice to load.
>(as root):
>oooprelink -f
>I'm in Windows now and can't try it out.  If anybody does try it, please post your results to the list.
>No banners. No pop-ups. No kidding.
>Make My Way your home on the Web - http://www.myway.com
>K12OSN mailing list
>K12OSN at redhat.com
>For more info see <http://www.k12os.org>

On a Pentium III laptop with 256 MB RAM, and not much else going on, 
Gnome launched, used wall clock time with an external stopwatch from 
time the mouseclick to launch from the menus. I have pasted in below the 
prelink script I used, which is based on debian's script, but uses FC3 
paths (Using K12LTSP 4.2.0 beta4). The following is a single test, so 
this is not exhaustive.

28 seconds to splashscreen, 49 to OOwriter being ready to accept input.
Flush the cache*, then...
20 seconds to splashscreen, 40 to oowriter being ready to accept input.

* dd if=/dev/zero of=/tmp/cacheflush bs=1024 count=1000000 && dd 
if=/tmp/cacheflush of=/dev/zero && rm /tmp/cacheflush


set -e



help() {
    echo "oooprelink -- Prelink OpenOffice.org's binaries"
    echo "-----------------------------------------------"
    echo "How this script can be called:"
    echo "oooprelink -- determines whether to do prelinking"
    echo "              from /etc/openoffice/openoffice.conf"
    echo "oooprelink -u|--unprelink -- force unprelinking"
    echo "oooprelink -f|--force -- force prelinking"
    echo "oooprelink -h|--help -- show this help"
    exit 1

if [ "$1" = "-f" -o "$1" = "--force" ]; then
elif [ "$1" = "-u" -o "$1" = "--unprelink" ]; then
elif [ "$1" = "-h" -o "$1" = "--help" ]; then
elif [ "$1" = "" ]; then
    sleep 1s

if [ "$prelink" = "true" ]; then
    echo -n "Prelinking OpenOffice.org binaries... "
    /usr/sbin/prelink $DEBUG \
        --ld-library-path=/usr/lib/ooo-1.1/program \
        --conserve-memory /usr/lib/ooo-1.1
    if [ ! -d /var/state/openoffice ]; then
        mkdir -p /var/state/openoffice
    touch /var/state/openoffice/ooo_is_prelinked
    echo "done."
elif [ "$prelink" = "false" ]; then
    if [ -f /var/state/openoffice/ooo_is_prelinked ]; then
        echo -n "Undoing prelinking of OpenOffice.org binaries... "
        /usr/sbin/prelink --undo --all $DEBUG \
            --ld-library-path=/usr/lib/ooo-1.1/program \
            --conserve-memory /usr/lib/ooo-1.1 \
        rm -f /var/state/openoffice/ooo_is_prelinked
        echo "done."
    echo -n "Unknown value for prelink variable in "
    echo "/etc/openoffice/settings.debconf"
    exit 1

More information about the K12OSN mailing list