Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pre-caching applications [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
motaito
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2014
Posts: 102

PostPosted: Fri Aug 29, 2014 4:56 pm    Post subject: Pre-caching applications [SOLVED] Reply with quote

Hi,

After a fresh start I notice that opening firefox or chrome takes a few seconds. This only happens the first time I open each browser. After that they open in about a second which seams right. It's not really a problem, but I wonder how that is possible. I guess it must be caching something somewhere. I would like to find out where and how I can control it. Can I manually manage what happens? I would like to be able to disable the caching if desired or enable it (pre-caching) so that after a fresh boot the browsers start immediately. Is that possible?

p.s. I am using KDE if that make any difference.


Last edited by motaito on Sat Aug 30, 2014 11:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
motaito
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2014
Posts: 102

PostPosted: Sat Aug 30, 2014 11:15 am    Post subject: Reply with quote

In case my explanation was confusing. I know that KDE has a start up feature to start apps at boot. However, that will actually open the app. I don't want it to open by default. I would just like to pre-cache them so that they open quicker.
Back to top
View user's profile Send private message
Apheus
Apprentice
Apprentice


Joined: 12 Jul 2008
Posts: 231

PostPosted: Sat Aug 30, 2014 3:16 pm    Post subject: Reply with quote

This is most likely disk-cache, which is handled by the kernel: Files once read remain in memory, as long as there is enough memory. To simulate this, you would need to read all files from the application, and (in case of firefox), from your firefox profile. To collect all these files is a tedious task, but I think you should cover most of it with the following directories:

Code:
/usr/lib/firefox
~/.mozilla


I don't know about chrom(e|ium).
Back to top
View user's profile Send private message
creaker
Guru
Guru


Joined: 14 Jul 2012
Posts: 594

PostPosted: Sat Aug 30, 2014 5:30 pm    Post subject: Reply with quote

e4rat speeds up boot process and programs start.
Back to top
View user's profile Send private message
motaito
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2014
Posts: 102

PostPosted: Sat Aug 30, 2014 11:52 pm    Post subject: Reply with quote

It seams to pre-cache applications is not quite as straight forward as I hoped as most of it is done by the kernel. E4rat looks promising but is for ext4 only and apparently not recommended for ssd. I might just wait until I got a ssd and the issue might no longer be present. Anyway, thanks for the info it is very much appreciated!
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