I was wondering where and in what form a list of files and directories is stored on the ext4 filesystem. The problem is that whenever I try to access a certain directory for the first time since boot through Nautilus, Krusader, or whichever file manager - it may show it very slowly. Since I see that it accesses my HDD, I presume that it is caused by slow HDD. So, I was thinking about precaching the whole file list of my system at boot time and store it in RAM cache so it wouldn't be unloaded during the runtime of my system (Ubuntu 14.04 in my case).
Is it possible to precache and preserve in cache the list of files and directories of the whole filesystem?
I thought that it could be done with vmtouch, but I just don't know what to target.