HomeFreeBSD

hwpmc.4: correct stale default values and update diagnostics

Description

hwpmc.4: correct stale default values and update diagnostics

The default values documented for kern.hwpmc.logbuffersize (4KB) and
kern.hwpmc.nbuffers_pcpu (64) have been incorrect since 2981a3420cb1
(2018), which updated the compiled defaults but did not update the
man page.

  • Correct logbuffersize default from 4KB to 256KB, add 16MB maximum
  • Correct nbuffers_pcpu default from 64 to 32, document 32MB per-CPU product limit with kern.hwpmc.logbuffersize
  • Update DIAGNOSTICS section to reflect current warning messages

Reviewed by: mhorne
MFC after: 1 week
Sponsored by: NLINK (nlink.com.br)
Differential Revision: https://reviews.freebsd.org/D56050

(cherry picked from commit 2318ea10a3afb66c51078483f74c1a622811a619)

Details

Provenance
paulo_nlink.com.brAuthored on Mar 23 2026, 8:17 PM
mhorneCommitted on Apr 16 2026, 3:18 PM
Reviewer
mhorne
Differential Revision
D56050: hwpmc.4: correct stale default values and update diagnostics
Parents
rGf72a16118608: hwpmc: Use rdtsc instead of rdtscp for timestamps
Branches
Unknown
Tags
Unknown