[lkml]   [1999]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: file caching - how to always cache one file
>>>>> "M" ==   <> writes:

M> Hello there.

M> I have a server here with one large database file that I would like to
M> always be read cached, even if it isn't accessed for awhile..

Have a root owned daemon do:
fd = open(file, ....)
mmap(fd, ....)
or just mlock the map.

Not quite trivial, but simipler than a kernel patch.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:51    [W:0.029 / U:31.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site