Matthew Dillon wrote:
>     So, this falls back to your suggested solution.... sort
>     object->memq (it's the actual page queue that is the problem,
>     not the object queue).  Looking at it some more I believe
>     this may be a viable solution.  I am going to work something
>     up.

You will need to put it on two lists, I think.

Though it is not sorted in adjacency order, it is sorted
into LRU order, I think, and simply resorting by adjacency
would destroy the LRU property.

Maybe you could sort it on demand, and not keep the sort
list?

Alternately, does msync() use count as "use" for the
purposes of LRU?  If so, I'm all wet, and sorting it will
work, if it's only done at msync() time (e.g. you won't
be able to use an insertion sort).

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to