Page MenuHomeFreeBSD

Avoid unneeded lookups in vm_page_init_page().
ClosedPublic

Authored by markj on Nov 27 2017, 4:41 PM.
Tags
None
Referenced Files
F143460296: D13270.diff
Fri, Jan 30, 4:17 PM
Unknown Object (File)
Dec 24 2025, 2:32 PM
Unknown Object (File)
Dec 20 2025, 4:22 AM
Unknown Object (File)
Dec 3 2025, 2:46 AM
Unknown Object (File)
Dec 2 2025, 6:07 AM
Unknown Object (File)
Nov 28 2025, 9:03 PM
Unknown Object (File)
Nov 28 2025, 5:58 PM
Unknown Object (File)
Nov 20 2025, 10:30 PM
Subscribers
None

Details

Summary

In vm_page_startup(), we were performing two vm_phys_segs searches per
page to look up information that we already have. I don't think it's an
abstraction violation to avoid the lookups given how much
vm_page_startup() already knows about the phys segs array.

Garbage-collect the now-unused vm_phys_paddr_to_segind() function.

This reduced the number of cycles spent initializing vm_page_array by
13% on a desktop Ivy Bridge system that I tested.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable