Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pre-Caching (readahead-list) of FIREFOX to start it faster!
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
kEiNsTeiN
Guru
Guru


Joined: 29 Apr 2005
Posts: 361
Location: Germany

PostPosted: Wed Jul 19, 2006 12:02 am    Post subject: Pre-Caching (readahead-list) of FIREFOX to start it faster! Reply with quote

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
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Wed Jul 19, 2006 5:17 am    Post subject: Reply with quote

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
View user's profile Send private message
LinuxMan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 83
Location: Ukraine / Ternopil

PostPosted: Wed Jul 19, 2006 9:20 am    Post subject: Reply with quote

emerge --listfilesdamnit firefox
!!! Error: --listfilesdamnit is an invalid option.
_________________
SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH
Back to top
View user's profile Send private message
kEiNsTeiN
Guru
Guru


Joined: 29 Apr 2005
Posts: 361
Location: Germany

PostPosted: Wed Jul 19, 2006 11:46 am    Post subject: Reply with quote

linuxman.... I hope you were kidding ;)
_________________
make me a sandwich. - what? make it yourself. - sudo make me a sandwich. - okay.
Back to top
View user's profile Send private message
LinuxMan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 83
Location: Ukraine / Ternopil

PostPosted: Wed Jul 19, 2006 12:20 pm    Post subject: Reply with quote

kEiNsTeiN wrote:
linuxman.... I hope you were kidding ;)

OMG! I very inattentive :D
Sorry.
P.S. I really need to sleep sometimes :lol: :lol: :lol:
_________________
SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Wed Jul 19, 2006 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
kEiNsTeiN
Guru
Guru


Joined: 29 Apr 2005
Posts: 361
Location: Germany

PostPosted: Wed Jul 19, 2006 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
s0ulslack
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 134
Location: Idaho

PostPosted: Wed Jul 19, 2006 3:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
kEiNsTeiN
Guru
Guru


Joined: 29 Apr 2005
Posts: 361
Location: Germany

PostPosted: Thu Jul 20, 2006 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Thu Jul 20, 2006 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Mon Aug 14, 2006 6:26 am    Post subject: Reply with quote

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. :wink:
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum