Page MenuHomeFreeBSD

NUMA policy enhancements
ClosedPublic

Authored by jeff on Mar 25 2018, 1:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 20, 4:47 AM
Unknown Object (File)
Mon, Jan 20, 4:45 AM
Unknown Object (File)
Thu, Jan 16, 7:51 PM
Unknown Object (File)
Nov 24 2024, 9:33 AM
Unknown Object (File)
Nov 13 2024, 7:50 AM
Unknown Object (File)
Oct 28 2024, 4:42 PM
Unknown Object (File)
Oct 1 2024, 12:12 PM
Unknown Object (File)
Sep 24 2024, 8:59 AM
Subscribers

Details

Summary

This adds three features to cpuset & domainsets:

  1. a dedicated set for the kernel (#2) so that we can dictate kernel and user policy separately. This also fixed the ugly interrupt root code.
  2. DOMAINSET_POLICY_INTERLEAVE which does something like raid stripes or round-robin with a stride width. This gives much better performance than strict round-robin on the workloads i've tested on. I expect that we can tweak the stride as we learn how this works. Since rr is used as a fallback method when other things don't work I have kept it as a distinct policy.
  3. A sysctl api for experimenting with domainsets on kernel objects and making the domainset_create() api kernel public with error checking. This allows you to put in a domainset 'key' and get back a validated policy that you can actually reference and use.

This also includes some header clean-up and a bug fix to the FIRSTTOUCH policy which allows us to switch it on as the default.

Diff Detail

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

Event Timeline

sys/vm/vm_domainset.c
93 ↗(On Diff #40715)

This should be divided by sizeof not mod. Fixed.

Am I right that striding does not account for the initial stride offset of the first allocation ? I.e. if the first allocation comes not from the start of reservation, then stride might spread over two vm_reservs ?

sys/kern/kern_cpuset.c
1156 ↗(On Diff #40715)

Use bool for once ?

1343 ↗(On Diff #40715)

return ();

sys/vm/vm_domainset.c
85 ↗(On Diff #40715)

Add color to pindex for superpages so the stride aligns.

This revision is now accepted and ready to land.Mar 28 2018, 7:19 PM
This revision was automatically updated to reflect the committed changes.