Tell the kernel to strongly cache a particular directory

Posted by silviot on Ask Ubuntu See other posts from Ask Ubuntu or by silviot
Published on 2012-11-10T23:05:25Z Indexed on 2012/11/10 23:17 UTC
Read the original article Hit count: 168

Filed under:
|
|

This question is a rephrasing of Optimizing EXT4 performance.

I have a directory that contains build files, most very small, but totaling 5.6G.

I usually access the same subset of files (some thousands, for some tens of megabytes) over and over again. The subset changes daily (different projects, different versions of libraries). What takes longer when I use it seem to be disk seeks. For example if I do a du twice the second time it takes as much time as the first, and disk activity is similar.

Ideally I'd like to tell the kernel to allocate X Mb to the metadata and Y to data in the folder, like the options for nfs cache.

Is it possible in some way, other than mounting nfs from localhost and caching it to a ramdisk?

© Ask Ubuntu or respective owner

Related posts about filesystem

Related posts about Performance