Re: swapout selection change in pre1
From: Linus Torvalds <torvalds@transmeta.com>
Date: 2001-01-15 21:57:10
On Mon, 15 Jan 2001, Jamie Lokier wrote:
No, that's the point, you _don't_ need a structure per page table entry.
Ok. In that case, we already have all the infrastructure. It's just too slow to use as a generic replacement for scanning the VM. It's just fairly slow to look things up that way. That's going to be especially true of you have _lots_ of people mapping that vma - you'd have to look them all up, even if only one or two actually have the page in question mapped. (The alternative, of course, is to add a new "struct list_head" to the "struct page" structure, and make that be the anchor for all VMA's that have this page actually inserted. That would be pretty efficient, but I'd hate wasting the memory, ugh. We could be clever and share a list for multiple pages, ho humm..) I still don't think it's actually worth it, but hey, I still say that if you find a good use for it, go right ahead.. Linus -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/