Re: mmapped server

"Peter T. Breuer" <[email protected]> Mon, 27 Mar 2006 23:32:25 +0200 (MET DST)
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Peter T. Breuer:"
> "Also sprach Peter T. Breuer:"
> >  --mmap,-M
> 
> Hmmm ... turning on some debugging seems to show that the server really does
> use mmap if asked:

And the server appears to have a rudimentary "mmap cache". I think it
has one mapping, which is set to "map ahead" at creation, beyond
immediate needs. When it gets a request to map beyond the current
mapping, it discards the current mapping and makes a new one.

At least that's what I think happens. Somebody must have written it -
it looks debugged and solid - but I don't recall doing it!

I tried making amore sophisticted mmap cache over the weekend. It is
surprisingly hard.

Peter