Messages in this thread | | | Date | Thu, 20 May 1999 23:17:11 -0400 (EDT) | From | Gregory Maxwell <> | Subject | Re: file caching - how to always cache one file |
| |
On 19 May 1999, Eric W. Biederman wrote:
> >>>>> "M" == <mark@hoist.nlcomm.com> 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, ....) > mockall(); > or just mlock the map. > > Not quite trivial, but simipler than a kernel patch. > Eric
Ohh! very creative! wouldn't it have to walk the file too or will the mlock handle that? :)
- 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/
| |