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
F156620909: D56050.id.diff
Fri, May 15, 4:28 AM
F156595099: D56050.id174176.diff
Thu, May 14, 11:24 PM
Unknown Object (File)
Tue, May 12, 6:40 AM
Unknown Object (File)
Thu, May 7, 3:12 AM
Unknown Object (File)
Sat, May 2, 7:28 PM
Unknown Object (File)
Sat, May 2, 7:19 PM
Unknown Object (File)
Tue, Apr 28, 6:26 PM
Unknown Object (File)
Tue, Apr 28, 6:19 PM
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