Page MenuHomeFreeBSD

hwpmc.4: correct stale default values and update diagnostics
ClosedPublic

Authored by paulo_nlink.com.br on Mar 23 2026, 5:11 PM.
Tags
None
Referenced Files
F167235558: D56050.diff
Thu, Aug 20, 5:20 AM
F167228645: D56050.id174183.diff
Thu, Aug 20, 3:39 AM
Unknown Object (File)
Tue, Aug 18, 8:47 AM
Unknown Object (File)
Mon, Aug 17, 11:01 PM
Unknown Object (File)
Mon, Aug 17, 8:37 AM
Unknown Object (File)
Fri, Aug 14, 8:34 AM
Unknown Object (File)
Wed, Aug 12, 11:56 PM
Unknown Object (File)
Wed, Aug 12, 12:46 AM
Subscribers

Details

Summary

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

Sponsored by: NLINK (nlink.com.br)

Test Plan

Verified rendered output with:

man -l share/man/man4/hwpmc.4

mandoc -T lint shows only one pre-existing warning
(IMPLEMENTATION NOTES section order, not introduced by this patch).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable