RFT: openoffice.org tweaks to speed up startup
Peter van Egdom
p.van.egdom at chello.nl
Sun Oct 26 12:38:52 UTC 2003
Hello,
I tried the "openoffice.org-1.1.0-3.1" version available from
ftp://people.redhat.com/jakub/openoffice.org/ and did some unscientific
benchmarking.
I used the "time" command to benchmark the loading of OpenOffice.org
Writer. Each time Writer had completed loading I (as quickly as I could)
quit Writer.
After this I started Writer a second time to see how the caching
mechanism of Linux influenced startup time.
My system is a Intel Pentium 4 CPU 2.40GHz with 512 MB and my operating
system is Fedora Core release 0.95 with prelink-0.3.0-8 and
kernel-2.4.22-1.2088.nptl.src.rpm.
First, here are some numbers with the original (Fedora Core release
0.95) "openoffice.org-1.1.0-2" :
Fresh reboot (in KDE)
---------------------
1st. startup (from konsole : "time oowriter") real 0m12.172s
user 0m2.540s
sys 0m0.220s
2nd. startup (from konsole : "time oowriter") real 0m5.021s
user 0m2.490s
sys 0m0.170s
I then de-installed the old openoffice.org and installed
openoffice.org-1.1.0-3.1 along with db4-4.1.25-13 from Rawhide (which
was a dependency for this build of openoffice.org).
And here are some numbers with the new build (openoffice.org-1.1.0-3.1).
Benchmark with soffice1.bin :
("ln -sf soffice1.bin /usr/lib/openoffice/program/soffice.bin")
Fresh reboot (in KDE)
---------------------
1st. startup (from konsole : "time oowriter") real 0m12.573s
user 0m3.420s
sys 0m0.430s
2nd. startup (from konsole : "time oowriter") real 0m5.359s
user 0m2.450s
sys 0m0.190s
Benchmark with soffice2.bin :
("ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin")
Fresh reboot (in KDE)
---------------------
1st. startup (from konsole : "time oowriter") real 0m10.387s
user 0m1.380s
sys 0m0.200s
2nd. startup (from konsole : "time oowriter") real 0m3.639s
user 0m1.330s
sys 0m0.130s
Benchmark with soffice3.bin :
("ln -sf soffice3.bin /usr/lib/openoffice/program/soffice.bin")
Fresh reboot (in KDE)
---------------------
1st. startup (from konsole : "time oowriter") real 0m9.882s
user 0m1.290s
sys 0m0.200s
2nd. startup (from konsole : "time oowriter") real 0m3.675s
user 0m1.320s
sys 0m0.140s
It seems that with the tweaks Jakub did to OpenOffice.org the startup
time has decreased with a few seconds on my machine, which is nice.
ps. I see some errors in "/var/log/prelink.log" :
Prelinking /usr/lib/openoffice/program/getstyle-gnome /usr/sbin/prelink:
/usr/lib/openoffice/program/getstyle-gnome: Not enough room to add
.dynamic entry
Prelinking /usr/lib/openoffice/program/msgbox-gnome /usr/sbin/prelink:
/usr/lib/openoffice/program/msgbox-gnome: Not enough room to add
.dynamic entry
Op za 25-10-2003, om 10:14 schreef Jakub Jelinek:
<snip>
> Hi!
>
> I've done some tweaks to OO.o to make it more prelink-friendly
> (and thus to start up faster).
> ftp://people.redhat.com/jakub/openoffice.org/
> contains openoffice.org-1.1.0-3.1 package, with 2 differences
> against 1.1.0-3 in rawhide:
>
> 1) there are 3 variants of the /usr/lib/openoffice/program/soffice.bin
> binary (the actual OOo program), soffice.bin is a symlink to one of
> them:
> soffice1.bin should be the same as soffice.bin in 1.1.0-3
> soffice2.bin instead indirectly links against another > 40 libraries
> which are ALWAYS dlopened when soffice starts
> soffice3.bin is like soffice2.bin, but unlike soffice2.bin, it has
> all DT_NEEDED tags directly in the binary, while
> soffice2.bin is just crt files and all the binary's
> code plus most of the DT_NEEDED tags moved to
> new shared library
<snip>
Regards,
--
Peter van Egdom <p.van.egdom at chello.nl>
More information about the test
mailing list