Matthew Dillon wrote:
> :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.
> 
>     Nope, object->memq is not sorted in any order whatsover.

I saw your patch.  Read other message.  8-).

> :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).
> 
>     What 'count' are you refering to?

That's "use count", not "usecount".  It's "count" as in
"has meaning as a significator".  8-).

I mean does msync() preterb the LRU order, by counting as
a recent use?  It's probably wrong to preterb the order,
since what you are doing is forcing pages *out*.  If you
want them *out*, then they probably have lower locality
than the pages you decided not to force out.

In other words, msync() should probably not change the
LRU order.

-- Terry

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

Reply via email to