RE: file caching - how to always cache one file

Jeremy Fitzhardinge (jeremy@goop.org)
Wed, 19 May 1999 17:49:45 -0700 (PDT)


On 18-May-99 mark@hoist.nlcomm.com wrote:
>
> Hello there.
>
> I have a server here with one large database file that I would like to
> always be read cached, even if it isn't accessed for awhile..

The crude way would be to mmap the file and lock down all the pages. You'd
really want to commit that memory though...

J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/