Re: [RFC] VM: I have a dream...

From: Valdis . Kletnieks
Date: Mon Jan 23 2006 - 14:38:51 EST


On Mon, 23 Jan 2006 14:26:06 EST, Benjamin LaHaise said:
> Actually, that is something that the vm could optimize out of the picture
> entirely -- it is a question of whether it is worth the added complexity
> to handle such a case. copy_to_user already takes a slow path when it hits
> the page fault (we do a lookup on the exception handler already) and could
> test if an entire page is being overwritten, and if so proceed to destroy
> the old mapping and use a fresh page from ram.

That was my point - it's easy till you start trying to get actual performance
out of it by optimizing stuff like that. ;)

Attachment: pgp00000.pgp
Description: PGP signature