[Bug 248454] Two sysctls in /sys/kern/subr_smp.c with identical description - suggestion enclosed
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 3 13:14:49 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248454
Bug ID: 248454
Summary: Two sysctls in /sys/kern/subr_smp.c with identical
description - suggestion enclosed
Product: Base System
Version: 12.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: dewayne at heuristicsystems.com.au
Would it be possible to modify the descriptions of /usr/src/sys/kern/subr_smp.c
to more accurately reflect the meaning of the sysctls. As a suggestion on line
99 to read
"Number of logical CPUs online"
and line 107 to read
"Number of physical CPUs online"
per:
Line 99
int smp_cpus = 1; /* how many cpu's running */
SYSCTL_INT(_kern_smp, OID_AUTO, cpus, CTLFLAG_RD|CTLFLAG_CAPRD, &smp_cpus, 0,
"Number of CPUs online");
Line 107
int mp_ncores = -1; /* how many physical cores running */
SYSCTL_INT(_kern_smp, OID_AUTO, cores, CTLFLAG_RD|CTLFLAG_CAPRD, &mp_ncores, 0,
"Number of CPUs online");
:) I'll leave hw.ncpu for another day ;)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list