Pass the to-be-freed page to vm_page_iter_free as a parameter, rather than computing it from the iterator parameter, to improve performance.
Sort declarations of page_iter functions in vm_page.h.
Differential D47727
vm_page: pass page to iter_free dougm on Nov 24 2024, 8:07 PM. Authored by Tags None Referenced Files
Subscribers
Details
Pass the to-be-freed page to vm_page_iter_free as a parameter, rather than computing it from the iterator parameter, to improve performance. Sort declarations of page_iter functions in vm_page.h.
Diff Detail
Event TimelineComment Actions Pass the removed page to vm_page_iter_remove, and functions that use it. Update comments. Reorder declarations. Comment Actions Let's limit this change to vm_page_iter_free. It reduces the average cycles in _kmem_unback and vm_object_page_remove by 7% and 5.3%, respectively. |