HomeFreeBSD

Microoptimize sched_pickcpu() CPU affinity on SMT.

Description

Microoptimize sched_pickcpu() CPU affinity on SMT.

Use of CPU_FFS() to implement CPUSET_FOREACH() allows to save up to ~0.5%
of CPU time on 72-thread SMT system doing 80K IOPS to NVMe from one thread.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS352727: Add SPDX tags to recently added files
Branches
Unknown
Tags
Unknown