"Neal H. Walfield" <[EMAIL PROTECTED]> writes: > If you didn't have this eviction strategy in mind for draining the > mapping cache, I am curious what you were going to do. It seems to me > that anything else would be in far greater contention with the > kernel's eviction strategy. This is my analysis from the I sent on > the 16th entitled "Review of Thomas's >2GB ext2fs proposal:"
Nothing is necessary. You simply de-map, with vm_unmap. Doing so does not cause the page to be paged out by the kernel, and has nothing whatsoever to do with the kernel's pageout strategy. Unlike paging, vm_map and vm_unmap are purely local operations where no global optimization is relevant, so there is no reason to prefer kernel control over them. So I would simply advocate a straightforward LRU of such things, with a reference count for the number of users of a mapping. The reference count, incidentally, you still need for your version, don't you? If you drop mappings whenever the kernel evicts a page, what do you do for pageouts of currently active pages? How do you distinguish this from a pageout of an idle page? Thomas _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-hurd