Hi!
The prelink friendly binary unfortunately is not the default in FC1, but you can speed up OOo start by: ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin as root.
ftp://people.redhat.com/jakub/openoffice.org/ contains openoffice.org-1.1.0-6.1 packages which differ from 1.1.0-6 as present in FC1 in 2 things: a) soffice2.bin is the default, so you don't have to run the above command to speed it up b) it has been compiled with -Os. This seems to save 9MB on allocated library size and e.g. when running oowriter should cut the total size of libraries loaded from around 71MB to ~ 66MB (by ~ 5.25MB). In theory this should speed up OO.o startup time especially when caches are cold (ie. when running oowriter the first time after boot). I've tried to measure some numbers with time(1): cold are after running cat 2.8GB file > /dev/null, hot are 3rd up to 5th invocations of the program, each measurement repeated 3 times. The first numbers are from the default 1.1.0-6 oowriter, second with 1.1.0-6 after ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin and third with 1.1.0-6.1 default. Dual PIII, 651MHz. Measuring with time is of course very inaccurate.
oowriter soffice1.bin openoffice.org-1.1.0-6 prelinked cold real 0m21.010s 0m18.963s 0m22.451s user 0m4.390s 0m4.350s 0m4.360s sys 0m0.560s 0m0.580s 0m0.500s hot real 0m5.003s 0m4.991s 0m5.000s user 0m4.190s 0m4.290s 0m4.260s sys 0m0.360s 0m0.250s 0m0.270s
oowriter soffice2.bin openoffice.org-1.1.0-6.1 prelinked cold real 0m18.445s 0m17.709s 0m20.787s user 0m2.950s 0m3.000s 0m2.940s sys 0m0.450s 0m0.450s 0m0.590s hot real 0m3.773s 0m3.757s 0m3.766s user 0m2.880s 0m2.810s 0m2.810s sys 0m0.270s 0m0.370s 0m0.280s
oowriter soffice2.bin openoffice.org-1.1.0-6.1 prelinked cold real 0m18.273s 0m17.501s 0m19.459s user 0m2.930s 0m2.940s 0m2.780s sys 0m0.400s 0m0.430s 0m0.670s hot real 0m3.356s 0m3.392s 0m3.740s user 0m2.830s 0m2.890s 0m2.860s sys 0m0.270s 0m0.240s 0m0.260s
Jakub
hi, would you put these to fedora/linux/core/development/ thanks.
Jakub Jelinek wrote:
Hi!
The prelink friendly binary unfortunately is not the default in FC1, but you can speed up OOo start by: ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin as root.
ftp://people.redhat.com/jakub/openoffice.org/ contains openoffice.org-1.1.0-6.1 packages which differ from 1.1.0-6 as present in FC1 in 2 things: a) soffice2.bin is the default, so you don't have to run the above command to speed it up b) it has been compiled with -Os. This seems to save 9MB on allocated library size and e.g. when running oowriter should cut the total size of libraries loaded from around 71MB to ~ 66MB (by ~ 5.25MB). In theory this should speed up OO.o startup time especially when caches are cold (ie. when running oowriter the first time after boot). I've tried to measure some numbers with time(1): cold are after running cat 2.8GB file > /dev/null, hot are 3rd up to 5th invocations of the program, each measurement repeated 3 times. The first numbers are from the default 1.1.0-6 oowriter, second with 1.1.0-6 after ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin and third with 1.1.0-6.1 default. Dual PIII, 651MHz. Measuring with time is of course very inaccurate.
oowriter soffice1.bin openoffice.org-1.1.0-6 prelinked cold real 0m21.010s 0m18.963s 0m22.451s user 0m4.390s 0m4.350s 0m4.360s sys 0m0.560s 0m0.580s 0m0.500s hot real 0m5.003s 0m4.991s 0m5.000s user 0m4.190s 0m4.290s 0m4.260s sys 0m0.360s 0m0.250s 0m0.270s
oowriter soffice2.bin openoffice.org-1.1.0-6.1 prelinked cold real 0m18.445s 0m17.709s 0m20.787s user 0m2.950s 0m3.000s 0m2.940s sys 0m0.450s 0m0.450s 0m0.590s hot real 0m3.773s 0m3.757s 0m3.766s user 0m2.880s 0m2.810s 0m2.810s sys 0m0.270s 0m0.370s 0m0.280s
oowriter soffice2.bin openoffice.org-1.1.0-6.1 prelinked cold real 0m18.273s 0m17.501s 0m19.459s user 0m2.930s 0m2.940s 0m2.780s sys 0m0.400s 0m0.430s 0m0.670s hot real 0m3.356s 0m3.392s 0m3.740s user 0m2.830s 0m2.890s 0m2.860s sys 0m0.270s 0m0.240s 0m0.260s
Jakub
-- fedora-test-list mailing list fedora-test-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-test-list
Hi,
Jakub Jelinek írta:
Hi!
The prelink friendly binary unfortunately is not the default in FC1, but you can speed up OOo start by: ln -sf soffice2.bin /usr/lib/openoffice/program/soffice.bin as root.
ftp://people.redhat.com/jakub/openoffice.org/ contains openoffice.org-1.1.0-6.1 packages which differ from 1.1.0-6 as present in FC1 in 2 things: a) soffice2.bin is the default, so you don't have to run the above command to speed it up b) it has been compiled with -Os. This seems to save 9MB on allocated library size and e.g. when running oowriter should cut the total size of libraries loaded from around 71MB to ~ 66MB (by ~ 5.25MB).
Is it the only difference? Here is the original, I already changed the softlink:
# rpm -q openoffice.org openoffice.org-1.1.0-6 # cd /usr/lib/openoffice/program # ls -l soffice*.bin -rwxr-xr-x 1 root root 446012 nov 3 23:33 soffice1.bin -rwxr-xr-x 1 root root 70904 nov 3 23:33 soffice2.bin -rwxr-xr-x 1 root root 555192 nov 3 23:33 soffice3.bin lrwxrwxrwx 1 root root 12 nov 12 13:50 soffice.bin -> soffice1.bin
The binary size difference is not what you describe, but much larger, oowriter starts up with a huge speed difference!