Page MenuHomeFreeBSD

per-cpu page cache
AbandonedPublic

Authored by cem on Jan 25 2015, 10:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2025, 4:23 PM
Unknown Object (File)
Mar 12 2025, 2:17 AM
Unknown Object (File)
Mar 5 2025, 10:37 PM
Unknown Object (File)
Mar 5 2025, 7:56 PM
Unknown Object (File)
Mar 4 2025, 12:34 PM
Unknown Object (File)
Mar 4 2025, 10:15 AM
Unknown Object (File)
Feb 28 2025, 6:22 PM
Unknown Object (File)
Feb 22 2025, 12:00 PM
Subscribers

Details

Reviewers
kmacy
alc
adrian
Summary

Integrate from OneFS on behalf of Netflix:

  • Add per-cpu page caches to avoid contention on the page queue free mutex or large objects
  • Add the option of passing PQ_NONE to vm_page_unwire for callers that are going to subsequently free the page (making the add to the inactive queue simply unneeded overhead)
    • bump WITNESS_PENDLIST to avoid panic on boot
Test Plan

stress2, buildworld, netflix deployment

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

kmacy retitled this revision from to per-cpu page cache.
kmacy updated this object.
kmacy edited the test plan for this revision. (Show Details)
kmacy added a reviewer: alc.

Update it to the latest -HEAD? I have a whole bunch of 2 and 4 socket NUMA boxes I can test this out on.

Thanks!

-a

cem added a reviewer: kmacy.

Sure. It applied cleanly against HEAD for me; took me a while to get a build (10.1 can't build CURRENT today). It boots, seems to run ok in a VM.

cem edited edge metadata.

Update to latest HEAD.

ok, so this adds a per-cpu free list /and/ disables the page cache piece. What's the effect going to be, besides reducing lock contention?