Skip to content

Is there a way to pre-cache apps on bootup?

Immediately after booting the OS, when I first run an application (Discord, my webbrowser, etc.), the first startup is slow. But then the next time I run the application, it's basically instantaneous, thanks to I presume disk-caching.

Is there a way to configure Arch to precache (the disk access patterns for) certain apps? I'm thinking in particular while I'm in the login screen, typing in my username and password, the disk is probably largely idle, and this would be a great time to set up that cache.

Maybe I could turn on some sort of recorder, run an app, record all the files it reads from, and then put that into some configuration file, so that a different program can know to preload those files on boot up?

2 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 67% up
Kind
Text
ID
yl76wk

Author

15
posts
427
comments
1
media
View profile

2 comments

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.