What I want to do is open some programs in the boot sequence so Ubuntu loads them into memory. I'm already using the preload package and it's not helping in that part. Thanks.
1 Answer
It should be possible to force ureadahead
to load the programs during boot. Do achieve this:
- Delete the .pack files in
/var/lib/ureadahead/
:
Alt + F2 →gnome-terminal
→sudo rm /var/lib/ureadahead/*.pack
- Make sure you are using automatic login:
Alt + F2 →gdmsetup
- Reboot.
- Once your desktop loaded, quickly start the programs you want to preload during boot.
- To check if it worked, you can check, if the files are listed in the newly generated .pack files, e.g.:
Alt + F2 →gnome-terminal
→ureadahead --dump | grep "gedit"
If a program is not included, you can extend the phase during which ureadahead waits after boot, by editing the file
/etc/init/ureadahead.conf
:
Alt + F2 →gnome-terminal
→gksu gedit /etc/init/ureadahead.conf
Then increase the sleep time in the last line:
pre-stop exec sleep 45
and go back to 1.
-
If I wanted to allways include certain file in the pack, how do I not lose them on reproilfe? See my question askubuntu.com/questions/71395/…– turboCommented Nov 13, 2011 at 14:01