Page MenuHomeFreeBSD

Use the cpuset API more consistently.
ClosedPublic

Authored by jhb on May 8 2015, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 8:45 PM
Unknown Object (File)
Wed, Dec 4, 8:44 PM
Unknown Object (File)
Tue, Nov 26, 7:50 AM
Unknown Object (File)
Sep 23 2024, 1:25 AM
Unknown Object (File)
Sep 22 2024, 3:21 PM
Unknown Object (File)
Sep 22 2024, 10:01 AM
Unknown Object (File)
Sep 22 2024, 9:12 AM
Unknown Object (File)
Sep 22 2024, 9:11 AM
Subscribers

Details

Summary

Use the cpuset API more consistently:

  • Fetch the root set from cpuset_getaffinity() instead of assuming all CPUs from 0 to hw.ncpu are the root set.
  • Use CPU_SETSIZE and CPU_FFS.
  • The original notion of halted CPUs the manpage and code refers to is gone. Use the term "available" instead.
Test Plan

I've been running pmcstat with this for my other pmcstat testing recently.

Diff Detail

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

Event Timeline

jhb retitled this revision from to Use the cpuset API more consistently..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added reviewers: emaste, davide.
emaste edited edge metadata.

No objection from me

This revision is now accepted and ready to land.May 26 2015, 7:52 PM
This revision was automatically updated to reflect the committed changes.