Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 24th, 2004   #1
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
HOWTO: Enable prelink

Prelink is in universe. I use it on my Ubuntu system without issues, but do google about Prelink and do your research before trying it out.

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

In the future, prelink performs a quick prelink (a less-than-1-minute procedure on most systems) daily, usually at midnight. Every 14 days, or whatever you changed it to be, a full prelink will run.

If you just did a major apt-get upgrade that changed systemwide libraries (i.e. libc6, glibc, major gnome/X libs, etc etc etc) and experience cryptic errors about libs, rerun step 6.

To undo prelink, change step 4 from yes to no, then rerun step 6.


WARNING:
An amd64 users in another thread (http://ubuntuforums.org/showpost.php...3&postcount=16) reports having experienced trouble with AMD64 prelinking. I have NOT tried prelinking on anything other than an i386!

Last edited by jdong; April 15th, 2005 at 08:49 PM..
jdong is offline   Reply With Quote
Old January 16th, 2005   #2
wallijonn
Quad Shot of Ubuntu
 
wallijonn's Avatar
 
Join Date: Oct 2004
Location: Phoenix
Beans: 436
Re: HOWTO: Enable prelink

Man, I was looking for this link the longest. Good stuff.
__________________
WARTY HOWTO/FAQ | Starter Guide | Bugzilla | WIKI
Breezy
wallijonn is offline   Reply With Quote
Old January 18th, 2005   #3
Tichondrius
Way Too Much Ubuntu
 
Join Date: Jan 2005
Beans: 210
Re: HOWTO: Enable prelink

Cool, that seems to work, a few executables and libraries seem to have been updated. But how much of a performance boost is this, and how can it be measured ?
Tichondrius is offline   Reply With Quote
Old January 18th, 2005   #4
Technoviking
Ubuntu Rocks
 
Technoviking's Avatar
 
Join Date: Dec 2004
Location: Utah, USA
My beans are hidden!
Ubuntu 9.10 Karmic Koala
Send a message via AIM to Technoviking Send a message via MSN to Technoviking Send a message via Yahoo to Technoviking Send a message via Skype™ to Technoviking
Re: HOWTO: Enable prelink

Great how-to.
Thanks
Technoviking is offline   Reply With Quote
Old March 11th, 2005   #5
Rene_S
First Cup of Ubuntu
 
Join Date: Oct 2004
Beans: 3
Send a message via MSN to Rene_S
Re: HOWTO: Enable prelink

Cool, I learn something new everyday. Thanks for the Howto.
__________________
There's no place like /Gnome.
Apt-Get Remove Windows.
Rene_S is offline   Reply With Quote
Old March 11th, 2005   #6
bored2k
Skinny Extra Sweet Ubuntu
 
bored2k's Avatar
 
Join Date: Feb 2005
My beans are hidden!
Re: HOWTO: Enable prelink

Quote:
Originally Posted by Rene_S
Cool, I learn something new everyday. Thanks for the Howto.
How many hours would prelinking last on a 15gb drive?40gb?
Can I use my PC on this period?
bored2k is offline   Reply With Quote
Old March 11th, 2005   #7
Xian
Chocolate-Covered Ubuntu Beans
 
Xian's Avatar
 
Join Date: Oct 2004
Location: 37.8N 97.2W
Beans: 2,193
Dapper Drake Testing/
Send a message via AIM to Xian
Quote:
Originally Posted by bored2k
How many hours would prelinking last on a 15gb drive?40gb?
Can I use my PC on this period?
- It took me under 5 min on a 15GB partition with my AthonXP 3200.
- You can easily still use your computer.
__________________
Everybody can be great because everybody can serve.
You only need a heart of grace. A soul generated by love.

- Martin Luther King, Jr.

Help A Child Today
Xian is offline   Reply With Quote
Old March 11th, 2005   #8
bored2k
Skinny Extra Sweet Ubuntu
 
bored2k's Avatar
 
Join Date: Feb 2005
My beans are hidden!
Re: HOWTO: Enable prelink

Quote:
Originally Posted by Xian
- It took me under 5 min on a 15GB partition with my AthonXP 3200.
- You can easily still use your computer.
thanks, I was a little scared as I basically eat off it and my communication with the world outside my parking lot lies on Noir -thats her name...pretty sexy.
bored2k is offline   Reply With Quote
Old March 14th, 2005   #9
Xian
Chocolate-Covered Ubuntu Beans
 
Xian's Avatar
 
Join Date: Oct 2004
Location: 37.8N 97.2W
Beans: 2,193
Dapper Drake Testing/
Send a message via AIM to Xian
Quote:
Originally Posted by jdong
To start the first prelink (the longest one!), run sudo /etc/cron.daily/prelink
What it the difference between running this and issuing the command?:

# sudo nice -15 prelink -Rmvaf
__________________
Everybody can be great because everybody can serve.
You only need a heart of grace. A soul generated by love.

- Martin Luther King, Jr.

Help A Child Today
Xian is offline   Reply With Quote
Old March 15th, 2005   #10
jdong
Ultimate Coffee Grinder
 
jdong's Avatar
 
Join Date: Oct 2004
Location: Cambridge. MA
Beans: 5,063
Ubuntu 8.10 Intrepid Ibex
Re: HOWTO: Enable prelink

the cron scripted prelink is more Debian oriented. At heart, it certainly calls the command you mentioned. However, it redirects output to a logfile in /var/log, allows incremental prelinking, and performs more "civilized" goodies.
jdong is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:23 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry