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
F106160089: D13270.id35860.diff
Thu, Dec 26, 9:21 AM
F106129155: D13270.diff
Wed, Dec 25, 9:26 PM
Unknown Object (File)
Nov 7 2024, 3:07 PM
Unknown Object (File)
Sep 23 2024, 6:28 PM
Unknown Object (File)
Sep 19 2024, 8:25 PM
Unknown Object (File)
Sep 18 2024, 11:34 PM
Unknown Object (File)
Sep 18 2024, 6:19 PM
Unknown Object (File)
Sep 18 2024, 3:15 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 13107
Build 13355: arc lint + arc unit