Skip to content

openbsd might want a different sysctl for counting cpus. #2

Description

@icepic

sysctl hw|egrep '(ncpu|smt)'

hw.ncpu=8
hw.ncpufound=8
hw.ncpuonline=4

In case of hyperthreading, obsd might not activate all found threads and only have the scheduler use the "real" cores.
For better or worse, but ncpuonline=X is probably the sysctl you should use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions