Monday, July 24, 2006

Ubuntu: more speed

The prelink package contains a utility which modifies ELF shared libraries and executables, so that far fewer relocations need to be resolved at runtime and thus programs come up faster.

How to enable prelink:

1. Activate Ubuntu universe sources. The procedure is well-documented by Ubuntu
2. use apt-get or synaptic to install prelink
3. Open /etc/default/prelink with your favorite editor, as sudo/root
4. Change PRELINKING=unknown from unknown to yes
5. Adjust the other options if you know what the heck you're doing. Defaults work well
6. To start the first prelink (the longest one!), run sudo /etc/cron.daily/prelink


Post a Comment

<< Home