Sergio López, le Fri 23 Sep 2011 00:17:10 +0200, a écrit :
> Perhaps a simple flag in the object indicating if some of its pages
> have been activated, and a change in vm_page_activate to turn on that
> flag, would be enough to save a significant number of cycles.
> 
> Better ideas?

Perhaps vm_object_deactivate_pages should at least keep the
vm_page_queue_lock for more than just one iteration. XNU does it for 64
pages.

Otherwise, it looks to me like a simple and sensible optimization.

Samuel

Reply via email to