View previous topic :: View next topic |
Author |
Message |
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Wed Jul 19, 2006 12:02 am Post subject: Pre-Caching (readahead-list) of FIREFOX to start it faster! |
|
|
Hi! I've read a couple of topics on how-to get stuff to start faster, there's that ramdisk-method, cat * >> /dev/null, and there is the package called "readahead-list", which does the latter one automagically.
Now what I need: Is there any Portage-Programm or switch, that will output all the files and files of dependencies of a specific programm, in my case Firefox?
emerge --listfilesdamnit firefox >> /etc/readahead-list/runlevel-default
and I get a pretty output with alle the files, newline separated, to they can be loaded on bootup...
It should be possible, since portage keeps track of all installed files and where they belong to, I just dont know where it's saved
I'd appreciate any help!
Thanks
kEiNsTeiN
PS: W00000t, POST 100!!!! _________________ make me a sandwich. - what? make it yourself. - sudo make me a sandwich. - okay. |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Wed Jul 19, 2006 5:17 am Post subject: |
|
|
Code: | emerge app-portage/gentoolkit
equery f www-client/mozilla-firefox |
This will output the files installed by Firefox itself only but you can use "equery f" on its dependencies as well, of course. _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Wed Jul 19, 2006 9:20 am Post subject: |
|
|
emerge --listfilesdamnit firefox
!!! Error: --listfilesdamnit is an invalid option. _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
|
Back to top |
|
|
LinuxMan Tux's lil' helper
Joined: 18 Sep 2004 Posts: 83 Location: Ukraine / Ternopil
|
Posted: Wed Jul 19, 2006 12:20 pm Post subject: |
|
|
kEiNsTeiN wrote: | linuxman.... I hope you were kidding |
OMG! I very inattentive
Sorry.
P.S. I really need to sleep sometimes _________________ SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Wed Jul 19, 2006 1:02 pm Post subject: |
|
|
kEiNsTeiN, I hope "equery f" was what you were looking for.
What I forgot to mention earlier is the possibility of prelinking which is supposed to speed up the starting process as well. I'm using it myself but I haven't noticed much gains but maybe you'd like to try it anyway:
http://www.gentoo.org/doc/en/prelink-howto.xml _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Wed Jul 19, 2006 3:16 pm Post subject: |
|
|
yes, thank you, that was what I was looking for. But if I do: Code: | equery depgraph www-client/mozilla-firefox-bin |
to get all the dependencies, I also get stuff like automake. How can I find out which files Firefox (or any other program) actually needs to start up? That would be most helpful...
Thank you
kEiNsTeiN _________________ make me a sandwich. - what? make it yourself. - sudo make me a sandwich. - okay. |
|
Back to top |
|
|
s0ulslack Tux's lil' helper
Joined: 29 Jan 2003 Posts: 134 Location: Idaho
|
Posted: Wed Jul 19, 2006 3:57 pm Post subject: |
|
|
Code: | ldd /usr/lib/mozilla-firefox/firefox-bin |
this should list all the direct deps, from there you should be able to figure it out |
|
Back to top |
|
|
kEiNsTeiN Guru
Joined: 29 Apr 2005 Posts: 361 Location: Germany
|
Posted: Thu Jul 20, 2006 8:44 am Post subject: |
|
|
Hi, sorry for answering so late. Thank you for all your help so far, but I've got another question: I just prelinked my system (which includes Firefox-bin). BEcause I dont fully unterstand prelinking, do I have to readahead only Firefox, or also the output of "ldd /usr/lib....."? Or should there actually be an output of ldd if prelinking was successful? I thought prelink puts all libraries into the executable? But the output of ldd stayed the same....
WHAT? _________________ make me a sandwich. - what? make it yourself. - sudo make me a sandwich. - okay. |
|
Back to top |
|
|
Philantrop Retired Dev
Joined: 21 Dec 2004 Posts: 1130 Location: Germany
|
Posted: Thu Jul 20, 2006 12:09 pm Post subject: |
|
|
You would have to use "equery b" on each of the results of the "ldd" command to find out which package you're looking for. Then use "equery f" again (like you did for Firefox) and read-ahead all that stuff. I really don't think it's worth the effort but that would be a way to do it.
As for prelinking, there wouldn't be any change in ldd's output. What you think of is static linking (and, no, you don't really want to try that). _________________ If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting. |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Mon Aug 14, 2006 6:26 am Post subject: |
|
|
You can get to the linked libraries list this way.
For gdm for example.
Code: | ldd /usr/bin/gdm | awk '{print $3}' |
Don't forget to put in the background picture and config files. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
|